![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 5
Rep Power: 0
![]() |
Please help with C++ .NET
I'm making a dll and i use .net for this
When i tried to use functions from this dll i got a weird error (the erros is in another post here I used a program to the export from a dll and I saw that all function names have "_" in front of their names, and that's why I can't use them in my application... How may I compile the dll to keep the real names for the funtions? Ex: extern "C" __declspec(dllexport) FT_STATUS WINAPI FT_Close(FT_HANDLE ftHandle); This function has _FT_Close name in the dll |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
I think it's a compiler option to turn off name decoration. Not sure which, read the documentation or experiment.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials. --WilliamSChips on Slashdot |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jun 2005
Posts: 16
Rep Power: 0
![]() |
_FT_Close is the symbolic name used by the DLL to refer to the FT_Close name used in the program code.
I think there is nothing wrong here. The linker will handle it for you. ----------- Programming (Assignment/Project) Help |
|
|
|
|
|
#4 |
|
Expert Programmer
|
Linker will look right past any name decorations actually, unless you are calling a DLL with the LoadLibrary and GetProcAddress functions, than you need to be aware of any decorating that may exist.
Typically just use the standard .lib way of linking to DLLs, it makes life easier ![]()
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|