Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMy DLL's registry functions Pin
Selevercin3-Aug-02 15:36
Selevercin3-Aug-02 15:36 
GeneralThrowing exceptions Pin
alex.barylski3-Aug-02 15:22
alex.barylski3-Aug-02 15:22 
GeneralRe: Throwing exceptions Pin
Vivek Rajan3-Aug-02 18:55
Vivek Rajan3-Aug-02 18:55 
GeneralRe: Throwing exceptions Pin
alex.barylski4-Aug-02 2:04
alex.barylski4-Aug-02 2:04 
Generalcopy files Pin
smooth3-Aug-02 12:20
smooth3-Aug-02 12:20 
GeneralRe: copy files Pin
Rama Krishna Vavilala3-Aug-02 12:25
Rama Krishna Vavilala3-Aug-02 12:25 
Generaltry catch and return simple question. Pin
nss3-Aug-02 11:35
nss3-Aug-02 11:35 
GeneralRe: try catch and return simple question. Pin
Christian Graus3-Aug-02 11:54
protectorChristian Graus3-Aug-02 11:54 
You should put the return outside the try catch block, otherwise you need to return inside the catch and the try. The point of the catch is that the rest of the try code will not be executed. I'd do something like this

int MyFunc()
{
int nRetVal = -1;
try
{
}
catch (...)
{

}


return nRetval;
}

Where -1 is a sensibile value to indicate failure, or to have no effect.



Christian

We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
GeneralThank you!. Pin
nss3-Aug-02 14:15
nss3-Aug-02 14:15 
Generalstrange PCH creation point error Pin
nss3-Aug-02 11:20
nss3-Aug-02 11:20 
GeneralRe: strange PCH creation point error Pin
Daniel Turini3-Aug-02 11:37
Daniel Turini3-Aug-02 11:37 
GeneralRe: strange PCH creation point error Pin
nss3-Aug-02 11:41
nss3-Aug-02 11:41 
Generalcalling external .exe Pin
smooth3-Aug-02 11:09
smooth3-Aug-02 11:09 
GeneralRe: calling external .exe Pin
Chris Losinger3-Aug-02 11:23
professionalChris Losinger3-Aug-02 11:23 
Questionhow to add a database class into an existing MFC app? Pin
nss3-Aug-02 9:36
nss3-Aug-02 9:36 
AnswerRe: how to add a database class into an existing MFC app? Pin
Michael P Butler4-Aug-02 2:49
Michael P Butler4-Aug-02 2:49 
GeneralRe: how to add a database class into an existing MFC app? Pin
nss4-Aug-02 6:15
nss4-Aug-02 6:15 
Questioncompile error - windows.h defined twice? Pin
nss3-Aug-02 9:27
nss3-Aug-02 9:27 
AnswerRe: compile error - windows.h defined twice? Pin
56789012343-Aug-02 21:46
56789012343-Aug-02 21:46 
GeneralRe: compile error - windows.h defined twice? Pin
nss4-Aug-02 6:12
nss4-Aug-02 6:12 
GeneralFTP using winsocks Pin
carrie3-Aug-02 8:28
carrie3-Aug-02 8:28 
QuestionHow to capture the "save" command in the MS office? Pin
max-z3-Aug-02 7:18
max-z3-Aug-02 7:18 
Questionhow to copy binary data? How to get its length? Pin
nss3-Aug-02 6:20
nss3-Aug-02 6:20 
AnswerRe: how to copy binary data? How to get its length? Pin
Daniel Turini3-Aug-02 11:46
Daniel Turini3-Aug-02 11:46 
AnswerRe: how to copy binary data? How to get its length? Pin
Daniel Turini3-Aug-02 11:46
Daniel Turini3-Aug-02 11:46 

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.