Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Other question about Carlos Antollini ADO classes !!! Pin
Carlos Antollini12-Aug-02 19:45
Carlos Antollini12-Aug-02 19:45 
GeneralRe: Other question about Carlos Antollini ADO classes !!! Pin
Hadi Rezaee12-Aug-02 19:51
Hadi Rezaee12-Aug-02 19:51 
GeneralRe: Other question about Carlos Antollini ADO classes !!! Pin
Hadi Rezaee12-Aug-02 23:54
Hadi Rezaee12-Aug-02 23:54 
GeneralRe: Other question about Carlos Antollini ADO classes !!! Pin
pépé13-Aug-02 3:12
pépé13-Aug-02 3:12 
GeneralRe: Other question about Carlos Antollini ADO classes !!! Pin
Carlos Antollini13-Aug-02 4:16
Carlos Antollini13-Aug-02 4:16 
GeneralDefault property in COM Pin
Anonymous12-Aug-02 19:07
Anonymous12-Aug-02 19:07 
GeneralRe: Default property in COM Pin
Stuart Dootson12-Aug-02 21:12
professionalStuart Dootson12-Aug-02 21:12 
GeneralDLL Fundamentals :: MFC Pin
valikac12-Aug-02 18:49
valikac12-Aug-02 18:49 
Hi.

I am learning DLL creation and implemention from Programming Applications for Microsoft Windows by Jeffrey Richter. Richter demonstrations are straightforward and appear simple. However, I cannot implement a working at all using Visual C++ .NET.

I tried using the DLL Wizard and hardcoding a .cpp and .h file. Neither method worked. I would like to create a simple dll with functions I can use in any C++ programs I work on including MFC. In fact, all my Windows program are MFC. Here is an example of the code.

-----
// myDLL.h

#ifndef myDLL
#define myDLL extern "C" __declspec(dllimport)
#endif

class myDLL MyClass
{
MyClass();
void FunctionOne();
int FunctionTwo();
~MyClass();
-----

-----
// myDLL.cpp

#define myDLL extern "C" __declspect(dllexport)
#include "stdafx.h"
#include "myDLL.h"

MyClass::MyClass()
{
}
...
-----

The code above uses the exact sample algorithm Richter presents in his book. It is does not work. I would like a good solid working example of creating a dll that works in both MFC and non-MFC Windows programs.

Thanks,
Kuphryn

GeneralRe: DLL Fundamentals :: MFC Pin
BlackSmith12-Aug-02 22:44
BlackSmith12-Aug-02 22:44 
GeneralRe: DLL Fundamentals :: MFC Pin
valikac13-Aug-02 4:52
valikac13-Aug-02 4:52 
GeneralRe: DLL Fundamentals :: MFC Pin
valikac13-Aug-02 6:20
valikac13-Aug-02 6:20 
GeneralRe: Just Impossible! Pin
valikac13-Aug-02 7:38
valikac13-Aug-02 7:38 
GeneralRe: Just Impossible! Pin
valikac13-Aug-02 15:02
valikac13-Aug-02 15:02 
QuestionControls redrawn in odd places?? Pin
JennyP12-Aug-02 18:38
JennyP12-Aug-02 18:38 
AnswerRe: Controls redrawn in odd places?? Pin
Tomasz Sowinski13-Aug-02 1:55
Tomasz Sowinski13-Aug-02 1:55 
GeneralDevelop a Code Completion control for a Text Control - maybe extended CEdit Pin
Deepak Mani12-Aug-02 18:35
Deepak Mani12-Aug-02 18:35 
QuestionHow to access CMainFrame funtion from CView Pin
tulc_kris12-Aug-02 18:15
tulc_kris12-Aug-02 18:15 
AnswerRe: How to access CMainFrame funtion from CView Pin
Christian Graus12-Aug-02 18:23
protectorChristian Graus12-Aug-02 18:23 
GeneralModifying external files Pin
Anonymous12-Aug-02 17:54
Anonymous12-Aug-02 17:54 
GeneralRe: Modifying external files Pin
Chris Losinger12-Aug-02 19:23
professionalChris Losinger12-Aug-02 19:23 
GeneralRe: Modifying external files Pin
Anonymous12-Aug-02 20:10
Anonymous12-Aug-02 20:10 
QuestionWhat purpose does this type of class declaration serve? Pin
clintsinger12-Aug-02 17:20
clintsinger12-Aug-02 17:20 
AnswerRe: What purpose does this type of class declaration serve? Pin
Christian Graus12-Aug-02 17:25
protectorChristian Graus12-Aug-02 17:25 
AnswerRe: What purpose does this type of class declaration serve? Pin
JT Anderson13-Aug-02 7:21
JT Anderson13-Aug-02 7:21 
QuestionHow to write data to cdr Pin
nlecren12-Aug-02 17:15
nlecren12-Aug-02 17:15 

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.