Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBinary/Hex/Octal to Integer Pin
MadFruit11-Apr-05 4:44
sussMadFruit11-Apr-05 4:44 
GeneralRe: Binary/Hex/Octal to Integer Pin
David Crow11-Apr-05 4:51
David Crow11-Apr-05 4:51 
GeneralRe: Binary/Hex/Octal to Integer Pin
MadFruit11-Apr-05 4:59
sussMadFruit11-Apr-05 4:59 
GeneralRe: Binary/Hex/Octal to Integer Pin
ddmcr11-Apr-05 5:18
ddmcr11-Apr-05 5:18 
GeneralEasy console programming question Pin
Joel Holdsworth11-Apr-05 4:34
Joel Holdsworth11-Apr-05 4:34 
GeneralRe: Easy console programming question Pin
Cedric Moonen11-Apr-05 4:38
Cedric Moonen11-Apr-05 4:38 
GeneralRe: Easy console programming question Pin
David Crow11-Apr-05 4:54
David Crow11-Apr-05 4:54 
GeneralHelp me, plz (i've a problem with CStatic) Pin
thanh-hai.bui11-Apr-05 3:59
thanh-hai.bui11-Apr-05 3:59 
Hi all!

I've a dialog, in the function : DoDataExchange(CDataExchange* pDX)
//{{AFX_DATA_MAP(CCEdataTextEditorDlg)<br />
	DDX_Control(pDX, IDC_BMP_NEW, test);<br />
	//}}AFX_DATA_MAP


in OnInitDialog():
DWORD dwStyle = WS_VISIBLE|SS_BITMAP|SS_NOTIFY;<br />
	cRect.SetRect( 0, 0, 17, 15 );<br />
	m_csNew.Create(NULL, dwStyle, cRect, this, IDC_BMP_NEW);// IDC_BMP_NEW is declared in a resource file (myResource.h)<br />
	m_bmp.LoadBitmap(IDR_BMP_NEW1);// In resource.h<br />
	m_csNew.SetBitmap(HBITMAP(m_bmp));


.h file :

CRect cRect;<br />
  CStatic m_csNew;<br />
  CBitmap m_bmp;<br />
  CMyClass test;// Here, i declare a class that extends CStatic<br />



anf, finally, i get a error when i compile :

Debug Assertion Failed!
...
File : wincore.cpp
Line : 312

Do u see my pb?? Help me

PS: when i delete DDX_Control(pDX, IDC_BMP_NEW, test);
--> it's OK, but i have any actions!

I think, we have to declare m_csNew.Create(...) before DoDataExchange, but i don't know how to do it Big Grin | :-D
GeneralRe: Help me, plz (i've a problem with CStatic) Pin
David Crow11-Apr-05 4:40
David Crow11-Apr-05 4:40 
Generalneed a function for c language Pin
zhuangfanyin11-Apr-05 3:31
zhuangfanyin11-Apr-05 3:31 
GeneralRe: need a function for c language Pin
toxcct11-Apr-05 3:35
toxcct11-Apr-05 3:35 
GeneralRe: need a function for c language Pin
Cedric Moonen11-Apr-05 3:40
Cedric Moonen11-Apr-05 3:40 
GeneralRe: need a function for c language Pin
zhuangfanyin11-Apr-05 4:08
zhuangfanyin11-Apr-05 4:08 
GeneralRe: need a function for c language Pin
Cedric Moonen11-Apr-05 3:39
Cedric Moonen11-Apr-05 3:39 
GeneralRe: need a function for c language Pin
zhuangfanyin11-Apr-05 4:12
zhuangfanyin11-Apr-05 4:12 
GeneralRe: need a function for c language Pin
zhuangfanyin11-Apr-05 4:21
zhuangfanyin11-Apr-05 4:21 
GeneralRe: need a function for c language Pin
zhuangfanyin11-Apr-05 4:23
zhuangfanyin11-Apr-05 4:23 
GeneralRe: need a function for c language Pin
Cedric Moonen11-Apr-05 4:32
Cedric Moonen11-Apr-05 4:32 
GeneralRe: need a function for c language Pin
zhuangfanyin11-Apr-05 5:36
zhuangfanyin11-Apr-05 5:36 
GeneralRe: need a function for c language Pin
ng kok chuan11-Apr-05 14:29
ng kok chuan11-Apr-05 14:29 
QuestionHow to set text vertically in a Microsoft FlexGrid cell? Pin
jahfer11-Apr-05 3:20
jahfer11-Apr-05 3:20 
Generalstream volume equalizing Pin
barnje0711-Apr-05 3:17
barnje0711-Apr-05 3:17 
GeneralSound .NET key event Pin
Saksida Bojan11-Apr-05 2:41
Saksida Bojan11-Apr-05 2:41 
GeneralRe: Sound .NET key event Pin
Saksida Bojan24-Apr-05 21:06
Saksida Bojan24-Apr-05 21:06 
GeneralVersion compatibility Pin
laiju11-Apr-05 2:31
laiju11-Apr-05 2: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.