Click here to Skip to main content
16,017,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GUID generation Pin
Bill S7-Aug-02 19:31
professionalBill S7-Aug-02 19:31 
GeneralCreating DLL from C++ class Pin
Anonymous7-Aug-02 17:35
Anonymous7-Aug-02 17:35 
GeneralRe: Creating DLL from C++ class Pin
Chris Losinger7-Aug-02 17:46
professionalChris Losinger7-Aug-02 17:46 
GeneralRe: Creating DLL from C++ class Pin
Anonymous7-Aug-02 18:37
Anonymous7-Aug-02 18:37 
GeneralRe: Creating DLL from C++ class Pin
Paul M Watt7-Aug-02 21:07
mentorPaul M Watt7-Aug-02 21:07 
GeneralRe: Creating DLL from C++ class Pin
Chris Losinger7-Aug-02 21:28
professionalChris Losinger7-Aug-02 21:28 
GeneralRe: Creating DLL from C++ class Pin
Paul M Watt8-Aug-02 11:45
mentorPaul M Watt8-Aug-02 11:45 
GeneralRe: Creating DLL from C++ class Pin
Paul M Watt7-Aug-02 21:13
mentorPaul M Watt7-Aug-02 21:13 
create a win32 DLL project in VC++, and select the option that "exports some symbols". That should get you started. Here is the syntax to export a class:

class __declspec(dllexport) CClass {
public:
CClass(void);
};

The problem with exporting C++ classes is when you decide to expand the class for version 2.0 of your software. If you have different versions of a DLL with different class specifications in each DLL, then your programs may not work properly unless they have the properly matching DLL versions. This is the problem that COM attempts to solve.

If you are creating a program that may have different versions, then you may want to consider using COM instead of exporting classes from a DLL. This is just a suggestion.

If you have any more questions feel free to ask.



Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Creating DLL from C++ class ... plugin DLLs? Pin
Anonymous7-Aug-02 21:21
Anonymous7-Aug-02 21:21 
GeneralTrackPopupMenu & WM_MENURBUTTONUP Pin
GregH7-Aug-02 17:31
GregH7-Aug-02 17:31 
GeneralRe: TrackPopupMenu & WM_MENURBUTTONUP Pin
Michael Dunn7-Aug-02 17:40
sitebuilderMichael Dunn7-Aug-02 17:40 
GeneralRe: TrackPopupMenu & WM_MENURBUTTONUP Pin
GregH7-Aug-02 17:53
GregH7-Aug-02 17:53 
Generala very simple question.about removing starting bytes from a char* Pin
nss7-Aug-02 17:28
nss7-Aug-02 17:28 
GeneralRe: a very simple question.about removing starting bytes from a char* Pin
Michael Dunn7-Aug-02 17:43
sitebuilderMichael Dunn7-Aug-02 17:43 
GeneralWow!!!! Thanks a million!! Pin
nss7-Aug-02 18:04
nss7-Aug-02 18:04 
GeneralRe: Wow!!!! Thanks a million!! Pin
Christian Graus7-Aug-02 18:28
protectorChristian Graus7-Aug-02 18:28 
GeneralRe: a very simple question.about removing starting bytes from a char* Pin
[James Pullicino]7-Aug-02 22:03
[James Pullicino]7-Aug-02 22:03 
GeneralRe: a very simple question.about removing starting bytes from a char* Pin
nss7-Aug-02 22:37
nss7-Aug-02 22:37 
GeneralRe: a very simple question.about removing starting bytes from a char* Pin
[James Pullicino]11-Aug-02 3:07
[James Pullicino]11-Aug-02 3:07 
GeneralRe: a very simple question.about removing starting bytes from a char* Pin
nss11-Aug-02 3:18
nss11-Aug-02 3:18 
GeneralDumb Question Pin
Nick Parker7-Aug-02 16:46
protectorNick Parker7-Aug-02 16:46 
GeneralRe: Dumb Question Pin
Michael Dunn7-Aug-02 17:45
sitebuilderMichael Dunn7-Aug-02 17:45 
GeneralRe: Dumb Question Pin
Nick Parker7-Aug-02 18:05
protectorNick Parker7-Aug-02 18:05 
GeneralRe: Dumb Question Pin
Michael Dunn7-Aug-02 18:25
sitebuilderMichael Dunn7-Aug-02 18:25 
GeneralRe: Dumb Question Pin
Atlantys7-Aug-02 18:31
Atlantys7-Aug-02 18:31 

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.