Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mohsen nourian

@mohsen nourian
About
Posts
7
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • where ESC goes
    M mohsen nourian

    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

    C / C++ / MFC question

  • persian calender
    M mohsen nourian

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

    System Admin question

  • delphi convert
    M mohsen nourian

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

    C / C++ / MFC help delphi question

  • ras "error 632"
    M mohsen nourian

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

    C / C++ / MFC help debugging

  • rich edit
    M mohsen nourian

    realy thank you david it did work . i was going to be realy disappoited with microsoft . but you saved them ;) good luck

    C / C++ / MFC help

  • rich edit
    M mohsen nourian

    realy thank you david it did work . i was going to be realy disappoited with microsoft . but you saved them ;) good luck

    C / C++ / MFC help

  • rich edit
    M mohsen nourian

    thanks 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

    C / C++ / MFC help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups