Click here to Skip to main content
15,889,034 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++ Prerequisites Pin
Maxwell Chen10-Mar-08 17:15
Maxwell Chen10-Mar-08 17:15 
GeneralRe: Visual C++ Prerequisites Pin
nike_arh10-Mar-08 9:08
nike_arh10-Mar-08 9:08 
GeneralRe: Visual C++ Prerequisites Pin
led mike10-Mar-08 9:14
led mike10-Mar-08 9:14 
GeneralRe: Visual C++ Prerequisites Pin
Nemanja Trifunovic10-Mar-08 10:00
Nemanja Trifunovic10-Mar-08 10:00 
QuestionPropertyGrid Attributes Pin
TheBerk10-Mar-08 8:04
TheBerk10-Mar-08 8:04 
GeneralRe: PropertyGrid Attributes Pin
led mike10-Mar-08 8:44
led mike10-Mar-08 8:44 
QuestionDefinition of dllimport function not allowed Pin
steve_rm10-Mar-08 7:16
steve_rm10-Mar-08 7:16 
GeneralRe: Definition of dllimport function not allowed Pin
Mark Salsbery10-Mar-08 7:42
Mark Salsbery10-Mar-08 7:42 
steve_rm wrote:
#ifdef NATIVEDLL_EXPORTS
#define NATIVEDLL_API extern "C" __declspec(dllexport)
#else
#define NATIVEDLL_API __declspec(dllimport)
#endif


Why is export extern "C" but import not the same?

Regardless, the NATIVEDLL_API macro should be used only on the function declarations (prototypes),
not on the function definitions/implementations.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Definition of dllimport function not allowed Pin
Chris Losinger10-Mar-08 7:43
professionalChris Losinger10-Mar-08 7:43 
GeneralRe: Definition of dllimport function not allowed Pin
steve_rm10-Mar-08 16:00
steve_rm10-Mar-08 16:00 
GeneralRe: Definition of dllimport function not allowed Pin
Chris Losinger11-Mar-08 0:46
professionalChris Losinger11-Mar-08 0:46 
QuestionHow to simulate 'X' (the red button at the top right corner) ? Pin
Hanan88810-Mar-08 6:45
Hanan88810-Mar-08 6:45 
AnswerRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Randor 10-Mar-08 7:02
professional Randor 10-Mar-08 7:02 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Hanan88810-Mar-08 7:37
Hanan88810-Mar-08 7:37 
AnswerRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery10-Mar-08 7:07
Mark Salsbery10-Mar-08 7:07 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Hanan88810-Mar-08 7:47
Hanan88810-Mar-08 7:47 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery10-Mar-08 7:54
Mark Salsbery10-Mar-08 7:54 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Hanan88810-Mar-08 22:50
Hanan88810-Mar-08 22:50 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery11-Mar-08 6:18
Mark Salsbery11-Mar-08 6:18 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
ThatsAlok10-Mar-08 22:35
ThatsAlok10-Mar-08 22:35 
GeneralRe: How to simulate 'X' (the red button at the top right corner) ? Pin
Mark Salsbery11-Mar-08 6:19
Mark Salsbery11-Mar-08 6:19 
QuestionC++ graph library equivalent to MSAGL or GLEE? Pin
jwalsh10-Mar-08 6:33
jwalsh10-Mar-08 6:33 
QuestionRe: C++ graph library equivalent to MSAGL or GLEE? Pin
Maximilien10-Mar-08 7:11
Maximilien10-Mar-08 7:11 
QuestionRestricting others to inheritance from my class? Pin
Kishore JP10-Mar-08 5:34
Kishore JP10-Mar-08 5:34 
QuestionRe: Restricting others to inheritance from my class? Pin
CPallini10-Mar-08 6:00
mveCPallini10-Mar-08 6:00 

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.