Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to release memeory? Pin
rushing27-Jun-05 20:13
rushing27-Jun-05 20:13 
AnswerRe: How to release memeory? Pin
Cillieacc0rd5o427-Jun-05 20:18
Cillieacc0rd5o427-Jun-05 20:18 
Generalconjunction with Message ...... Pin
janakiraman200027-Jun-05 19:47
janakiraman200027-Jun-05 19:47 
GeneralRe: conjunction with Message ...... Pin
Christian Graus27-Jun-05 19:54
protectorChristian Graus27-Jun-05 19:54 
GeneralMouse event in transparent aera Pin
suhongwen27-Jun-05 19:38
suhongwen27-Jun-05 19:38 
GeneralRe: Mouse event in transparent aera Pin
Rage27-Jun-05 21:19
professionalRage27-Jun-05 21:19 
GeneralRe: Mouse event in transparent aera Pin
suhongwen27-Jun-05 21:29
suhongwen27-Jun-05 21:29 
QuestionIf Else inside Switch possible ? Pin
Anonymous27-Jun-05 19:35
Anonymous27-Jun-05 19:35 
I dont get C++
How do if and else statements work inside the the switch Entry handler. Can anyone clearify how to use if and else inside the Switch part? its marked from arrow to arrow thank you..... Hugs =P


void exitfkt(void)
{
MessageBox(NULL,"Unload Dll", "Test", MB_ICONINFORMATION | MB_OK);
}

// Loading of the driver at start of the driver
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch(ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
>>>>>> int SCO_AS6(void)
{
unsigned short error;
double measure_range;
unsigned short state;
double value;

error = SCO_AS6();

if (error != SCO_ERR_OPEN_DRIVER)
{
>>>> return TRUE;
}
else FALSE;
}

break;

// Can be left out
///////////////////////////////////////////////
case DLL_THREAD_ATTACH:

MessageBox(NULL,"Dll in Use", "Test", MB_ICONINFORMATION | MB_OK);

break;

case DLL_THREAD_DETACH:

MessageBox(NULL,"Dll unused by a Program", "Test", MB_ICONINFORMATION | MB_OK);

break;
///////////////////////////////////////////////
// If not needed can be left out

case DLL_PROCESS_DETACH:

atexit(exitfkt);

break;

}

return TRUE;
}

AnswerRe: If Else inside Switch possible ? Pin
Christian Graus27-Jun-05 19:55
protectorChristian Graus27-Jun-05 19:55 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 19:58
Cillieacc0rd5o427-Jun-05 19:58 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 20:33
Cillieacc0rd5o427-Jun-05 20:33 
GeneralRe: If Else inside Switch possible ? Pin
Christian Graus27-Jun-05 20:38
protectorChristian Graus27-Jun-05 20:38 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 20:51
Cillieacc0rd5o427-Jun-05 20:51 
GeneralRe: If Else inside Switch possible ? Pin
Christian Graus27-Jun-05 20:55
protectorChristian Graus27-Jun-05 20:55 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 21:09
Cillieacc0rd5o427-Jun-05 21:09 
GeneralRe: If Else inside Switch possible ? Pin
Christian Graus28-Jun-05 13:11
protectorChristian Graus28-Jun-05 13:11 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o429-Jun-05 1:58
Cillieacc0rd5o429-Jun-05 1:58 
GeneralRe: If Else inside Switch possible ? Pin
Christian Graus29-Jun-05 11:33
protectorChristian Graus29-Jun-05 11:33 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o429-Jun-05 19:43
Cillieacc0rd5o429-Jun-05 19:43 
GeneralRe: If Else inside Switch possible ? Pin
Cilllieaac0rd27-Jun-05 22:20
sussCilllieaac0rd27-Jun-05 22:20 
GeneralRe: If Else inside Switch possible ? Pin
Christian Graus28-Jun-05 13:12
protectorChristian Graus28-Jun-05 13:12 
AnswerRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 19:56
Cillieacc0rd5o427-Jun-05 19:56 
GeneralRe: If Else inside Switch possible ? Pin
Christian Graus27-Jun-05 20:02
protectorChristian Graus27-Jun-05 20:02 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 20:08
Cillieacc0rd5o427-Jun-05 20:08 
GeneralRe: If Else inside Switch possible ? Pin
Cillieacc0rd5o427-Jun-05 21:24
Cillieacc0rd5o427-Jun-05 21:24 

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.