DLL2PBLib SourceCode Generator Version 1.5.5
Okay, i will add it to realsource.de the next days, thanks
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

@inc;
in the include you posted for download there is a problem with this procedure:
in the include you posted for download there is a problem with this procedure:
Code: Select all
Procedure GetNumberOfParam(Pointer.l)
This line: Pointer = DisASMCommand(Pointer)
throws an invalid memory access error here on Vista
Last edited by SFSxOI on Sat Aug 09, 2008 9:00 pm, edited 1 time in total.
The Include is ok, no Problem here.SFSxOI wrote:@inc;
in the include you posted for download there is a problem with this procedure:
Code: Select all
Procedure GetNumberOfParam(Pointer.l) This line: Pointer = DisASMCommand(Pointer) throws an invalid memory access error here on Vista
Thats due a problem with the PB's OnError Lib of current 4.20 v.. Do search in the forum for a bugfixed version provided as separate download.
Check out OOP support for PB here!
What kind of dlls? Do provide both of them.byo wrote:One thing:
If you load a DLL that depends on another DLL the program will not load either of them and will show an error message.
... and what kind of error message???
Check out OOP support for PB here!
I got this message too... It's when you load a DLL that is directly connected to another (not from the system). DLL2PBLib says that the dll could not be found if you load one of them. The solution is to copy DLL2Pblib's executable in the same directory as the DLL's and it will work.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
I think a simple "SetCurrentDirectory" before load the DLL should solve the
problem, but i have no time at the moment.
problem, but i have no time at the moment.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Try this one, as beside implementing "SetCurrentDirectory_(...)" it got some additions:
http://www.file-upload.net/download-103 ... 6.zip.html
Version 1.5.6
- Code is Unicode compatible
- For PB function names the underscore "_" prefix will only be deleted on StdCall naming decorated dll function names
- Functions coming with a "?" as first letter will be unchecked per default as these do result from C++ non 'Extern "C" {...}' exported functions.
- support of Quad and Double return types
- Functionpointer check in the resulting inlcude code now only uses 'Debug' and 'CallDebugger' in case of functionpointer is zero.
If the issue regarding a 'dll called from the loaded dll' is still present, I need from byo or Inf0Byt3 those two -from each other dependand- dlls to test.
http://www.file-upload.net/download-103 ... 6.zip.html
Version 1.5.6
- Code is Unicode compatible
- For PB function names the underscore "_" prefix will only be deleted on StdCall naming decorated dll function names
- Functions coming with a "?" as first letter will be unchecked per default as these do result from C++ non 'Extern "C" {...}' exported functions.
- support of Quad and Double return types
- Functionpointer check in the resulting inlcude code now only uses 'Debug' and 'CallDebugger' in case of functionpointer is zero.
If the issue regarding a 'dll called from the loaded dll' is still present, I need from byo or Inf0Byt3 those two -from each other dependand- dlls to test.
Last edited by inc. on Sun Aug 10, 2008 1:53 pm, edited 2 times in total.
Check out OOP support for PB here!
-
- Addict
- Posts: 4777
- Joined: Thu Jun 07, 2007 3:25 pm
- Location: Berlin, Germany
Since there seem to be significant changes, wouldn't it be better to use a new version number in order to avoid confusion?inc. wrote:Try this one, as beside implementing "SetCurrentDirectory_(...)" it got some additions:
http://www.file-upload.net/download-103 ... 5.zip.html
- Code is Unicode compatible
- For PB function names the underscore "_" prefix will only be deleted on StdCall naming decorated dll function names
- Functions coming with a "?" as first letter will be unchecked per default as these do result from C++ non 'Extern "C" {...}' exported functions.
- support of Quad and Double return types
- Functionpointer check in the resulting inlcude code now only uses 'Debug' and 'CallDebugger' in case of functionpointer is zero.
Regards, Little John
I can't find any official updated OnError Lib in the forums. Did I miss something?inc. wrote:The Include is ok, no Problem here.SFSxOI wrote:@inc;
in the include you posted for download there is a problem with this procedure:
Code: Select all
Procedure GetNumberOfParam(Pointer.l) This line: Pointer = DisASMCommand(Pointer) throws an invalid memory access error here on Vista
Thats due a problem with the PB's OnError Lib of current 4.20 v.. Do search in the forum for a bugfixed version provided as separate download.
EDIT: never mind, found it, it was in...wait for it....Duh! http://www.purebasic.com/update/windows/ < in case the rest of the class needs it also

Last edited by SFSxOI on Sun Aug 10, 2008 5:06 pm, edited 1 time in total.
Hi, inc.
Thanks for the update. Now it's working great with the same DLLs I mentioned.
Some sugestions:
- Could you please add the option for the user to resize the window or maximize it? I like to work with the project maximized no matter what resolution I choose.
- In the File menu, "projekt" should be "project" if the language selected is English.
- How about an option to choose between Prototype and CallFunctionFast ways of exporting functions? Although prototyped functions are great, they don't appear in the IDE as procedures making it difficult to look for a specific procedure.
Keep up the good work, buddy.
Thanks for the update. Now it's working great with the same DLLs I mentioned.

Some sugestions:
- Could you please add the option for the user to resize the window or maximize it? I like to work with the project maximized no matter what resolution I choose.
- In the File menu, "projekt" should be "project" if the language selected is English.
- How about an option to choose between Prototype and CallFunctionFast ways of exporting functions? Although prototyped functions are great, they don't appear in the IDE as procedures making it difficult to look for a specific procedure.
Keep up the good work, buddy.

Proud registered Purebasic user.
Because programming should be fun.
Because programming should be fun.
You also should put that on the whishlist for the next PB release.byo wrote:Although prototyped functions are great, they don't appear in the IDE as procedures making it difficult to look for a specific procedure.
Check out OOP support for PB here!