Click here to Skip to main content
15,915,172 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Hi, I want graphic base code! Pin
led mike8-May-06 17:18
led mike8-May-06 17:18 
QuestionCan anyone explain what this things do? Pin
Junon8-May-06 3:09
Junon8-May-06 3:09 
AnswerRe: Can anyone explain what this things do? Pin
led mike8-May-06 6:13
led mike8-May-06 6:13 
GeneralRe: Can anyone explain what this things do? Pin
Junon8-May-06 6:23
Junon8-May-06 6:23 
AnswerRe: Can anyone explain what this things do? Pin
led mike8-May-06 17:54
led mike8-May-06 17:54 
QuestionHow can I Export DllUnregisterServer in VC++? Pin
Orchid858-May-06 1:23
Orchid858-May-06 1:23 
AnswerRe: How can I Export DllUnregisterServer in VC++? Pin
georgeraafat8-May-06 6:05
georgeraafat8-May-06 6:05 
GeneralRe: How can I Export DllUnregisterServer in VC++? Pin
Orchid858-May-06 20:47
Orchid858-May-06 20:47 
I didn't get any error.my dll is compiled and its buid is succeeded but after that I open my dll with "DLL Export Viewer" software,I see all of functions in my dll is exported except DllUnregisterServer and DllregisterServer .
The code in my dll is same as this:
In header file I wrote (for example in Myheader.h)
__declspec(dllexport) STDAPI DllUnregisterServer(void);

In Source file I wrote (for example in Mysource.cpp):
STDAPI DllUnregisterServer(void)
{
};
I build this dll and every thing is ok but I get two warning they are same as these :
1-warning C4518: '__declspec(dllexport)' : storage-class or type specifier(s) unexpected here; ignored
2-warning C4502: 'linkage specification' requires use of keyword 'extern' and must precede all other specifiers
Both of them is happend in this line "__declspec(dllexport) STDAPI DllUnregisterServer(void);"
After that I check and open my dll with "DLL Export Viewer" software and I see DllUnregisterServer function isn't exported .I think mistake is in header file not in source file .If I write "STDAPI" before the "__declspec(dllexport)" in Myheader.h I get this error :
"error C2059: syntax error : '__declspec(dllexport)'
I can't find my mistake,if you have any idea I glad to hear it.
Best Regards.
OrchidConfused | :confused:





GeneralRe: How can I Export DllUnregisterServer in VC++? Pin
georgeraafat9-May-06 6:02
georgeraafat9-May-06 6:02 
GeneralRe: How can I Export DllUnregisterServer in VC++? Pin
Orchid8510-May-06 0:10
Orchid8510-May-06 0:10 
GeneralRe: How can I Export DllUnregisterServer in VC++? Pin
georgeraafat10-May-06 7:36
georgeraafat10-May-06 7:36 
GeneralRe: How can I Export DllUnregisterServer in VC++? Pin
georgeraafat10-May-06 7:39
georgeraafat10-May-06 7:39 
QuestionRead & Write with one I/O on Windows Serial Device Pin
Bill Sabatine7-May-06 17:11
Bill Sabatine7-May-06 17:11 
AnswerRe: Read & Write with one I/O on Windows Serial Device Pin
Milton Karimbekallil8-May-06 1:48
Milton Karimbekallil8-May-06 1:48 
QuestionNewbie: About passing parameter into a form Pin
kkyeung7-May-06 7:57
kkyeung7-May-06 7:57 
AnswerRe: Newbie: About passing parameter into a form Pin
georgeraafat7-May-06 22:51
georgeraafat7-May-06 22:51 
QuestionError with compiling code.. Pin
ALQallaf6-May-06 13:30
ALQallaf6-May-06 13:30 
AnswerRe: Error with compiling code.. Pin
Milton Karimbekallil7-May-06 2:38
Milton Karimbekallil7-May-06 2:38 
AnswerRe: Error with compiling code.. Pin
Michael Dunn7-May-06 8:48
sitebuilderMichael Dunn7-May-06 8:48 
GeneralRe: Error with compiling code.. Pin
ALQallaf7-May-06 10:17
ALQallaf7-May-06 10:17 
GeneralRe: Error with compiling code.. Pin
Michael Dunn7-May-06 13:03
sitebuilderMichael Dunn7-May-06 13:03 
GeneralRe: Error with compiling code.. Pin
Milton Karimbekallil7-May-06 13:15
Milton Karimbekallil7-May-06 13:15 
AnswerRe: Error with compiling code.. Pin
Nish Nishant7-May-06 9:40
sitebuilderNish Nishant7-May-06 9:40 
GeneralRe: Error with compiling code.. Pin
ALQallaf7-May-06 10:19
ALQallaf7-May-06 10:19 
GeneralRe: Error with compiling code.. Pin
Nish Nishant7-May-06 10:43
sitebuilderNish Nishant7-May-06 10:43 

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.