Click here to Skip to main content
15,888,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unsigned Template Parameter Pin
Skippums27-Jan-10 10:10
Skippums27-Jan-10 10:10 
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 
Could someone knowledgeable about usage of DLL in VC 6.0   give me a hand. I need a short description about the organization of the files in the project.

I checked this site and found some helpful articles but I am still not sure about how to do this.

I am doing a main project with dependent DLL.

The wizard created a DLL with samples, however, I am confused how to integrate this to the main project.

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

However , there are lib and linker "options"   __declspec(lib, "xx.lib") and __declspec(link, "xx.lib") which I do not understand.
These options accomplish the same as VC Project Options, right?


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.

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

Thanks for reading. Appreciate your help.
Cheers Vaclav



This is VC 6.0 DLL wizard generated   stuff

// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the OPENHRLIB_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// OPENHRLIB_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.

#ifdef OPENHRLIB_EXPORTS
#define OPENHRLIB_API __declspec(dllexport)
#else
#define OPENHRLIB_API __declspec(dllimport)
#endif
AnswerRe: DLL "organization" ? Pin
Richard MacCutchan27-Jan-10 9:24
mveRichard MacCutchan27-Jan-10 9:24 
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 

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.