PDA

View Full Version : How to call a DLL function with a special name ?



Pigallio
08-24-2005, 08:17 AM
Hi all,

I have a DLL with a function called "_command@28"

How to declare this DLL function within IS11??

The compiler doesn't like the "@" in my function name :(

Can I use alias? And how?

Lilian.

MichaelU
08-24-2005, 04:38 PM
If you have control over the DLL itself, it would be best to properly export the function so it uses a valid identifier for its name. This is sometimes done with a __declspec annotation, and sometimes with a .defs file. If you do not have control over the DLL, but you can accomplish this in your own C++ code, you may be able to write a glue DLL with the proper export.

Pigallio
08-25-2005, 02:34 AM
Hi Michael,

I don't have the control over the DLL and I don't want to write a "glue" DLL.

It's incredible that IS can't call some function names !!!