Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: PHChang

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Fread on file

    by PHChang
    Replies
    11
    Views
    772

    Re: Fread on file

    Thanks.
    Assume if it is a non-numbers for all fields? How to read it? Some could be blank.

    2.5a,abc,2d,40e00
    2.5c,,3e,20e00
    2.5d,,3e,1e000
  2. Thread: Fread on file

    by PHChang
    Replies
    11
    Views
    772

    Re: Fread on file

    Sorry to bother again.
    If change to format below (separated by commas), there will be blank for some fields. How to read it?

    2.5,abc,2,4000
    2.5,,3,2000
    2.5,,3,1000
  3. Thread: Fread on file

    by PHChang
    Replies
    11
    Views
    772

    Re: Fread on file

    This looks complicated to me.

    Mind to explain what it is doing?


    // Read data back from file:
    while (ifs >> d1 >> ch) {
    ifs.get(buffer, bufsize, ';');
    ifs >> ch >> i1 >> ch >> i2;...
  4. Thread: Fread on file

    by PHChang
    Replies
    11
    Views
    772

    Re: Fread on file

    Thanks 2kaud.
    Let say the 2nd field is not limited to 3 chars, it can vary from 3 to 10 (or any number), how can resolve it?



    while ((fscanf(pFile, "%f;%3s;%i,%i", &d1, buffer, &i1, &i2)) >...
  5. Thread: Fread on file

    by PHChang
    Replies
    11
    Views
    772

    Re: Fread on file

    Thanks I will try it out and see how.
    I am using visual C++ 2010 compiler.
  6. Thread: Fread on file

    by PHChang
    Replies
    11
    Views
    772

    Fread on file

    I am trying to read and store a txt file with format below:

    2.5;abc;2,4000
    2.5;bef;3,2000
    2.5;ref;3,1000

    I try the fscanf( pFile, "%d;%s;%d,%d", buffer,buffer2,buffer3,buffer4 ); to store...
  7. Replies
    6
    Views
    572

    Re: How to change a button colour?

    Thanks. I tried the CMFCButton way and it works.



    button.SetFaceColor(RGB(255,0,0),true);
  8. Replies
    6
    Views
    572

    Re: How to change a button colour?

    That means I need to tie a button with control variable with CMFCButton class in order to use it right?
  9. Replies
    6
    Views
    572

    How to change a button colour?

    May I know how to change a button colour using visual C++ ? Currently using visual studio 2010.
  10. Re: How to increase font size in buttons

    Alright, thanks got it!
  11. [RESOLVED] How to increase font size in buttons

    How to increase font size for a specific button?

    I tried to change the nHeight but it doesn't seems to change the font size. Any idea why?




    CFont font;

    font.CreateFont(
  12. Replies
    19
    Views
    1,550

    Re: Combo Box Height

    The reason I want to increase the width is because I am using a touch screen monitor so want to create a wider scroll bar so that user easy to click on it.
    Anyway, thanks all for the advise.
    I...
  13. Replies
    19
    Views
    1,550

    Re: Combo Box Height

    OK thanks.
    By the way, is it possible to set the width of vertical scroll bar of a combo box?
    See attached photo scrollboxwidth.jpg.
  14. Replies
    19
    Views
    1,550

    Re: Combo Box Height

    Thanks but where is the article link that you mentioned?
  15. Replies
    19
    Views
    1,550

    Re: Combo Box Height

    I am using below way to set the font size for combo box. I believe this is the correct way?
    Let me know if have better.



    CComboBox cCombo;
    CFont m_font;
    LOGFONT lf;...
  16. Replies
    19
    Views
    1,550

    Re: Combo Box Height

    I found that the function combo box SetItemHeight(); with the index -1 can set the height of combo box. But after setting the height, I found that the font size still remain the same. How can I...
  17. Replies
    19
    Views
    1,550

    Combo Box Height

    May I know how to adjust the combo box height?
    I can adjust the combo box width and also the dropdown list height but not the combo box height.
    See attachment combobox.jpg/
  18. Re: How to reposition Menu Bar for Dialog Box?

    After 2nd thought, I think I will try out the Rebar you suggested first and see how it goes. Any nice tutorial on Rebar?
  19. Re: How to reposition Menu Bar for Dialog Box?

    Thanks Igor. Is fine. Just want to know is there any better tutorial or sample for me to refer on how to do this?
  20. Re: How to reposition Menu Bar for Dialog Box?

    Thanks for the info.
    I am thinking of using the combo box dropdown menu to replace the functions in menu bar.
    Please see attached file dropdownmenu.jpg for more details.
    I have 2 questions here:...
  21. How to reposition Menu Bar for Dialog Box?

    Normally, menu bar resides below the title bar. See attachment MenuBarOriginal.JPG
    Is there a way that we can position the menu bar? For example,place it on the side or anywhere on the dialog box?
    ...
  22. Re: [RESOLVED] Failure during conversion to COFF

    Managed to resolve this after downgrading .NET framework from 4.5 to 4.0.
  23. Re: Failure during conversion to COFF

    When I tried to use to windows 7 search engine, I couldn't locate the file.
    But manage to find it at path below by manually open the folder
    C:\Program Files (x86)\Microsoft Visual Studio...
  24. [RESOLVED] Failure during conversion to COFF

    I encountered error when compiling a simple project on my PC. However, other PC is working fine. Wonder what is missing from my PC?

    1>------ Rebuild All started: Project: Test01, Configuration:...
  25. Replies
    2
    Views
    1,195

    Re: On Screen Keyboard Error On 64 bit Windows 7

    Thanks ovidiucucu, I tried your code and it manage to call up the on screen keyboard.
    Also, I did try the WinExec using code below, it works as well.
    Appreciate your help on this.


    PVOID...
Results 1 to 25 of 82
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center