jadeDevelopmentUserInfo

Forums for specific tips, techniques and example code
concord
Posts: 47
Joined: Wed Mar 23, 2011 2:07 pm

jadeDevelopmentUserInfo

Postby concord » Mon Mar 25, 2019 3:34 pm

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"

Kevin
Posts: 29
Joined: Wed Oct 14, 2009 9:03 am
Location: Christchurch

Re: jadeDevelopmentUserInfo

Postby Kevin » Thu Mar 28, 2019 3:53 pm

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


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 7 guests