Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: AfxGetApp()->LoadStandardIcon but no Icon!! Pin
Mark Salsbery9-Jun-07 8:28
Mark Salsbery9-Jun-07 8:28 
GeneralRe: AfxGetApp()->LoadStandardIcon but no Icon!! Pin
mercenary019-Jun-07 16:49
mercenary019-Jun-07 16:49 
GeneralRe: AfxGetApp()->LoadStandardIcon but no Icon!! Pin
Mark Salsbery9-Jun-07 18:35
Mark Salsbery9-Jun-07 18:35 
Questionresetting pagefaults Pin
JimmyRopes9-Jun-07 7:42
professionalJimmyRopes9-Jun-07 7:42 
QuestionExporting a function to DLL Pin
Cyrilix9-Jun-07 7:08
Cyrilix9-Jun-07 7:08 
AnswerRe: Exporting a function to DLL Pin
karle9-Jun-07 7:23
karle9-Jun-07 7:23 
GeneralRe: Exporting a function to DLL Pin
Cyrilix9-Jun-07 7:31
Cyrilix9-Jun-07 7:31 
AnswerRe: Exporting a function to DLL Pin
Mark Salsbery9-Jun-07 8:16
Mark Salsbery9-Jun-07 8:16 
The header file should just contain the declaration (prototype) for the function.

The actual definition of the function should be moved out of the header to a single .c/.cpp file.
That c/cpp file should only be in the dll project. The header can be used in the dll project
and app projects which use the dll.
//GLInit.h
#ifndef GLINIT_H
#define GLINIT_H
 
#ifdef _EXPORT
   #define GLAPI __declspec(dllexport)
#else
   #define GLAPI __declspec(dllimport)
#endif
 
GLAPI void GLInit();
 
#endif

//GLInit.cpp
void GLAPI GLInit()
{
   int i;  <code><-- i is uninitialized!</code> :)
   i++;
   return;
}






"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Exporting a function to DLL Pin
Cyrilix9-Jun-07 10:00
Cyrilix9-Jun-07 10:00 
QuestionAddString to combobox problem Pin
Max++9-Jun-07 6:53
Max++9-Jun-07 6:53 
AnswerRe: AddString to combobox problem Pin
Mark Salsbery9-Jun-07 8:22
Mark Salsbery9-Jun-07 8:22 
Questiongetting com port listing! Pin
Leo_13319-Jun-07 3:27
Leo_13319-Jun-07 3:27 
AnswerRe: getting com port listing! Pin
rp_suman9-Jun-07 4:20
rp_suman9-Jun-07 4:20 
QuestionRe: getting com port listing! Pin
David Crow9-Jun-07 6:36
David Crow9-Jun-07 6:36 
QuestionHow open winword file in VC++ Pin
Y_Kaushik9-Jun-07 2:22
Y_Kaushik9-Jun-07 2:22 
AnswerRe: How open winword file in VC++ Pin
Matthew Faithfull9-Jun-07 2:58
Matthew Faithfull9-Jun-07 2:58 
QuestionWhen saving .doc file it can not take more then 100-120 words Pin
Y_Kaushik9-Jun-07 1:27
Y_Kaushik9-Jun-07 1:27 
QuestionRe: When saving .doc file it can not take more then 100-120 words Pin
David Crow9-Jun-07 6:38
David Crow9-Jun-07 6:38 
QuestionCustom control on dialog window. Pin
uToLs9-Jun-07 1:24
uToLs9-Jun-07 1:24 
AnswerRe: Custom control on dialog window. Pin
karle9-Jun-07 6:22
karle9-Jun-07 6:22 
AnswerRe: Custom control on dialog window. Pin
David Crow9-Jun-07 6:39
David Crow9-Jun-07 6:39 
Questionxml file Pin
saisp8-Jun-07 22:19
saisp8-Jun-07 22:19 
AnswerRe: xml file Pin
George L. Jackson9-Jun-07 1:28
George L. Jackson9-Jun-07 1:28 
AnswerRe: xml file Pin
Matthew Faithfull9-Jun-07 1:34
Matthew Faithfull9-Jun-07 1:34 
AnswerRe: xml file Pin
David Crow9-Jun-07 6:40
David Crow9-Jun-07 6:40 

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.