Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
thanks Mark for your quick answer !

ok, I have deleted the .def file and now I am using only __declspec(dllexport) but the result dll still does not contain the "real" name.

I have defined the exported function as follows in a .cpp file

extern "C" __declspec(dllexport) BSTR __stdcall GetCANdbClassVersion(void)
{
return SysAllocStringByteLen((LPCSTR)CANDBCLASSVER, strlen((const char*)CANDBCLASSVER));
}

and the appropriate header part

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

when I am viewing the result dll with dumpbin.exe I get the following result

Setting environment for using Microsoft Visual Studio 2008 x86 tools.


Microsoft (R) COFF/PE Dumper Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.


Dump of file D:\...\CANdbClass.dll

File Type: DLL

Section contains the following exports for CANdbClass.dll

00000000 characteristics
48F1B934 time date stamp Sun Oct 12 10:45:40 2008
0.00 version
1 ordinal base
1 number of functions
1 number of names

ordinal hint RVA name

1 0 00001000 _GetCANdbClassVersion@0 = _GetCANdbClassVersion@0

Summary

1000 .data
1000 .rdata
1000 .reloc
1000 .rsrc
1000 .text

C:\Programme\Microsoft Visual Studio 9.0\VC>

is there anything I have forgotten to do ? Is it because I am using Express Edition ?

thanks for your help !
ganralf
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 
AnswerRe: Converting CString to char* Pin
super_ttd10-Oct-08 8:12
super_ttd10-Oct-08 8:12 
GeneralRe: Converting CString to char* Pin
zafersavas10-Oct-08 8:27
zafersavas10-Oct-08 8:27 

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.