Click here to Skip to main content
16,011,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sorry, I am at a loss and cannot help Pin
Reuven Elliassi29-Oct-06 9:03
Reuven Elliassi29-Oct-06 9:03 
NewsI found the way to fix it ! Pin
Reuven Elliassi30-Oct-06 3:42
Reuven Elliassi30-Oct-06 3:42 
GeneralRe: I found the way to fix it ! Pin
PJ Arends30-Oct-06 4:27
professionalPJ Arends30-Oct-06 4:27 
QuestionBoolean Size? Pin
Astricks28-Oct-06 2:59
Astricks28-Oct-06 2:59 
AnswerRe: Boolean Size? Pin
PJ Arends28-Oct-06 8:50
professionalPJ Arends28-Oct-06 8:50 
QuestionString Split Pin
Astricks28-Oct-06 2:48
Astricks28-Oct-06 2:48 
AnswerRe: String Split Pin
Astricks28-Oct-06 3:02
Astricks28-Oct-06 3:02 
QuestionHow to invoke a Form from a DLL Function Pin
poda28-Oct-06 1:47
poda28-Oct-06 1:47 
Hi friends,
I have a export function in the DLL.
When this function is to be called from other application,
it has to show the form in which the DLL was built with.
Can anyone help out?

For example

//DLLMain.cpp file
extern "C" __declspec(dllexport) void MyDLLFunction(double* Data,int nData)
{
//what code should I write to show the form

}

//GraphDlg.cpp
class CGraphDlg : public CDialog
{
// Construction
public:
CGraphDlg(CWnd* pParent = NULL); // standard constructor

// Dialog Data
//{{AFX_DATA(CGraphDlg)
enum { IDD = IDD_GRAPH_DLG };

// NOTE: the ClassWizard will add data members here
//}}AFX_DATA

// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGraphDlg)
public:
virtual void OnFinalRelease();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:
HICON m_hIcon;

// Generated message map functions
//{{AFX_MSG(CGraphDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};


AnswerRe: How to invoke a Form from a DLL Function Pin
Mark Salsbery29-Oct-06 6:53
Mark Salsbery29-Oct-06 6:53 
GeneralRe: How to invoke a Form from a DLL Function Pin
poda1-Nov-06 19:00
poda1-Nov-06 19:00 
GeneralRe: How to invoke a Form from a DLL Function Pin
Mark Salsbery2-Nov-06 6:08
Mark Salsbery2-Nov-06 6:08 
General16 Bit Dll Pin
Monty228-Oct-06 0:00
Monty228-Oct-06 0:00 
GeneralRe: 16 Bit Dll Pin
Mike Dimmick28-Oct-06 1:53
Mike Dimmick28-Oct-06 1:53 
GeneralRe: 16 Bit Dll Pin
Monty228-Oct-06 2:50
Monty228-Oct-06 2:50 
GeneralRe: 16 Bit Dll Pin
toxcct28-Oct-06 5:55
toxcct28-Oct-06 5:55 
GeneralRe: 16 Bit Dll Pin
Link200628-Oct-06 9:22
Link200628-Oct-06 9:22 
Questionmail recovery [modified] Pin
neha.agarwal2727-Oct-06 23:48
neha.agarwal2727-Oct-06 23:48 
Questionabout multi threading in visual C++ Pin
mt_samiei27-Oct-06 22:47
mt_samiei27-Oct-06 22:47 
QuestionRe: about multi threading in visual C++ Pin
Eytukan28-Oct-06 4:43
Eytukan28-Oct-06 4:43 
QuestionThread abnormal behavior Pin
mt_samiei27-Oct-06 22:01
mt_samiei27-Oct-06 22:01 
AnswerRe: Thread abnormal behavior Pin
Prakash Nadar27-Oct-06 22:08
Prakash Nadar27-Oct-06 22:08 
GeneralRe: Thread abnormal behavior Pin
mt_samiei27-Oct-06 22:11
mt_samiei27-Oct-06 22:11 
GeneralRe: Thread abnormal behavior Pin
Prakash Nadar27-Oct-06 22:13
Prakash Nadar27-Oct-06 22:13 
GeneralRe: Thread abnormal behavior Pin
mt_samiei27-Oct-06 22:14
mt_samiei27-Oct-06 22:14 
GeneralRe: Thread abnormal behavior Pin
Prakash Nadar27-Oct-06 22:15
Prakash Nadar27-Oct-06 22: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.