TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ADAM MAJER
from: TIKA CARR
date: 1998-02-06 15:39:00
subject: DLL`s

 -=> 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.