Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 7th, 2005, 12:30 PM   #1
Felicsro
Newbie
 
Join Date: Jul 2005
Posts: 5
Rep Power: 0 Felicsro is on a distinguished road
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
Felicsro is offline   Reply With Quote
Old Jul 7th, 2005, 6:04 PM   #2
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
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
uman is offline   Reply With Quote
Old Jul 14th, 2005, 6:36 AM   #3
proghelper
Newbie
 
Join Date: Jun 2005
Posts: 16
Rep Power: 0 proghelper is on a distinguished road
Lightbulb

_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
proghelper is offline   Reply With Quote
Old Jul 14th, 2005, 11:42 PM   #4
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
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
kurifu is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:06 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC