This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void DoEvents() { | |
MSG msg; | |
if(::PeekMessage(&msg,NULL,0,0,PM_REMOVE)) { | |
::TranslateMessage(&msg); | |
::DispatchMessage(&msg); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Spawner { | |
STARTUPINFOA si; | |
PROCESS_INFORMATION pri; | |
bool wasOk; | |
string _name; | |
public: | |
Spawner(string name) { _name = name; wasOk = FALSE; } | |
void Activate(bool status) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int toggleV1(int v1, int v2) { | |
static short n = 0; | |
if (n==0) { n=1; return v1;} | |
if (n==1) { n=0; return v2;} | |
return 0; | |
} | |
int toggleV2(int v1, int v2) { | |
static bool t = false; | |
t = !t; | |
return (t ? v1 : v2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
char line[1024]; | |
void operateOnFiles(FILE* fin, FILE* fout) { | |
printf("Files Ok..\n"); | |
while (!feof(fin)){ | |
fgets(line, 1024, fin); | |
printf("%s", line); // Start Here |