Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Jeffray

    LNK2001: unresolved external symbol _outp????

    maybe you should use _outp() instead of outp()
  2. Jeffray

    Getline from File bug?

    If you debug your program, you can see your "getline" reads the string starting from where you finished writing your string back to the file. That means your write process does change the read pointer. I think you can check if you still get the problem if you omit those write statements.
  3. Jeffray

    Getline from File bug?

    Although I am not sure, It seems like your seekp() changes the file pointer and you don't handle it back properly. I don't know whether you have moved the pointer to the next line or not after you put something to the current line of your file.
  4. Jeffray

    Getline from File bug?

    Most possibly there is something wrong with your code. Post your code and you will be helped out.
  5. Jeffray

    to allow to write few marks in a dialog box

    Yes, just do as sflam said. If the char is not in your list, just ignore it.
  6. Jeffray

    to allow to write few marks in a dialog box

    Then why not use a edit box?
  7. Jeffray

    Child Window

    get the pointer of your child window. and call its member function SetWindowPos()
  8. Jeffray

    to allow to write few marks in a dialog box

    Why don't you set a CStatic control in the dialog? then whenever you want to display your mark, you just need to write it into your CStatic control. It is much simpler.
  9. Jeffray

    STL map class

    use find theIterator = theMap.find(theKey); if(theIterator == theMap.end()){ // do your insertion here }
  10. Jeffray

    istream operator error in MFC Application Dialog...

    change sin >> SlNames[0]; to sin << m_Name1; sin << m_Name2; sin << m_Name3; sin << m_Name4; sin << m_Name5; Another alternative to this method is to save your variables into windows registry. look at WriteProfileString and ReadProfileString...
  11. Jeffray

    pointer to RichEditCtrl

    use GetDlgItem( ID_RICHEDIT);(assume ID_RICHEDIT is the ID of your rich edit control).
  12. Jeffray

    Shorter Delay

    I think you can use clock(). check MSDN for details.
  13. Jeffray

    Using STL classes in VC++

    have you included #include <vector>?
  14. Jeffray

    Modeless Dialog Transfer!!! Please HELP!!!

    in the project workspace (usally it is at the left pane of your VC++ studio). Click the &quot;ClassView&quot; tab , you can see a list of the classes in your project. Then right click the class you want, a menu is popped up . Select the menu item of &quot;Add Member Function ...&quot;. That's it.
  15. Jeffray

    Modeless Dialog Transfer!!! Please HELP!!!

    No. Automation is another thing and is not related to adding a method at all.
  16. Jeffray

    Modeless Dialog Transfer!!! Please HELP!!!

    I don't know what do you mean by &quot;automation&quot;? Can explain it further?
  17. Jeffray

    Modeless Dialog Transfer!!! Please HELP!!!

    add a method SendGet(inMsg, outMsg)to your modeless dialog . Pass the pointer of the modeless dialog(pModalessDlg) to the constructor of your modal dialog. When you want to send and get messages to and from the modaless dialog, just call pModalessDlg->SendGet(inMsg,outMsg).
  18. Jeffray

    How do I valid if all characters are letters and length

    a sample code: bool validateString(char * aStr) { int n = strlen(aStr); if (n > 10 ) return 0; for (int i=0; i< n ; i++) if (!isalpha(aStr[i])) return 0; return 1; }
  19. Jeffray

    Any mathematical insight???

    I used to work on the constraint satisfaction problem. Basically CSP deals with a set of finite domain(mostly integer) variables, there are a few constraints on the variables. Solveing a CSP is to find values for every variable so that every constraint will be met. The problem here is a...
  20. Jeffray

    mixing char in

    sprintf(&msg[strlen(msg)-3],&quot; %d%s&quot;, year,&quot;...&quot;);

Part and Inventory Search

Back
Top