Página 1 de 1

com dll

Publicado: 01 May 2013 06:46
por shane9082
is a COM DLL compatible with ams?

Publicado: 06 May 2013 15:54
por Pabloko
com, could be a serial comm port or ms activex com object

both of them available in ams

if youre wondering about serials ports take a look in the search, ive already posted after

viewtopic.php?f=18&t=431&p=2494&hilit=serial+port#p2494

Publicado: 08 May 2013 03:50
por shane9082
what im trying to do pabloko is use this dll here http://www.trackmysoftware.com/help/function-reference/.
so i can try and integrate a licensing system in to my app.

Publicado: 08 May 2013 20:57
por Pabloko
You could use DLL.CallFunction to call these shared dll files, but, according to documentation:
All parameters are 16-bit Unicode strings.

All return values are either 16-bit Unicode strings or 32-bit boolean values.

Functions are called with stdcall calling convention.

String parameters are passed using pointers to wide strings:

wchar_t* or wchar16_t* in C++

PWideChar in Delphi and Lazarus/Free Pascal
So, its using wide character reference, ams isnt unicode so you can have troubles here, and theyre using pointers to string so you must use AMSWMemory plugin or Alien extension to pass the pointer reference instead the string itself.

So yes, its possible but this method sucks, its payware and you should take a big effort to implement that, so it isnt very great solution with AMS.

In other hand, I can see in webpage that they have a REST api, much more easy to do that

Publicado: 09 May 2013 04:45
por shane9082
Thank you Pabloko for simplifying it for me. and yes the api is very easy to implement but it means there requests would not be encrypted and i could simply edit the traffic with fiddler and log myself in. i no nothing
is unhackerbal but i would like to make it a bit harder to hack. also does ams support rsa encryption or is there any pluging that can be used? and are there any other licensing systems like trackmysoftware?

Publicado: 09 May 2013 06:03
por Pabloko
is a dumb thing because everybody can see the source code of your app if its made with ams...

Publicado: 09 May 2013 19:46
por shane9082
if you used molebox would it obfuscate the source code