Click here to Skip to main content
15,900,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOT Pin
Eytukan19-Dec-05 22:25
Eytukan19-Dec-05 22:25 
GeneralRe: OT Pin
toxcct19-Dec-05 22:41
toxcct19-Dec-05 22:41 
GeneralRe: OT Pin
ThatsAlok20-Dec-05 1:15
ThatsAlok20-Dec-05 1:15 
GeneralRe: OT Pin
vikas amin20-Dec-05 1:53
vikas amin20-Dec-05 1:53 
GeneralRe: OT Pin
Eytukan20-Dec-05 3:29
Eytukan20-Dec-05 3:29 
GeneralRe: OT Pin
Eytukan20-Dec-05 3:27
Eytukan20-Dec-05 3:27 
GeneralRe: OT Pin
ThatsAlok20-Dec-05 17:18
ThatsAlok20-Dec-05 17:18 
Questionwhere is the mistake. Pin
iiscodered19-Dec-05 8:18
iiscodered19-Dec-05 8:18 
HI,
i have a problem with this function...

void show(){

int hour,minu,sec;
char *time1;
LPSYSTEMTIME t;

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

GetLocalTime(t);
sprintf(time1,"%d:%d:%d",t->wHour,t->wMinute,t->wSecond);
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 t and time1 is being used without being defined, but...??????
when i set the configurationmode to "release", it runs, if the do while loop exits
another error appears.
please help me...

thanks
AnswerRe: where is the mistake. Pin
Chris Meech19-Dec-05 8:47
Chris Meech19-Dec-05 8:47 
AnswerRe: where is the mistake. Pin
toxcct19-Dec-05 21:35
toxcct19-Dec-05 21:35 
AnswerRe: where is the mistake. Pin
Eytukan19-Dec-05 21:59
Eytukan19-Dec-05 21:59 
QuestionRe: where is the mistake. Pin
toxcct19-Dec-05 22:05
toxcct19-Dec-05 22:05 
AnswerRe: where is the mistake. Pin
Eytukan19-Dec-05 22:19
Eytukan19-Dec-05 22:19 
AnswerRe: where is the mistake. Pin
Eytukan19-Dec-05 22:21
Eytukan19-Dec-05 22:21 
AnswerRe: where is the mistake. Pin
Blake Miller20-Dec-05 4:37
Blake Miller20-Dec-05 4:37 
Questionstatic data member. Pin
paper6719-Dec-05 7:56
paper6719-Dec-05 7:56 
AnswerRe: static data member. Pin
PJ Arends19-Dec-05 11:38
professionalPJ Arends19-Dec-05 11:38 
GeneralRe: static data member. Pin
vikas amin19-Dec-05 19:02
vikas amin19-Dec-05 19:02 
GeneralRe: static data member. Pin
Eytukan19-Dec-05 21:27
Eytukan19-Dec-05 21:27 
QuestionGraphics in dialog window Pin
josephmanu19-Dec-05 7:20
josephmanu19-Dec-05 7:20 
AnswerRe: Graphics in dialog window Pin
Chris Losinger19-Dec-05 7:37
professionalChris Losinger19-Dec-05 7:37 
GeneralRe: Graphics in dialog window Pin
josephmanu19-Dec-05 11:24
josephmanu19-Dec-05 11:24 
Questioni need an example Pin
markshte19-Dec-05 5:33
markshte19-Dec-05 5:33 
QuestionTape Drive help required Pin
Touseef Afzal19-Dec-05 2:09
Touseef Afzal19-Dec-05 2:09 
AnswerRe: Tape Drive help required Pin
kakan19-Dec-05 2:40
professionalkakan19-Dec-05 2:40 

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.