Page 1 of 1

jadeDevelopmentUserInfo

Posted: Mon Mar 25, 2019 3:34 pm
by concord
Hi,
DevelopmentSecurityLibrary DLL
Many years ago I cobbled together a dll in Delphi7 to do this.
I now need to generate 64bit version, I've downloaded the Community Edition of Delphi and opened this old project.

Initially I'm just trying to build and test a 32bit version (for Jade 6) from this new version of Delphi. I can't seem to get the username and passwords to come through...

function jadeDevelopmentUserInfo(userName:PChar;password:PChar):Integer; stdcall export;

In the old dll I could log the userName pointer to file and see it just fine. After building the same project in Delphi 10 "Administrator" comes through as:

??????r

I've tried all sorts of string conversion, however it just keeps showing up as "??????r"

Re: jadeDevelopmentUserInfo

Posted: Thu Mar 28, 2019 3:53 pm
by Kevin
Hi,

I've not used Delphi to develop these before, but the following may help to diagnose the problem.

Is the environment ANSI or UNICODE? The latter may explain issues like that if the PChar typedef doesn't match how the JADE include headers define the Character type.

It may be useful to start with a more recent version of JADE and the example demo DLL and work backwards from there.

Cheers,
Kevin