Welcome, Guest.
Please login or register.
.DEC and .LIB
Forum Login
Login Name: Create a new account
Password:     Forgot password

XBLite Forum    General Boards    XBLite Programming  ›  .DEC and .LIB
Users Browsing Forum
No Members and 1 Guests

.DEC and .LIB  This thread currently has 2,952 views. Print Print Thread
1 Pages 1 Recommend Thread
ChandraMDE
April 8, 2013, 5:17am Report to Moderator Report to Moderator
Baby Member
Posts: 7
Good day,

I wonder how to create .DEC and .LIB files from an existing .DLL file.
Thanks.
Logged Offline
Private Message Private message
ChandraMDE
April 9, 2013, 2:53am Report to Moderator Report to Moderator
Baby Member
Posts: 7
Thanks Carry.
As soon as I read your reply, I re-install XBasic and try to run dllguide.exe you provide in the attachment.
But, dllguide.exe is failed to run on my system. I'm using XP btw.
Any suggestion...?
Logged Offline
Private Message Private message Reply: 1 - 5
Carry
April 9, 2013, 3:57am Report to Moderator Report to Moderator
Baby Member
Posts: 36
Here is a second option for you:

In your XBLite bin directory, find two files: makedef.exe and lib.exe.

Use makedef.exe on your ???.dll to make a ???.def file.

Then use lib.exe. The command line should go something like:  
lib /def:"???.def" /out:"???.lib"

Finally, you will need to manually convert the .def file to a .dec file.
Likely you will have to list the functions as follows:
EXTERNAL CFUNCTION  functionname ()
...
...
...
Logged Offline
Private Message Private message Reply: 2 - 5
ChandraMDE
April 9, 2013, 8:28am Report to Moderator Report to Moderator
Baby Member
Posts: 7
I am aware about that xb.dll thing, but there is an error when I'm trying to run dllguide.exe.
But, the second way works well.
Thanks.



This post contains attachments; to download them you must login.

Logged Offline
Private Message Private message Reply: 3 - 5
Carry
April 9, 2013, 10:19am Report to Moderator Report to Moderator
Baby Member
Posts: 36
Yes, there was a problem with dllGuide I attached before. (It uses an old version of xb.dll)

The version I have attached here should work okay.

In dllGuide, Open the .dll, Edit the .dec, Rebuild the .lib.
If it works, you will find a .dec & .lib in your XBasic directories. Transfer these files to your XBLite include & lib dir's.



This post contains attachments; to download them you must login.

Logged Offline
Private Message Private message Reply: 4 - 5
ChandraMDE
April 9, 2013, 10:40am Report to Moderator Report to Moderator
Baby Member
Posts: 7
This one is work!
Thanks
Logged Offline
Private Message Private message Reply: 5 - 5
1 Pages 1 Recommend Thread
Print Print Thread

XBLite Forum    General Boards    XBLite Programming  ›  .DEC and .LIB

Thread Rating
There is currently no rating for this thread