The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 HELP: DLLs for Origin written with Visual C++ 5.0

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
marko Posted - 02/09/1999 : 7:43:00 PM
Hi,

did somebody use Visual C++ for building DLLs which can be used from Origin with the dll command? I would be very much interested, since I ran into problems with my C++ compiler. A colleague coded it with Borland C++ and it works, but VC doesn't do the job. Somehow the names inside the DLL look different. Using "dumpbin /exports mydll.dll" reveals that there is a question mark inserted before the name of the exported functions and also one can find something like "@@YAKZ@DFN" appended. I am not a freak in Windows programming, so I don't know how to sail around this cliff... Did somebody meet such problems? Any hints and tricks are wellcome!

Thanks in advance,
Marko

2   L A T E S T    R E P L I E S    (Newest First)
marko Posted - 02/26/1999 : 7:41:00 PM
Thanks for your response.
Lucklyly I already found this solution! You are right, the only thing I need to do is to insert the def file in my project. Ignoring the __dllspec leads to the expected result.

Thanks anyway.

eparent Posted - 02/25/1999 : 4:15:00 PM
Your compiler is working properly. What you are seeing is refered to as "name mangling". The added characters are used by the compiler and linker to describe the return type, number of arguments, and the argument types.

The Borland compilers have an option for turning this off. I am not aware of an option for VC. However, I suspect you are exporting your function with "__declspec( dllexport )" instead of a .DEF file. If your project does not have a .DEF file then adding one should solve your problem. The following is all you should need:

; simple DEF file
EXPORTS
ABELN

Once you have a DEF file you will no longer need "__declspec( dllexport )".


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000