Click here to Skip to main content
15,890,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: If Else inside Switch possible ? Pin
David Crow28-Jun-05 2:47
David Crow28-Jun-05 2:47 
AnswerRe: If Else inside Switch possible ? Pin
David Crow28-Jun-05 2:38
David Crow28-Jun-05 2:38 
AnswerRe: If Else inside Switch possible ? Pin
John R. Shaw29-Jun-05 9:41
John R. Shaw29-Jun-05 9:41 
I don't know what all the hu-bub is about, of course you can use an if-else statement with in a swich (your code should be working). Unless there is more to your code under DLL_PROCESS_ATTACH that you are not showing us, then you don't need all those extra variables and the if-else can be eliminated, as follows:

// 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:
        return(SCO_AS6() != SCO_ERR_OPEN_DRIVER);
        // Can be left out
        ///////////////////////////////////////////////
    }
    return TRUE;
}


INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralTransfer of data between Embedded property pages to the main property pages Pin
Member 3238127-Jun-05 19:34
Member 3238127-Jun-05 19:34 
GeneralRe: Transfer of data between Embedded property pages to the main property pages Pin
Rage27-Jun-05 21:23
professionalRage27-Jun-05 21:23 
GeneralConversion from String to Time_t Pin
Jun_Misugi27-Jun-05 18:45
Jun_Misugi27-Jun-05 18:45 
GeneralRe: Conversion from String to Time_t Pin
David Crow28-Jun-05 2:52
David Crow28-Jun-05 2:52 
GeneralRe: Conversion from String to Time_t Pin
Jun_Misugi28-Jun-05 6:04
Jun_Misugi28-Jun-05 6:04 
GeneralRe: Conversion from String to Time_t Pin
David Crow28-Jun-05 6:08
David Crow28-Jun-05 6:08 
Generalicon/image in status bar Pin
wasife27-Jun-05 18:01
wasife27-Jun-05 18:01 
GeneralRe: icon/image in status bar Pin
Christian Graus27-Jun-05 18:18
protectorChristian Graus27-Jun-05 18:18 
GeneralHELP... Urgent - Specifying Printer "Output Tray" (Output Bin) Pin
RYU^^27-Jun-05 17:55
RYU^^27-Jun-05 17:55 
QuestionHow to change task-list icon? Pin
Nerd-o-rama27-Jun-05 16:38
Nerd-o-rama27-Jun-05 16:38 
QuestionHow to Create Radio buttons dynamically Pin
zhaopi27-Jun-05 14:50
zhaopi27-Jun-05 14:50 
AnswerRe: How to Create Radio buttons dynamically Pin
Christian Graus27-Jun-05 15:04
protectorChristian Graus27-Jun-05 15:04 
GeneralRe: How to Create Radio buttons dynamically Pin
zhaopi27-Jun-05 15:16
zhaopi27-Jun-05 15:16 
GeneralRe: How to Create Radio buttons dynamically Pin
Christian Graus27-Jun-05 15:28
protectorChristian Graus27-Jun-05 15:28 
GeneralRe: How to Create Radio buttons dynamically Pin
zhaopi27-Jun-05 15:37
zhaopi27-Jun-05 15:37 
GeneralRe: How to Create Radio buttons dynamically Pin
zhaopi27-Jun-05 15:45
zhaopi27-Jun-05 15:45 
GeneralRe: How to Create Radio buttons dynamically Pin
Christian Graus27-Jun-05 15:55
protectorChristian Graus27-Jun-05 15:55 

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.