Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Performance - Thread vs. Message Pump Pin
Michael Dunn21-Dec-05 7:39
sitebuilderMichael Dunn21-Dec-05 7:39 
GeneralRe: Performance - Thread vs. Message Pump Pin
Office Lineman21-Dec-05 9:03
Office Lineman21-Dec-05 9:03 
AnswerRe: Performance - Thread vs. Message Pump Pin
David Crow21-Dec-05 8:06
David Crow21-Dec-05 8:06 
GeneralRe: Performance - Thread vs. Message Pump Pin
Office Lineman21-Dec-05 9:28
Office Lineman21-Dec-05 9:28 
QuestionResize a window in runtime Pin
sam117321-Dec-05 6:10
sam117321-Dec-05 6:10 
AnswerRe: Resize a window in runtime Pin
Rage21-Dec-05 6:18
professionalRage21-Dec-05 6:18 
Questionproblem retrieiving wmiClass info Pin
WetRivrRat21-Dec-05 3:16
WetRivrRat21-Dec-05 3:16 
Questionstack corrupted Pin
iiscodered21-Dec-05 2:29
iiscodered21-Dec-05 2:29 
HI,
i have a problem with this function...

void show(){

int hour,minu,sec;
char time1;

hLUIseDLL = LoadLibrary("LUIse.dll");
if (hLUIseDLL != NULL)
{
LUI_OpenDevice = (T_LUI_OpenDevice)GetProcAddress(hLUIseDLL, "LUI_OpenDevice");
LUI_CloseDevice = (T_LUI_CloseDevice)GetProcAddress(hLUIseDLL, "LUI_CloseDevice");
LUI_DispOnOff = (T_LUI_DispOnOff)GetProcAddress(hLUIseDLL, "LUI_DispOnOff");
LUI_CCFL = (T_LUI_CCFL)GetProcAddress(hLUIseDLL, "LUI_CCFL");
LUI_GetContrast = (T_LUI_GetContrast)GetProcAddress(hLUIseDLL, "LUI_GetContrast");
LUI_SetContrast = (T_LUI_SetContrast)GetProcAddress(hLUIseDLL, "LUI_SetContrast");
LUI_OutPort = (T_LUI_OutPort)GetProcAddress(hLUIseDLL, "LUI_OutPort");
LUI_InPort = (T_LUI_InPort)GetProcAddress(hLUIseDLL, "LUI_InPort");
LUI_LCDmode = (T_LUI_LCDmode)GetProcAddress(hLUIseDLL, "LUI_LCDmode");
LUI_Bitmap = (T_LUI_Bitmap)GetProcAddress(hLUIseDLL, "LUI_Bitmap");
LUI_Text = (T_LUI_Text)GetProcAddress(hLUIseDLL, "LUI_Text");
LUI_BMPfile = (T_LUI_BMPfile)GetProcAddress(hLUIseDLL, "LUI_BMPfile");
LUI_SetPixel = (T_LUI_SetPixel)GetProcAddress(hLUIseDLL, "LUI_SetPixel");
LUI_GetSerial = (T_LUI_GetSerial)GetProcAddress(hLUIseDLL, "LUI_GetSerial");
GetDllVersion = (T_GetDllVersion)GetProcAddress(hLUIseDLL, "GetDllVersion");
LUI_ScreenRefreshControl = (T_LUI_ScreenRefreshControl)GetProcAddress(hLUIseDLL, "LUI_ScreenRefreshControl");
LUI_TouchScreen = (T_LUI_TouchScreen)GetProcAddress(hLUIseDLL, "LUI_TouchScreen");
}else MessageBox(0,"DLL Error","Error", MB_OK);

LUI_OpenDevice(0)
LUI_TouchScreen(0,mouse);

do{
if(mouse[1]<300){

CTime t=CTime::GetCurrentTime();
sprintf(&time1,"%d:%d:%d",t.GetDay(),t.GetMinute(),t.GetSecond());

parser.data=&time1;
parser.draw();
LUI_TouchScreen(0,mouse);

Sleep(200);

}while(mouse[1]<=300);


LUI_CloseDevice(0);
Sleep(200);

FreeLibrary(hLUIseDLL);
}


the debugger says that the stack around the time1 is corrupted(runtime errot #2), but...what to do?
when i set the configurationmode to "release", it runs, but time1 isn't the value.
please help me...

thanks

-- modified at 8:29 Wednesday 21st December, 2005
AnswerRe: stack corrupted Pin
JCO66321-Dec-05 2:41
JCO66321-Dec-05 2:41 
AnswerRe: stack corrupted Pin
toxcct21-Dec-05 2:55
toxcct21-Dec-05 2:55 
GeneralRe: stack corrupted Pin
iiscodered21-Dec-05 3:47
iiscodered21-Dec-05 3:47 
GeneralRe: stack corrupted [edited] Pin
toxcct21-Dec-05 3:49
toxcct21-Dec-05 3:49 
QuestionGetPixel: How to include cursor icon? Pin
Matrim Cauthon21-Dec-05 1:30
Matrim Cauthon21-Dec-05 1:30 
AnswerRe: GetPixel: How to include cursor icon? Pin
Rage21-Dec-05 3:51
professionalRage21-Dec-05 3:51 
GeneralRe: GetPixel: How to include cursor icon? Pin
Matrim Cauthon21-Dec-05 6:53
Matrim Cauthon21-Dec-05 6:53 
GeneralRe: GetPixel: How to include cursor icon? Pin
basementman21-Dec-05 8:57
basementman21-Dec-05 8:57 
Generalu use the Getpixel for picture dc Pin
Member 22716555-Jan-06 22:27
Member 22716555-Jan-06 22:27 
GeneralRe: u use the Getpixel for picture dc Pin
basementman6-Jan-06 4:08
basementman6-Jan-06 4:08 
QuestionInitializing Structure in a class Pin
vikas amin21-Dec-05 0:50
vikas amin21-Dec-05 0:50 
AnswerRe: Initializing Structure in a class Pin
Rage21-Dec-05 1:11
professionalRage21-Dec-05 1:11 
AnswerRe: Initializing Structure in a class Pin
Owner drawn21-Dec-05 1:13
Owner drawn21-Dec-05 1:13 
GeneralRe: Initializing Structure in a class Pin
toxcct21-Dec-05 2:03
toxcct21-Dec-05 2:03 
GeneralRe: Initializing Structure in a class Pin
Owner drawn21-Dec-05 19:44
Owner drawn21-Dec-05 19:44 
AnswerRe: Initializing Structure in a class Pin
Eytukan21-Dec-05 2:01
Eytukan21-Dec-05 2:01 
AnswerRe: Initializing Structure in a class Pin
toxcct21-Dec-05 2:13
toxcct21-Dec-05 2:13 

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.