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
N

n 0

@n 0
About
Posts
66
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CTreeCtrl with checkboxes
    N n 0

    ive got a CListCtrl derived control with checkboxes. i want to know when the user checks/unchecks an item. does anybody know which notification to use? thanks Я люблю русский языкь!

    C / C++ / MFC question

  • LNK2005
    N n 0

    hi, there. please help me with this urgent problem i have. use the wizard to build a regular mfc dll project. include 2 files in your project: a.h int a; a.cpp #include "stdafx.h" #include "a.h" #include "a.h" in your CWinApp derived class' .cpp file. why the hell do you get LNK2005?? thank you Я люблю русский языкь!

    C / C++ / MFC c++ help question

  • Checking of a file before the main window is shown
    N n 0

    well, this seems to be pretty simple to me if i got that right: BOOL FindFile(void) { BOOL bResult; // ... return bResult; // return TRUE if your file's been found } // initinstance() if( FindFile() ) { CYourDialog dlg; if( dlg.DoModal() == IDOK ) // client clicked OK else // client clicked cancel } else { MessageBox(NULL, // your error msg... } ////////////////////////////////////////// i made a dialog-based app, for the sake of simplicity and clarity... hope this helps Я люблю русский языкь!

    C / C++ / MFC algorithms help tutorial

  • serial comm in w2k (please help!!!)
    N n 0

    it thought of writing myself a device driver, too; but then i thought of some cheap programs that used to work for win95 and they managed to do well without any ddk. and besides that, you got software and hardware fifos you can setup to whatever size you need so even when you're synchronizing with the frames on a very slow machine it should be enough picking up some KBs each 10, 20, ...60 secs to keep up... i think one must be able to fix this by altering the timeouts... maybe you got some other ideas... thanks Я люблю русский языкь!

    C / C++ / MFC help hardware question

  • serial comm in w2k (please help!!!)
    N n 0

    no, no... these are the 7 bytes i get ach 3ms: byte1 byte2 byte3 ... ID data1 data2 ... each frame begins with 0x37 - thats the id that tells me where i may begin with the synchronization. but the problem lies somewhere else: i can't set the reading timeouts (SetCommTimeout()) properly to keep up with those 7 bytes each 3ms... i'm able to keep up for about 10 seconds; each 10 seconds i loose some frames. one of the reason is this very slow computer i'm using... (my program's got to work event on 133MHz machines!) Я люблю русский языкь!

    C / C++ / MFC help hardware question

  • serial comm in w2k (please help!!!)
    N n 0

    i use CreateFile(), ReadFile(), WriteFile() && CloseHandle(). i set the timeout values with setcommtimeouts Я люблю русский языкь!

    C / C++ / MFC help hardware question

  • serial comm in w2k (please help!!!)
    N n 0

    i posted this already once, but it seems like nobody noticed it... this is really important and urgent... i need help with my timeouts. i can get my program to read/write single bytes, but the problem is a function related with the hardware i'm using. you send the command and the hardware will enter a loop sending you each 3ms 7 bytes. i can't set the timeouts properly in order to receive all those bytes (the most important thing is that i don't loose any bytes!)... can anybody please help me?? thank you in advance... Я люблю русский языкь!

    C / C++ / MFC help hardware question

  • serial comm in w2k
    N n 0

    i need help with my timeouts. i can get my program to read/write single bytes, but the problem is a function related with the hardware i'm using. you send the command and the hardware will enter a loop sending you each 3ms 7 bytes. i can't set the timeouts properly in order to receive all those bytes (the most important thing is that i don't loose any bytes!)... can anybody please help me?? thank you in advance... Я люблю русский языкь!

    C / C++ / MFC help hardware question

  • CWnd::OnVScroll()
    N n 0

    hi there, i need to process some stuff every time my cwnd obj gets scrolled. the problem is that onvscroll is not called if one scrolls with the wheel. can somebody help me please? Я люблю русский языкь!

    C / C++ / MFC help question

  • my theory
    N n 0

    phil: it's just about the fact that the only things that can affect a being are it's dna and experiences. just theoretically... anyway, i'm glad that you've posted this; it seems like anyone's thinking the way i do on this matter Я люблю русский языкь!

    The Lounge lounge

  • She's only 10 decibels quieter than a jet
    N n 0

    thank you. i'm learning russian. it's as hard to learn as beautiful. Я люблю русский языкь!

    The Lounge java com help announcement

  • She's only 10 decibels quieter than a jet
    N n 0

    friggin'! consider that in some parts of germany concerts may not exceed 110 decibels (some germans can get really stupid; many would call the freaking cops to go interrupt concerts)! or like a friend of mine: in controversy to another law that states that cars may not exceed 96 decibels including the exhaust, his reaches 126 without one. those 126 were quite enough for me. Я люблю русский язикь!

    The Lounge java com help announcement

  • Overloading operator new
    N n 0

    in dos one could access hardware directly because dos's singe-threaded. multi-threaded oses like windows have to take care themselves that hardware pieces are accessed by just one program at a time. this means for you that not you're allocating memory, but the os's doing it for you; you don't need any multithreading resource-locking techniques at all. Я люблю русский язикь!

    C / C++ / MFC debugging performance question workspace

  • MFC
    N n 0

    void CYourDialog::OnButtonEnterDlgNum(void) { char lpBuffer[256]; m_YourEditCtrl.GetWindowText(lpBuffer, 255); // you could also use this // GetDlgItem(IDC_YOUREDITCTRL)->GetWindowText(lpBuffer, 255); int iMax = atoi(lpBuffer); CEdit *ceEdit; for(int i = 0; i < m_yourint = iMax; i++) { ceEdit = new CEdit; ceEdit.Create(0/* your styles */, CRect(0, 0, 0, 0) /* your rect */, m_YourSecondDlg /* the CWnd object of your 2 dialog */, IDC_ID + i /* your ID (must be unique!)*/); } } hope this helps Я люблю русский язикь!

    C / C++ / MFC c++ delphi help tutorial question

  • CWnd::GetDlgCtrlID()
    N n 0

    void CDialog::OnMouseMove(UINT nFlags, CPoint point) { CPoint point; CWnd *wd; GetCursorPos(&point); if( (wd = WindowFromPoint(point)) ) { SetCursor(LoadCursor(NULL, (wd->GetDlgCtrlID() == IDCANCEL) ? IDC_ARROW : IDC_WAIT)); } } hello. i've got a lengthy op and therefore an hourglass as mouse cursor. it should stay that way while not pointing to the cancel button. i wrote the code above to accomplish this. problem: my dlg has also got a toolbar and 2 radio buttons that seem to override all this; the mouse icon is always an arrow when i point on them. can somebody help, please? Я люблю русский язикь!

    C / C++ / MFC help question

  • Expression analysis
    N n 0

    char lpBuffer[256]; GetPrivateProfileString( "MySection", // LPCTSTR lpAppName "MyKey1", // LPCTSTR lpKeyName "0", // LPCTSTR lpDefault - in case file does not exist this is default lpBuffer, // LPCTSTR lpReturnedString 256, // DWORD nSize "File.ini" // LPCTSTR lpFileName ); WritePrivateProfileString( "MySection", // LPCTSTR lpAppName "MyKey1", // LPCTSTR lpKeyName "0", // LPCTSTR lpString - whatever you want to save "File.ini" // LPCTSTR lpFileName ); you don't have to create a .ini file; it is created for you in the app's folder. make sure both programs refer to the same .ini file. Я люблю русский язикь!

    C / C++ / MFC help question

  • Expression analysis
    N n 0

    i hope i got that right: you want to save some data of program 1 and load it later on into program 2? if so you could use GetPrivateProfileString() & WritePrivateProfileString() to load & save data in .ini files hope this helps Я люблю русский язикь!

    C / C++ / MFC help question

  • Expression analysis
    N n 0

    i read your first message, but i don't understand what you mean by linking 2 progs together? Я люблю русский язикь!

    C / C++ / MFC help question

  • Tree Control Help
    N n 0

    use the WM_NOTIFY msg TVN_BEGINLABELEDIT. you can cancel label edit by returning TRUE. Я люблю русский язикь!

    C / C++ / MFC data-structures help question

  • I know absolutely nothing...help, please.
    N n 0

    phil: i think the most important things at the beginning are some MFC basics so one can see something in the monitor. i had to learn c/c++ by myself and i'd rather skydive naked into a hot sea of piranha than do another big app based on SDK. it's frustating because as a beginner, you'll rather want to see sth appear quikly without two pages of code per pixel. later on (as it happened to me), one wonders about many things in starts diggin and diggin. even though the method i used wasn't as structurally correct as the one you've mentioned, it's recommendable so you get over these initial problems that usually often occur. Я люблю русский язикь!

    C / C++ / MFC c++ help tutorial question
  • Login

  • Don't have an account? Register

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