[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Using cpdlib in MFC applications



Philippe,

Thank you for your feedback regarding the CML.  We will include your
recommended changes in the upcoming v1.9.2 CML release.  We will send a
message to this mail list as soon as the v1.9.2 CML release is available.

===========================================
John Pawling, John.Pawling@xxxxxxxxxxxxxxxx
Getronics Government Solutions, LLC
===========================================


-----Original Message-----
From: Philippe Leroux [mailto:philippe.leroux@xxxxxxxxxx]
Sent: Friday, July 06, 2001 1:53 PM
To: imc-cml@xxxxxxxxxxxx
Subject: Using cpdlib in MFC applications



Hi,

	Please remove the 'cpl\src\cpdlib.cpp' and 'cpl\src\cpdlib.h' files
from the cpdlib project in the CM_Library
workspace.  Your instanciating a global instance of a CWinApp that will
crash other MFC apps when loading the cmapi DLL.
You cannot have more than one instance of CWinApp at run-time.


BEGIN CODE EXCERPT -------------------
class CCpdlibApp : public CWinApp
{
public:
	CCpdlibApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCpdlibApp)
	//}}AFX_VIRTUAL

	//{{AFX_MSG(CCpdlibApp)
		// NOTE - the ClassWizard will add and remove member
functions here.
		//    DO NOT EDIT what you see in these blocks of generated
code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

END CODE EXCERPT --------------------


BEGIN CODE EXCERPT ------------------

////////////////////////////////////////////////////////////////////////////
/
// The one and only CCpdlibApp object

CCpdlibApp theApp;


END CODE EXCERPT ---------------------


Regards,

______________________________________________
 Philippe Leroux
 Software Developer

 Matrox Electronic Systems Ltd.