Click here to Skip to main content
15,913,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl - Still Not Working... Pin
Frank Deo1-Aug-01 10:28
Frank Deo1-Aug-01 10:28 
GeneralRe: CListCtrl - Delete Selected Items??? Pin
Ryan Baillargeon8-Apr-01 6:56
Ryan Baillargeon8-Apr-01 6:56 
Generaldetect wince hybernation Pin
7-Apr-01 9:11
suss7-Apr-01 9:11 
GeneralRe: detect wince hybernation Pin
Anders Molin8-Apr-01 3:28
professionalAnders Molin8-Apr-01 3:28 
QuestionHow do I read raw data from a HD Pin
Ben Burnett7-Apr-01 9:05
Ben Burnett7-Apr-01 9:05 
AnswerRe: How do I read raw data from a HD Pin
Michael Dunn7-Apr-01 9:21
sitebuilderMichael Dunn7-Apr-01 9:21 
GeneralRe: How do I read raw data from a HD Pin
Ben Burnett7-Apr-01 9:40
Ben Burnett7-Apr-01 9:40 
GeneralCFile and my class Pin
Ahmad6-Apr-01 23:39
Ahmad6-Apr-01 23:39 
CFile and my class
some problem when I use Cfile to write and read my class
I write this class :
class omega
{
public:
CString o_str;
omega();
virtual ~omega();

};
after that (write work) in functio with button control :
void CMyDialog::OnButWrite()
{
char name[]="mydata.dat";
CFile cfl(name,CFile::modeCreate | CFile::modeWrite);
omega om;
om.o_str = "OMEGA";
cfl.Write(&om,sizeof(om));
cfl.Close();
}

then (read work) in functio with button control :
void CMyDialog::OnButRead()
{
char name[]="mydata.dat";
CFile cfl(name,CFile::modeRead);
omega om ;
cfl.Read(&om,sizeof(om));
MessageBox(om.om2.o_str,"DATA FROM mydata.dat " );
}
now the problem here ...
the program was compiled without any errors
but in run time , when you do write work and then read work
error message apeare and tell me that :
that's caused an error in MSVCRTD.DLL
then another message apeare and tell me that :
Debug Assertion Failed!
FILE:dbgheap.c
LINE:1017
Expression : _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
this problem is apeare when I use CString in my calss and didn't
apear when I use base types like char,int...etc
any one can helpe me...




AHMAD ALWASHALI

GeneralRe: CFile and my class Pin
AlexMarbus7-Apr-01 6:16
AlexMarbus7-Apr-01 6:16 
GeneralRe: CFile and my class Pin
Michael Dunn7-Apr-01 9:24
sitebuilderMichael Dunn7-Apr-01 9:24 
QuestionDLL newing objects on process heap? Pin
6-Apr-01 16:19
suss6-Apr-01 16:19 
AnswerRe: DLL newing objects on process heap? Pin
Michael Dunn6-Apr-01 18:48
sitebuilderMichael Dunn6-Apr-01 18:48 
GeneralRe: DLL newing objects on process heap? Pin
7-Apr-01 6:52
suss7-Apr-01 6:52 
AnswerRe: DLL newing objects on process heap? Pin
Tim Deveaux7-Apr-01 13:37
Tim Deveaux7-Apr-01 13:37 
QuestionDirectDraw in a CView -> possible? Pin
Michael Menne6-Apr-01 14:20
Michael Menne6-Apr-01 14:20 
GeneralConverting Pin
Drake Elsari6-Apr-01 13:16
Drake Elsari6-Apr-01 13:16 
GeneralRe: Converting Pin
Erik Thompson6-Apr-01 13:47
sitebuilderErik Thompson6-Apr-01 13:47 
GeneralRe: Converting Pin
Drake Elsari7-Apr-01 13:11
Drake Elsari7-Apr-01 13:11 
GeneralRe: Converting Pin
Erik Thompson7-Apr-01 14:17
sitebuilderErik Thompson7-Apr-01 14:17 
GeneralRe: Converting Pin
AlexMarbus8-Apr-01 3:41
AlexMarbus8-Apr-01 3:41 
GeneralRe: Converting Pin
Ivan Yap4-Dec-01 21:10
Ivan Yap4-Dec-01 21:10 
GeneralConverting Pin
Drake Elsari6-Apr-01 13:15
Drake Elsari6-Apr-01 13:15 
GeneralRe: Converting Pin
Kannan Kalyanaraman6-Apr-01 20:35
Kannan Kalyanaraman6-Apr-01 20:35 
QuestionSet Font size? Pin
Richard Cheng6-Apr-01 12:53
Richard Cheng6-Apr-01 12:53 
GeneralFaster way to do input Pin
Richard Cheng6-Apr-01 11:30
Richard Cheng6-Apr-01 11:30 

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.