Click here to Skip to main content
15,913,280 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Btree Library Pin
CPallini12-Oct-08 6:52
mveCPallini12-Oct-08 6:52 
GeneralRe: Btree Library Pin
Hamid_RT12-Oct-08 9:06
Hamid_RT12-Oct-08 9:06 
Questionsymbol missing error? Pin
George_George11-Oct-08 1:51
George_George11-Oct-08 1:51 
Questionsomething about jrtplib,help! Pin
Pearson_Bee10-Oct-08 20:51
Pearson_Bee10-Oct-08 20:51 
AnswerRe: something about jrtplib,help! Pin
Garth J Lancaster11-Oct-08 23:47
professionalGarth J Lancaster11-Oct-08 23:47 
GeneralRe: something about jrtplib,help! Pin
Pearson_Bee12-Oct-08 17:14
Pearson_Bee12-Oct-08 17:14 
GeneralRe: something about jrtplib,help! Pin
Garth J Lancaster12-Oct-08 17:35
professionalGarth J Lancaster12-Oct-08 17:35 
Question.def file in visual c++ 2008 express edition ? Pin
ganralf10-Oct-08 19:23
ganralf10-Oct-08 19:23 
Hello everybody,

I hope anyone can help me w/ my question !!!

I am trying to create a Win32 C dll in visual C++ 2008 express edition and it is working fine but I am not able to tell visual C++ to export the appropriate functions w/ their real names (e.g. function GetCANdbClassVersion will be exported as _GetCANdbClassVersion@0).

I added the following .def file to my project but it seems to have no influence to the exported function name

LIBRARY "CANdbClass.dll"

EXPORTS
GetCANdbClassVersion

I have declared the function as follows in my project (.c and .h file):

extern "C" __declspec(dllexport) BSTR __stdcall GetCANdbClassVersion(void);

do I have to tell vc what to do w/ the .def file ?

what am I doing wrong ?

thanks in advance for your help !
ganralf
AnswerRe: .def file in visual c++ 2008 express edition ? Pin
Mark Salsbery11-Oct-08 6:24
Mark Salsbery11-Oct-08 6:24 
GeneralRe: .def file in visual c++ 2008 express edition ? Pin
ganralf11-Oct-08 22:58
ganralf11-Oct-08 22:58 
GeneralRe: .def file in visual c++ 2008 express edition ? Pin
Mark Salsbery12-Oct-08 7:09
Mark Salsbery12-Oct-08 7:09 
GeneralRe: .def file in visual c++ 2008 express edition ? Pin
ganralf12-Oct-08 8:34
ganralf12-Oct-08 8:34 
GeneralRe: .def file in visual c++ 2008 express edition ? Pin
Mark Salsbery12-Oct-08 8:40
Mark Salsbery12-Oct-08 8:40 
GeneralRe: .def file in visual c++ 2008 express edition ? Pin
Mark Salsbery12-Oct-08 8:44
Mark Salsbery12-Oct-08 8:44 
GeneralRe: .def file in visual c++ 2008 express edition ? Pin
ganralf12-Oct-08 20:52
ganralf12-Oct-08 20:52 
GeneralRe: .def file in visual c++ 2008 express edition ? Pin
Mark Salsbery12-Oct-08 7:23
Mark Salsbery12-Oct-08 7:23 
QuestionProblem with global var in MFC Pin
AnTri10-Oct-08 12:13
AnTri10-Oct-08 12:13 
AnswerRe: Problem with global var in MFC Pin
Rick York10-Oct-08 12:28
mveRick York10-Oct-08 12:28 
GeneralRe: Problem with global var in MFC Pin
AnTri10-Oct-08 22:09
AnTri10-Oct-08 22:09 
QuestionRe: Problem with global var in MFC Pin
sashoalm10-Oct-08 23:10
sashoalm10-Oct-08 23:10 
AnswerRe: Problem with global var in MFC Pin
amirabadi10-Oct-08 12:33
amirabadi10-Oct-08 12:33 
AnswerRe: Problem with global var in MFC Pin
Sauce!10-Oct-08 22:49
Sauce!10-Oct-08 22:49 
AnswerRe: Problem with global var in MFC Pin
Parthiban10-Oct-08 23:58
Parthiban10-Oct-08 23:58 
AnswerRe: Problem with global var in MFC Pin
CPallini11-Oct-08 7:33
mveCPallini11-Oct-08 7:33 
QuestionConverting CString to char* Pin
DSPCottage10-Oct-08 7:56
DSPCottage10-Oct-08 7:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.