Thread

Using the Borland Compiler (Sdk)

Using the Borland Compiler // Sdk

1  |  

david burke

Nov 18, 1998, 2:58am
Hello all,
I'm wondering if anyone has been able to use the Borland compiler
with the SDK? I read the previous Borland thread. I've got Borland
5.02
on there now, and also have Builder3 available. I would like to know
how to correctly include the "aw.lib" file in the project, without using

the "LoadLibrary" and "GetProcAddress" mess. If anyone knows
how to do this, your help would be greatly appreciated.

Thanks,
Dave

walter knupe

Nov 18, 1998, 6:56pm
The Borland should have tools to create an import library from a dll. try
to locate a tool
called "implib.exe" or try to find it the documentation.

this is how previous MS C++ handled that. you called the aforementioned tool
like that:

"implib aw.dll"

and it should create the dll.

i don't know if borland supplies a tool like that, but it's worth a try.

Walter aka Faber


David Burke schrieb in Nachricht <365253F7.7CACDF02 at visualfuture.com>...
>Hello all,
> I'm wondering if anyone has been able to use the Borland compiler
>with the SDK? I read the previous Borland thread. I've got Borland
>5.02
>on there now, and also have Builder3 available. I would like to know
>how to correctly include the "aw.lib" file in the project, without using
>
>the "LoadLibrary" and "GetProcAddress" mess. If anyone knows
>how to do this, your help would be greatly appreciated.
>
> Thanks,
> Dave
>

cyborganic

Nov 18, 1998, 11:12pm
It's a three step process.
First, use IMPDEF to create a .DEF file for AW.LIB:
IMPDEF c:\[sdk directory]\aw.def c:\[sdk directory]\aw.dll
Then, you have to edit the .DEF file. The lines are like this:
aw_login at 2h
And need to be like this:
_aw_login = aw_login
Once you've corrected all of them, use IMPLIB to make a Borland-compatible
..LIB file as shown:
IMPLIB c:\[sdk directory]\aw.lib c:\[sdk directory]\aw.def
Now just link the new AW.LIB file into your program, and you're all set!
Good Luck!

[cyborganic][cyborganic at hotmail.com]


[View Quote]

craig paddock

Nov 19, 1998, 2:09am
Thanks to you and Walter for the implib suggestions. I had
come across that suggestion late last night, and spent quite
a while "implib"ing. I also saw a comment about adding
the leading underscore, and tried that too. (with no success)

This leads me to believe that I'm not adding the library to the
project correctly once I'm done with impdef and implib. How
*should* it be added correctly? I have been right-clicking on
the .exe file in the project window and choosing "Add node"
to add the .lib file to the project.

Thanks for the help,
Dave(latenite)

[View Quote] > It's a three step process.
> First, use IMPDEF to create a .DEF file for AW.LIB:
> IMPDEF c:\[sdk directory]\aw.def c:\[sdk directory]\aw.dll
> Then, you have to edit the .DEF file. The lines are like this:
> aw_login at 2h
> And need to be like this:
> _aw_login = aw_login
> Once you've corrected all of them, use IMPLIB to make a Borland-compatible
> .LIB file as shown:
> IMPLIB c:\[sdk directory]\aw.lib c:\[sdk directory]\aw.def
> Now just link the new AW.LIB file into your program, and you're all set!
> Good Luck!
>
> [cyborganic][cyborganic at hotmail.com]
>
[View Quote]

cyborganic

Nov 19, 1998, 9:16pm
I've had success by coding it into the program using the following line:

#link "c:\\[sdk directory]\\aw.lib"

This works under C++Builder, anyway.
(Note the double-backslash, as \ is an escape character, so two are needed.)

[cyborganic][cyborganic at hotmail.com]

---------------------------------------------------------
[View Quote]

veleno

Nov 20, 1998, 4:19am
I tried doing this in my borland, and all that impdef gave back to me was an
empty def file and this error msg

Exception C0000005: Access violation
Module: IMPDEF.EXE Start address: 00410000
EAX=72AC3000 EBX=006A0E3C ECX=FFFFFFFF EDX=006A21E8 ESI=006A1000
EDI=72AC3045 EIP=004146C7 EBP=0068F920 ESP=0068F91C EFL=00010246

Now.... can you guys tell me why it's not working....

[View Quote] > It's a three step process.
> First, use IMPDEF to create a .DEF file for AW.LIB:
> IMPDEF c:\[sdk directory]\aw.def c:\[sdk directory]\aw.dll
> Then, you have to edit the .DEF file. The lines are like this:
> aw_login at 2h
> And need to be like this:
> _aw_login = aw_login
> Once you've corrected all of them, use IMPLIB to make a Borland-compatible
> .LIB file as shown:
> IMPLIB c:\[sdk directory]\aw.lib c:\[sdk directory]\aw.def
> Now just link the new AW.LIB file into your program, and you're all set!
> Good Luck!
>
> [cyborganic][cyborganic at hotmail.com]
>
[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn