Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
This works with out the else if inside the switch. with the switch i can figure out how it works.
//

#define STRICT // wg. type checking
#include "windows.h" // wg. MessageBox
#include "stdlib.h" // wg. abs()

#include "usedll.h"
#include "scooter.h"

// damit die Funktionsnamen leserlich exportiert werden
#pragma comment(linker, "/DEF:usedll.def")



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();

unsigned short error;
unsigned short state;
double value;

error = SCO_AS6();

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


break;

case DLL_PROCESS_DETACH:

atexit(exitfkt);

break;

}

return TRUE;
}



// return not loading driver();
EXP_USHORT TestDriver(void)
{
return SCO_AS6();
}


// Loading of the Driver
EXP_USHORT ItaOpen(void)
{

return ScoOpen();
}

// Unloading of the Driver
EXP_VOID ItaClose(void)
{
ScoClose();
}

// Power on/off for the Vacuum
EXP_USHORT Adaptor(int Status)
{
if(Status == 0)
{
return ScoMSSetVC(SCO_VC1,0);

}
else
{
return ScoMSSetVC(SCO_VC1,1);
}
}

// Power on off for VC2
EXP_USHORT VC2(int Status)
{
if(Status == 0)
{
return ScoMSSetVC(SCO_VC2,0);
}
else
{
return ScoMSSetVC(SCO_VC2,1);
}
}

// Reset all relays back use(CLRREL) command
EXP_USHORT Reset_All(void)
{

return ScoResetAllRelays();
}

// Set relays of the Unicard while set relays stay set
EXP_USHORT Set_Relais(int fl_set)
{
if(fl_set == 0)
{
return ScoUniSetRelay(fl_set,1);
}
else
{
return ScoUniSetRelay(fl_set,1);
}
}


// Reset relays of the Unicard while set relays stay set
EXP_USHORT Reset_Relais(int fl_set)
{
if(fl_set == 0)
{
return ScoUniSetRelay(fl_set,0);
}
else
{
return ScoUniSetRelay(fl_set,0);
}
}


EXP_USHORT Reset_All_Relais(int fl_set)
{
if(fl_set == 0)
{
return ScoUniSetRelay(fl_set,0);
}
else
{
return ScoUniSetRelay(fl_set,0);
}
}

EXP_USHORT VCC(int Number)
{
if(Number == 3)
{
return ScoMSSetVC(SCO_VC3,1);
}
else
{
return ScoMSSetVC(SCO_VC3,0);
}

if (Number == 4)
{
return ScoMSSetVC(SCO_VC4,1);
}
else
{
return ScoMSSetVC(SCO_VC4,0);
}

}


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 
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 

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.