hi all i have a simple (but vital for me) question . in a dialog box when you press ESC what happends? which function runs ? thanx
mohsen nourian
Posts
-
where ESC goes -
persian calenderhello all i need a program that changes system date and makes it persian. not a date convertor. i need a system date convertor , if there is any?
-
delphi converthi every body i have problem with this code : //////////////////////////////// ///code in delphi function doGetStat(aCallBackStatsParser:dfCallBackStatsParser; var strError:string):boolean; var startTime : DWORD; begin result := true; if SysHandle=0 then exit; startTime := GetTickCount; repeat if abs(GetTickCount - startTime) > 1000 then break; // Have driver fill Stats buffer with information if not DeviceIoControl(SysHandle, IOCTL_FILEMON_GETSTATS, nil, 0, @Stats, sizeof(Stats), StatsLen, nil) then begin strError := 'Couldn''t access device driver. errorCode =' +IntToStr(GetLastError); result := false; exit; end; if StatsLen=0 then break; if assigned(aCallBackStatsParser) then aCallBackStatsParser; until false; end; ////////////////////////////////////// // Code in VC BOOL CDriverApp::doGetStatvoid(*aCallBackStatsParser)(void) , CString *strError) { DWORD startTime ; result = TRUE; if (SysHandle==0 ) return FALSE ; startTime= GetTickCount() ; while(TRUE) { if( abs(GetTickCount() - startTime) > 1000 ) break ; // Have driver fill Stats buffer with information if (! DeviceIoControl(SysHandle, IOCTL_FILEMON_GETSTATS, NULL, 0, &Stats, sizeof(Stats), &StatsLen, NULL) ) { strError->Format("Couldnt access device driver.\n errorCode = %d" ,GetLastError()) ; result = FALSE ; return FALSE ; } if(GetLastError()== ERROR_INSUFFICIENT_BUFFER) strError->Format("small buffer") ; if ( StatsLen == 0 ) { return result ;} if (aCallBackStatsParser!= NULL) (*aCallBackStatsParser)() ; } return TRUE ; } /////////////////////////////////////////// it is working in delphi but not in VC why ??
-
ras "error 632"hi there i have a big problem with RasSetEntryProperties() function i fill the RASENTRY obj correctly but it returns error 632 (means : structure size incorrect) I searched all the the web but nothing found :( any idea please :(( I append the cope here : rasEntry.dwSize = sizeof (RASENTRY); ras_result= rasObj.RasSetEntryProperties (NULL, strName, &rasEntry,sizeof(RASENTRY), NULL, NULL) ; if (ras_result) { TRACE ("RasSetEntryProperties failed %s\n", strName); return FALSE; }
-
rich editrealy thank you david it did work . i was going to be realy disappoited with microsoft . but you saved them ;) good luck
-
rich editrealy thank you david it did work . i was going to be realy disappoited with microsoft . but you saved them ;) good luck
-
rich editthanks for your simple response but now i'm trying to put text in a rich edit control while accessing the way i put it there . i mean how i can put text at a line number and a column i wish (example line 5 column 20 ) ? setwindowtext() is good for one line rich edit but i have a multiline rich edit box .so i need a way to write text in it how i wish . Strangely there is no function in rich edit class to do it (except SetWindowText() ) or maybe i dont know because i searched MSDN entirely but nothing found . lots of thanks