Bug in Dll Creation ?!?
Posted: Mon Aug 04, 2003 2:15 pm
Hi !
I am playing around a bit with Dll creation and maybe found a bug...
There is a Programm called PGina take a look here to find out what
it is for : http://pgina.xpasystems.com/index.php
I am trying to make a lil Plugin for that Programm as a PBDll but the
Dll only gets one Character back from the Programm where is has to be a complete string...
Here my Example Code :
----
ProcedureCDLL UserLogin(user$, pass$, *pGinaInfo);
CreateFile(#1,"C:\pGina\Plugin SDK\debug.txt")
WriteString(user$)
WriteString(pass$)
EndProcedure
-----
With ProcedureDll the Programm runs into Pagefault.
The Function should have that format:
SAMPLEPLUGIN_API BOOL UserLogin(LPTSTR, LPTSTR, pGinaInfo *);
Did i do something wrong in my Dll or is there a Bug in PB ?
The Doku says the Dll has to use UniCode .. Does PB use UniCode or Ansi ? and how to change it
Greets
Georg
I am playing around a bit with Dll creation and maybe found a bug...
There is a Programm called PGina take a look here to find out what
it is for : http://pgina.xpasystems.com/index.php
I am trying to make a lil Plugin for that Programm as a PBDll but the
Dll only gets one Character back from the Programm where is has to be a complete string...
Here my Example Code :
----
ProcedureCDLL UserLogin(user$, pass$, *pGinaInfo);
CreateFile(#1,"C:\pGina\Plugin SDK\debug.txt")
WriteString(user$)
WriteString(pass$)
EndProcedure
-----
With ProcedureDll the Programm runs into Pagefault.
The Function should have that format:
SAMPLEPLUGIN_API BOOL UserLogin(LPTSTR, LPTSTR, pGinaInfo *);
Did i do something wrong in my Dll or is there a Bug in PB ?
The Doku says the Dll has to use UniCode .. Does PB use UniCode or Ansi ? and how to change it
Greets
Georg