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

C / C++ / MFC

 
Questioncompile a class Pin
mathy27-Jan-10 8:28
mathy27-Jan-10 8:28 
AnswerRe: compile a class Pin
Rajesh R Subramanian27-Jan-10 8:52
professionalRajesh R Subramanian27-Jan-10 8:52 
AnswerRe: compile a class Pin
loyal ginger27-Jan-10 8:53
loyal ginger27-Jan-10 8:53 
QuestionRe: compile a class Pin
mathy27-Jan-10 21:30
mathy27-Jan-10 21:30 
AnswerRe: compile a class Pin
loyal ginger28-Jan-10 1:43
loyal ginger28-Jan-10 1:43 
AnswerRe: compile a class Pin
CPallini27-Jan-10 11:00
mveCPallini27-Jan-10 11:00 
QuestionDLL "organization" ? Pin
Vaclav_27-Jan-10 7:13
Vaclav_27-Jan-10 7:13 
AnswerRe: DLL "organization" ? Pin
Richard MacCutchan27-Jan-10 9:24
mveRichard MacCutchan27-Jan-10 9:24 
Well, that is rather a lot of questions to answer, however, I'll try.

Vaclav_Sal wrote:
I have a basic understanding about this macro __declspec(dllexport).


Knowledge of this is less important than understanding how a library (lib or dll) is linked to an executable. If you read the MSDN literature it should make this clearer.

Vaclav_Sal wrote:
However , there are lib and linker "options" __declspec(lib, "xx.lib") and __declspec(link, "xx.lib") which I do not understand.


The lib processor collects a set of object modules and builds a static (lib) or dynamic (dll) library. Generaly speaking Visual Studio or VC will set the correct options when you create the project. The linker options should be set when you select the lib file into your linker settings in the project options.

Vaclav_Sal wrote:
Also, the #include "library.h" is now in debug directory. I assume that I need a #ifdebug directive somewhere to keep the reference correct in release.


I'm not sure what you mean here, but I presume that this include should be added to your project whether debug or not, so you probably do not need any #ifdef.

Vaclav_Sal wrote:
Do I still need to register the DLL with windows (regsvr32) ?


I'm not sure about this, I just copy the dll to the Windows/System32 directory and my apps tend to work fine.

MVP 2010 - are they mad?

QuestionNumeric Template Error C2296 Pin
Skippums27-Jan-10 6:51
Skippums27-Jan-10 6:51 
AnswerRe: Numeric Template Error C2296 Pin
Richard MacCutchan27-Jan-10 9:14
mveRichard MacCutchan27-Jan-10 9:14 
GeneralRe: Numeric Template Error C2296 Pin
Skippums27-Jan-10 10:15
Skippums27-Jan-10 10:15 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan27-Jan-10 22:00
mveRichard MacCutchan27-Jan-10 22:00 
GeneralRe: Numeric Template Error C2296 Pin
Skippums28-Jan-10 3:49
Skippums28-Jan-10 3:49 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan28-Jan-10 5:16
mveRichard MacCutchan28-Jan-10 5:16 
GeneralRe: Numeric Template Error C2296 Pin
Ken Moynihan28-Jun-10 16:41
Ken Moynihan28-Jun-10 16:41 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan28-Jun-10 21:29
mveRichard MacCutchan28-Jun-10 21:29 
GeneralRe: Numeric Template Error C2296 Pin
kmoy00728-Jun-10 22:46
kmoy00728-Jun-10 22:46 
GeneralRe: Numeric Template Error C2296 Pin
Richard MacCutchan29-Jun-10 1:40
mveRichard MacCutchan29-Jun-10 1:40 
Questionscrolling image using GDI+ under Windows 7 is very slow and flicking Pin
CODEPC27-Jan-10 4:14
CODEPC27-Jan-10 4:14 
AnswerRe: scrolling image using GDI+ under Windows 7 is very slow and flicking Pin
LunaticFringe27-Jan-10 11:08
LunaticFringe27-Jan-10 11:08 
GeneralRe: scrolling image using GDI+ under Windows 7 is very slow and flicking Pin
CODEPC27-Jan-10 12:09
CODEPC27-Jan-10 12:09 
GeneralRe: scrolling image using GDI+ under Windows 7 is very slow and flicking Pin
LunaticFringe27-Jan-10 13:06
LunaticFringe27-Jan-10 13:06 
QuestionClosing a document and leaving the view Pin
maycockt27-Jan-10 3:13
maycockt27-Jan-10 3:13 
AnswerRe: Closing a document and leaving the view Pin
CPallini27-Jan-10 3:30
mveCPallini27-Jan-10 3:30 
GeneralRe: Closing a document and leaving the view [modified] Pin
maycockt27-Jan-10 3:58
maycockt27-Jan-10 3:58 

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.