DLL2PBLib SourceCode Generator Version 1.5.5

Developed or developing a new product in PureBasic? Tell the world about it.
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

When its bugfree you can provide it via your webspace as its still your core. I would apreciate it. The link further below in the gui also points to your realsorce.de webspace.
Check out OOP support for PB here!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

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.
Image
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

@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
Last edited by SFSxOI on Sat Aug 09, 2008 9:00 pm, edited 1 time in total.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

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.
Proud registered Purebasic user.
Because programming should be fun.
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

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
The Include is ok, no Problem here.
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!
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

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.
What kind of dlls? Do provide both of them.
... and what kind of error message???
Check out OOP support for PB here!
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

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)
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

Did it work with the old previous version, means DLL2Lib (coming with the light yellow IconList background)
Check out OOP support for PB here!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

I think a simple "SetCurrentDirectory" before load the DLL should solve the
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.
Image
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

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.
Last edited by inc. on Sun Aug 10, 2008 1:53 pm, edited 2 times in total.
Check out OOP support for PB here!
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post by Little John »

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.
Since there seem to be significant changes, wouldn't it be better to use a new version number in order to avoid confusion?

Regards, Little John
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

Yes, I forgot ... thanks for the hint.
done.
Check out OOP support for PB here!
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

inc. wrote:
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
The Include is ok, no Problem here.
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.
I can't find any official updated OnError Lib in the forums. Did I miss something?

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.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

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. 8)
Proud registered Purebasic user.
Because programming should be fun.
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

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.
You also should put that on the whishlist for the next PB release.
Check out OOP support for PB here!
Post Reply