Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / DLL making with the new Turbo c++

Author
Message
kryton
18
Years of Service
User Offline
Joined: 12th Sep 2006
Location:
Posted: 13th Sep 2006 09:34
The new turbo c++ came out from Borland:
http://www.turboexplorer.com

It does allow editing and creating resources, unlike Microsoft's 2005 C++ Express.

I tried doing the third Party command tutorial for making dll's but had no luck.

Can someone show how this can be done in Turbo C++. Thanks in advance.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 19th Sep 2006 06:39 Edited at: 19th Sep 2006 06:41
Well, it would still work the same way...just that a few things are specific to the compiler/linker you are using. I am not trying to be smart here, I want to help.

I assume that Turbo C++ has a generic dll project type. Start with that. (The switches should be right.)

The method used in the tutorial is to pass DBPro the C++ mangled function prototype. That is what the string resource is, more or less. If you used the values from the tutorial, it probably failed because name-mangling is compiler specific. The name mangled function name comes from the dll itself. Take a binary editor (not NOTEPAD) and you can get the mangled name from either the .lib, or the .exp It is also in the MAP file in MSVC++, and the .obj file, too. So, make sure that the name is the same in your string resource.


Above is from jzDBP.exp, which is the exports file. You also have to have the prototype formatted so that DBPro recognizes the function.

Well, all that is only if the dll compiled correctly, and you put it in the correct place...which i assume that you did, so...I think that name-mangling is your culprit, not TurboC++, or DBPro.

Login to post a reply

Server time is: 2025-05-17 06:03:28
Your offset time is: 2025-05-17 06:03:28