Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLet the CHILD window's bakcground be transparent [modified] Pin
followait13-Jul-08 22:40
followait13-Jul-08 22:40 
AnswerRe: Let the window's bakcground be transparent Pin
sudhir_Kumar14-Jul-08 0:17
sudhir_Kumar14-Jul-08 0:17 
GeneralRe: Let the window's bakcground be transparent Pin
followait14-Jul-08 1:41
followait14-Jul-08 1:41 
AnswerRe: Let the CHILD window's bakcground be transparent Pin
Mark Salsbery14-Jul-08 6:14
Mark Salsbery14-Jul-08 6:14 
QuestionBatch file problem Pin
Nandu_77b13-Jul-08 22:39
Nandu_77b13-Jul-08 22:39 
AnswerRe: Batch file problem Pin
Varghese Paul M13-Jul-08 23:21
Varghese Paul M13-Jul-08 23:21 
GeneralRe: Batch file problem Pin
Nandu_77b13-Jul-08 23:46
Nandu_77b13-Jul-08 23:46 
Questiontry catch question Pin
Dennis L13-Jul-08 22:30
Dennis L13-Jul-08 22:30 
Hi all!

Can anyone tell me if i could use try-catch block within a windows procedure to catch errors like
"Error occurred while creating window!" or
"Couldn't initialize COM object!"

for example my in winmain function:

try
{
SetupMessageBoxPointer();
// Initialize WinSock for peer to peer classes, and COM for ...
if (!InitializeWinSock2())
throw Error(L"Error: Cannot initialize Ws2_32.dll!", _FATAL_ERROR);
if ((hOK = CoInitialize(NULL)) != S_OK)
throw Error(L"Error: Cannot initialize COM object!", _FATAL_ERROR);

mainapp = new DataCrypt(hInstance);
if (mainapp == NULL)
throw Error(L"Cannot allocate memory for DataCrypt object!", _FATAL_ERROR);

mainapp->Initialize();
mainapp->Run(); // messages loop
}
catch(Error &err)
{
ERRORMSG(NULL, err.GetText(), err.GetErrorType());
}
AnswerRe: try catch question Pin
Atropus13-Jul-08 23:06
Atropus13-Jul-08 23:06 
AnswerRe: try catch question Pin
Matthew Faithfull14-Jul-08 0:25
Matthew Faithfull14-Jul-08 0:25 
GeneralRe: try catch question Pin
Stephen Hewitt14-Jul-08 14:52
Stephen Hewitt14-Jul-08 14:52 
GeneralRe: try catch question Pin
Matthew Faithfull15-Jul-08 0:33
Matthew Faithfull15-Jul-08 0:33 
QuestionHow to disable visual style to the whole project Pin
Atropus13-Jul-08 22:11
Atropus13-Jul-08 22:11 
AnswerRe: How to disable visual style to the whole project Pin
BadKarma13-Jul-08 23:06
BadKarma13-Jul-08 23:06 
GeneralRe: How to disable visual style to the whole project Pin
Atropus13-Jul-08 23:15
Atropus13-Jul-08 23:15 
AnswerRe: How to disable visual style to the whole project Pin
Naveen13-Jul-08 23:08
Naveen13-Jul-08 23:08 
GeneralRe: How to disable visual style to the whole project Pin
Atropus13-Jul-08 23:23
Atropus13-Jul-08 23:23 
GeneralRe: How to disable visual style to the whole project Pin
Naveen13-Jul-08 23:29
Naveen13-Jul-08 23:29 
GeneralRe: How to disable visual style to the whole project Pin
Atropus13-Jul-08 23:33
Atropus13-Jul-08 23:33 
Questionsending clist using writeprocessmemory Pin
Prasann Mayekar13-Jul-08 21:41
Prasann Mayekar13-Jul-08 21:41 
QuestionRe: sending clist using writeprocessmemory Pin
CPallini13-Jul-08 21:49
mveCPallini13-Jul-08 21:49 
AnswerRe: sending clist using writeprocessmemory Pin
Mark Salsbery14-Jul-08 6:25
Mark Salsbery14-Jul-08 6:25 
AnswerRe: sending clist using writeprocessmemory Pin
Stephen Hewitt14-Jul-08 14:55
Stephen Hewitt14-Jul-08 14:55 
Questionhow can i check whether the audio driver installed or not for my vc++ application? Pin
stewens13-Jul-08 20:11
stewens13-Jul-08 20:11 
AnswerRe: how can i check whether the audio driver installed or not for my vc++ application? Pin
Stephen Hewitt13-Jul-08 20:33
Stephen Hewitt13-Jul-08 20:33 

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.