Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to find reason why application crashes? Pin
Stephen Hewitt10-May-06 19:12
Stephen Hewitt10-May-06 19:12 
AnswerRe: how to find reason why application crashes? Pin
kakan10-May-06 19:30
professionalkakan10-May-06 19:30 
GeneralRe: how to find reason why application crashes? Pin
Stephen Hewitt11-May-06 3:57
Stephen Hewitt11-May-06 3:57 
GeneralRe: how to find reason why application crashes? Pin
kakan11-May-06 20:27
professionalkakan11-May-06 20:27 
GeneralRe: how to find reason why application crashes? Pin
Stephen Hewitt11-May-06 20:38
Stephen Hewitt11-May-06 20:38 
GeneralRe: how to find reason why application crashes? Pin
kakan11-May-06 20:51
professionalkakan11-May-06 20:51 
QuestionHow to use Recordset open a stream object Pin
WillTian10-May-06 17:56
WillTian10-May-06 17:56 
AnswerRe: How to use Recordset open a stream object Pin
Stephen Hewitt10-May-06 18:29
Stephen Hewitt10-May-06 18:29 
I don't know what technologies you using or what types your variables are. I assume m_pStm is an IStream. Your cast to IDispatch* worries me: this can't be an up-cast as IStream doesn't derive from IDispatch; it's possible that it's a down-cast but I find that unlikely. I suspect this cast isn't valid and if this is the case this is a perfect opportunity for me to rant about the evils of the C-style cast:
 C-style casts; just say no. If you use this instead you will have more type checking at compile time which will catch many bad casts (but not all):
rs->Save(static_cast<IDispatch*>(m_pStm), adPersistXML);


With this style of casting you can't cast between unrelated types; which is almost always the programmer's intent.


Steve
AnswerRe: How to use Recordset open a stream object Pin
Stephen Hewitt10-May-06 18:59
Stephen Hewitt10-May-06 18:59 
GeneralRe: How to use Recordset open a stream object Pin
WillTian10-May-06 19:09
WillTian10-May-06 19:09 
QuestionHow to issue SQL command in MFC C++? Pin
Ting Li Che10-May-06 15:41
Ting Li Che10-May-06 15:41 
AnswerRe: How to issue SQL command in MFC C++? Pin
John M. Drescher10-May-06 17:59
John M. Drescher10-May-06 17:59 
AnswerRe: How to issue SQL command in MFC C++? Pin
David Crow11-May-06 2:43
David Crow11-May-06 2:43 
QuestionHow to program to set the mouse properties? Pin
flyingxu10-May-06 15:03
flyingxu10-May-06 15:03 
AnswerRe: How to program to set the mouse properties? Pin
Stephen Hewitt10-May-06 15:34
Stephen Hewitt10-May-06 15:34 
Questionhow to create a CBitmap object from a bitmap file? Pin
includeh1010-May-06 11:28
includeh1010-May-06 11:28 
AnswerRe: how to create a CBitmap object from a bitmap file? Pin
Michael Dunn10-May-06 14:07
sitebuilderMichael Dunn10-May-06 14:07 
AnswerRe: how to create a CBitmap object from a bitmap file? Pin
Hamid_RT10-May-06 18:32
Hamid_RT10-May-06 18:32 
GeneralRe: how to create a CBitmap object from a bitmap file? Pin
Andy Rama10-May-06 21:07
Andy Rama10-May-06 21:07 
GeneralRe: how to create a CBitmap object from a bitmap file? Pin
Hamid_RT10-May-06 21:55
Hamid_RT10-May-06 21:55 
GeneralRe: how to create a CBitmap object from a bitmap file? Pin
Andy Rama10-May-06 22:58
Andy Rama10-May-06 22:58 
GeneralRe: how to create a CBitmap object from a bitmap file? Pin
Hamid_RT11-May-06 0:19
Hamid_RT11-May-06 0:19 
GeneralRe: how to create a CBitmap object from a bitmap file? Pin
Andy Rama11-May-06 0:55
Andy Rama11-May-06 0:55 
QuestionHow to hide a process Pin
Umair Ahmad khan10-May-06 11:04
Umair Ahmad khan10-May-06 11:04 
AnswerRe: How to hide a process Pin
Jörgen Sigvardsson10-May-06 11:53
Jörgen Sigvardsson10-May-06 11:53 

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.