Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem about alloc memory in another library and free in the main project Pin
Stephen Hewitt21-Dec-07 19:30
Stephen Hewitt21-Dec-07 19:30 
GeneralRe: problem about alloc memory in another library and free in the main project Pin
kcynic21-Dec-07 19:41
kcynic21-Dec-07 19:41 
GeneralRe: problem about alloc memory in another library and free in the main project Pin
kcynic21-Dec-07 21:05
kcynic21-Dec-07 21:05 
GeneralNumber Lock activation Pin
Larry Mills Sr21-Dec-07 13:52
Larry Mills Sr21-Dec-07 13:52 
GeneralRe: Number Lock activation Pin
Mark Salsbery21-Dec-07 14:59
Mark Salsbery21-Dec-07 14:59 
GeneralRe: Number Lock activation Pin
Larry Mills Sr22-Dec-07 9:50
Larry Mills Sr22-Dec-07 9:50 
Question.RC file formating differences Pin
KayakCoder21-Dec-07 10:40
KayakCoder21-Dec-07 10:40 
GeneralI hate programming today (project conflict/calling convention conflict, ... ) Pin
Maximilien21-Dec-07 7:24
Maximilien21-Dec-07 7:24 
I think my karma wants me to go home instead of staying at work today.

I'm using Dundas Grid compiled into a static lib that I want to link into a simple wizard dialog based application.

In the dialog header I have :

#pragma once
#include "Dundas_Grid/Include/UGCtrl.h"
...

class CtestGridDlg : public CDialog
{
// Construction
public:
	CtestGridDlg(CWnd* pParent = NULL);	// standard constructor
//// standard stuff

protected:
  CUGCtrl m_Grid;
};


and when the dialog class gets created, it all barfs up.

BOOL CtestGridApp::InitInstance()
{
/// standard InitInstance stuff ...
	CtestGridDlg dlg;  /// < ---- after this line, <code>this</code> becomes <code>NULL</code>.
	m_pMainWnd = &dlg;
/// ...


When CtestGridDlg is constructed, it will construct the CUGCtrl class and in that constructor something happens that completly messes up the memory.

In my project, I have 1 library (Dundas grid) and my wizard based dialog application, nothing else.

I have checked that both library and main application have "MFC in Shared DLL" , not using ATL, using multi-byte character sets, are build using the same calling conventions ( __cdecl (/Gd)) , the same runtime library ( Multi-threaded Debug DLL (/MDd) ), There are no additional macros or #define.

Now, I'm at a loss at what I have to look for in my project; The same sources work in our main source trunk, the settings are the same.

Any ideas before I start thinking throwing my computer across the room ?

Thanks and merry whatever.
Maximilien Lincourt
Your Head A Splode - Strong Bad

GeneralGetting the bitmap in and out of a CGIPLUS Image class Pin
Anthony Appleyard21-Dec-07 6:39
Anthony Appleyard21-Dec-07 6:39 
GeneralRe: Getting the bitmap in and out of a CGIPLUS Image class Pin
Mark Salsbery21-Dec-07 7:32
Mark Salsbery21-Dec-07 7:32 
GeneralRe: Getting the bitmap in and out of a CGIPLUS Image class Pin
Anthony Appleyard21-Dec-07 12:19
Anthony Appleyard21-Dec-07 12:19 
GeneralRe: Getting the bitmap in and out of a CGIPLUS Image class Pin
Mark Salsbery21-Dec-07 12:39
Mark Salsbery21-Dec-07 12:39 
GeneralRe: Getting the bitmap in and out of a CGIPLUS Image class [modified] Pin
Anthony Appleyard21-Dec-07 23:29
Anthony Appleyard21-Dec-07 23:29 
GeneralRe: Getting the bitmap in and out of a CGIPLUS Image class Pin
Mark Salsbery22-Dec-07 7:06
Mark Salsbery22-Dec-07 7:06 
GeneralRe: Getting the bitmap in and out of a CGIPLUS Image class Pin
poda18-Mar-10 19:53
poda18-Mar-10 19:53 
GeneralGDI+ Why does the trick fail, one Rect to two Points Pin
followait21-Dec-07 6:16
followait21-Dec-07 6:16 
GeneralRe: GDI+ Why does the trick fail, one Rect to two Points Pin
Mark Salsbery21-Dec-07 6:26
Mark Salsbery21-Dec-07 6:26 
GeneralRe: GDI+ Why does the trick fail, one Rect to two Points Pin
followait21-Dec-07 7:45
followait21-Dec-07 7:45 
GeneralRe: GDI+ Why does the trick fail, one Rect to two Points Pin
Mark Salsbery21-Dec-07 8:48
Mark Salsbery21-Dec-07 8:48 
GeneralGDI+ A transformation from world coordinate to page coordinate makes picture foggy Pin
followait21-Dec-07 6:08
followait21-Dec-07 6:08 
GeneralRe: GDI+ A transformation from world coordinate to page coordinate makes picture foggy Pin
CPallini21-Dec-07 6:49
mveCPallini21-Dec-07 6:49 
GeneralGetUserName() return "SYSTEM" FOR SYSTEM PROCESS Pin
vicky0000021-Dec-07 4:25
vicky0000021-Dec-07 4:25 
GeneralRe: GetUserName() return "SYSTEM" FOR SYSTEM PROCESS Pin
myshketer21-Dec-07 5:05
myshketer21-Dec-07 5:05 
GeneralRe: GetUserName() return "SYSTEM" FOR SYSTEM PROCESS Pin
vicky0000021-Dec-07 6:02
vicky0000021-Dec-07 6:02 
GeneralRe: GetUserName() return "SYSTEM" FOR SYSTEM PROCESS Pin
Mark Salsbery21-Dec-07 6:35
Mark Salsbery21-Dec-07 6:35 

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.