-=> Quoting Adam Majer to Tika Carr <=-
AM> C++ will mangle the names of functions. Also declare them as FAR
AM> PASCAL - all windows functions use that conversion. eg.
AM> /// TTT.CPP
AM> extern "C"{ <- prevents name mangling
AM> void FAR PASCAL _export Crap();
AM> }
You know, I never even thought of that! And I've had to use extern "C" in
ome
DOS stuff I did when combining C and C++ stuff. Thanks for the info. I'm
oing
to try that one out.
AM> /// TTT.DEF
AM> EXPORTS
AM> CRAP ;Pascal causes all uper-case - exports don't have
AM> to be case sensitive. :)
I haven't learned how to make DEF files (yet, still) so this stuff I wouldn't
understand. Under EXPORTS, do I put the names (like a list) of all my
functions in upper case?
And, when I use them in VB, I declare them with the upper case version of the
function names?
Lastly, (if you don't mind all my questions ;) If I want to use the same DLL
in a C++ program, do I use the upper case or lower case/case-sensitive
version? I know I'd make an .H file to declare teh extern. But do I do
export
and the .DEF or just add the .DLL to my project list?
Just a side-thought. I wonder if anyone has had any luck making .VBX controls
using Borland C++ 3.1??
Tika
The 3:00 am Club: http://www.geocities.com/SiliconValley/Haven/1420/
Tika Carr: tika@knightmoves.com [C/C++ Code, Libraries, Info...]
... Life is funny, but there are so few people laughing.
___ Blue Wave/DOS v2.30
--- QScan/PCB v1.17b / 01-0406
---------------
* Origin: Knight Moves - Rochester,NY 716-865-2106 (1:2613/313)
|