Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestioncapDriverConnect(hwnd_frame,0) Pin
anilaabc2-Nov-08 17:45
anilaabc2-Nov-08 17:45 
AnswerRe: capDriverConnect(hwnd_frame,0) Pin
Mark Salsbery3-Nov-08 5:42
Mark Salsbery3-Nov-08 5:42 
QuestionHelp for a dummy ! - How do add a Custom Control to my VC++6.0 MFC project. Pin
Neil Urquhart2-Nov-08 5:19
Neil Urquhart2-Nov-08 5:19 
AnswerRe: Help for a dummy ! - How do add a Custom Control to my VC++6.0 MFC project. Pin
Michael Dunn2-Nov-08 8:01
sitebuilderMichael Dunn2-Nov-08 8:01 
QuestionException Handling in Microsoft Visual C++ Express? Pin
Megidolaon2-Nov-08 2:31
Megidolaon2-Nov-08 2:31 
AnswerRe: Exception Handling in Microsoft Visual C++ Express? Pin
Michael Dunn2-Nov-08 8:06
sitebuilderMichael Dunn2-Nov-08 8:06 
GeneralRe: Exception Handling in Microsoft Visual C++ Express? Pin
Megidolaon2-Nov-08 23:00
Megidolaon2-Nov-08 23:00 
GeneralRe: Exception Handling in Microsoft Visual C++ Express? Pin
Michael Dunn3-Nov-08 19:44
sitebuilderMichael Dunn3-Nov-08 19:44 
Megidolaon wrote:
Could you tell me a way to get an exception without explicitly throwing one?
I want to see for myself how it works, so I can use it myself later.

Not sure I understand. If the code you're calling doesn't throw exceptions, then the only way to generate an exception is to throw one yourself.

Megidolaon wrote:
I'm used to everything throwing an exception the moment something doesn't work in C# but in C++ they don't seem to occur nearly as often.

MS decreed that exceptions were the way to signal errors in .net right from the beginning. In C++, exceptions aren't used nearly as often due to the many years that C++ existed without stable exception implementations, not to mention programmers who come from C, and those (like me) who just dislike exceptions entirely.

It all comes down to the code you're calling. If it uses return values to signal errors, check return values. Exactly how you tell your user that an error happened is a different discussion entirely (it would be worth starting a new post so more people see it; this one's already well-buried).


--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! CP SearchBar v3.0 | C++ Forum FAQ

I work for Keyser Söze

GeneralRe: Exception Handling in Microsoft Visual C++ Express? Pin
Megidolaon4-Nov-08 6:36
Megidolaon4-Nov-08 6:36 
QuestionVisual Studio crashes Pin
Heptagonal1-Nov-08 23:01
Heptagonal1-Nov-08 23:01 
AnswerRe: Visual Studio crashes Pin
Michael Dunn2-Nov-08 8:08
sitebuilderMichael Dunn2-Nov-08 8:08 
Questionhow to delete icon of tool bar Pin
zhiyuan161-Nov-08 21:11
zhiyuan161-Nov-08 21:11 
AnswerRe: how to delete icon of tool bar Pin
Hamid_RT2-Nov-08 2:42
Hamid_RT2-Nov-08 2:42 
Questionhow to jump to heap to execute code? Pin
Irfan Ul Haq1-Nov-08 19:34
Irfan Ul Haq1-Nov-08 19:34 
AnswerRe: how to jump to heap to execute code? Pin
Michael Dunn2-Nov-08 8:10
sitebuilderMichael Dunn2-Nov-08 8:10 
Questionwant to merge childwindow into the main window Pin
prithaa1-Nov-08 19:22
prithaa1-Nov-08 19:22 
AnswerRe: want to merge childwindow into the main window Pin
Nishad S2-Nov-08 20:07
Nishad S2-Nov-08 20:07 
GeneralRe: want to merge childwindow into the main window Pin
prithaa2-Nov-08 21:43
prithaa2-Nov-08 21:43 
GeneralRe: want to merge childwindow into the main window Pin
Nishad S2-Nov-08 21:52
Nishad S2-Nov-08 21:52 
GeneralRe: want to merge childwindow into the main window Pin
prithaa2-Nov-08 22:00
prithaa2-Nov-08 22:00 
GeneralRe: want to merge childwindow into the main window Pin
Nishad S2-Nov-08 22:50
Nishad S2-Nov-08 22:50 
GeneralRe: want to merge childwindow into the main window Pin
prithaa3-Nov-08 0:20
prithaa3-Nov-08 0:20 
GeneralRe: want to merge childwindow into the main window Pin
Nishad S3-Nov-08 0:31
Nishad S3-Nov-08 0:31 
GeneralRe: want to merge childwindow into the main window Pin
prithaa3-Nov-08 6:48
prithaa3-Nov-08 6:48 
GeneralRe: want to merge childwindow into the main window Pin
Nishad S3-Nov-08 18:51
Nishad S3-Nov-08 18:51 

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.