Search:

Type: Posts; User: ganonl

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Getting rid of the console window in a glut application.

    How do you do it with the free borland compiler. I know how to do it with Visual C++ but not with borland.
  2. Replies
    8
    Views
    1,964

    You used WS_OVERLAPPEDWINDOW, that is the...

    You used WS_OVERLAPPEDWINDOW, that is the problem.
    This is what it does

    WS_OVERLAPPEDWINDOW: Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME,...
  3. Thread: En_change

    by ganonl
    Replies
    7
    Views
    3,268

    could you post all your window procedures if it's...

    could you post all your window procedures if it's not too big.
  4. Thread: En_change

    by ganonl
    Replies
    7
    Views
    3,268

    Are you trying to put text in an edit box. ...

    Are you trying to put text in an edit box.

    Instead of using SendMessage, use


    SetDlgItemText(hwnd,ID_MAG_MAX, "87");
  5. Replies
    6
    Views
    2,676

    Try to put all the drawing in OpenGl in WM_PAINT....

    Try to put all the drawing in OpenGl in WM_PAINT. That could work.
  6. Replies
    7
    Views
    1,111

    Your getdlgitemint only has 3 parameters. The...

    Your getdlgitemint only has 3 parameters. The one I use has 4.



    UINT GetDlgItemInt(

    HWND hDlg, // handle to dialog box
    int nIDDlgItem, // control identifier
    BOOL* ...
  7. Replies
    7
    Views
    1,111

    evaluate if a string value is beteween two...

    <i>evaluate if a string value is beteween two Integer values.... </i>

    I don't get it. Is the string a number??. Just use GetDlgItemInt() to get the integer on the edit box and compare it.
  8. Please don't recommend google anymore, that was...

    Please don't recommend google anymore, that was the first thing I did but I didn't know what keywords to use.

    Salem, thanx for the link.
  9. How hard is it to make a simple chat program using Win32 api??

    Chat programs like AIM. Is it possible to do net programming using win32 api?? If it's possible, can I get a link to a tutorial or places where I can get some resources.
  10. Yes, my question looks like a homework question. ...

    Yes, my question looks like a homework question. I actually did not need help anymore. I got what I needed from a reference site after I posted the first one. fscanf and %x was what I needed.
  11. How do I assign a hex number in a text file to an int

    variable.

    Lets say this is the content of a text file.
    ///////////////////*******content
    1A
    1C
    1F
    //////////////////////////end of file

    How do I assign it to an array of ints.
  12. Replies
    4
    Views
    1,040

    ^Thanks man, that did the trick.

    ^Thanks man, that did the trick.
  13. Replies
    4
    Views
    1,040

    ^not the answer I was looking for. I'm talking...

    ^not the answer I was looking for. I'm talking about the icon of the program in a desktop or explorer. The program is not running.

    without using this:

    wc.hIcon =...
  14. Replies
    4
    Views
    1,040

    Assigning icon without registering window.

    Is it possible? I'm using the API and my program is dialog box only. I don't need to create a registered window. How do I assign it an icon that will be shown in Windows Explorer.
  15. Thanks Dante for doing the work for me, hehe. ...

    Thanks Dante for doing the work for me, hehe. All I did was cut and paste your code and rename the variables and it works.
  16. I can do this but I will have to use more lines...

    I can do this but I will have to use more lines of code, are there any shorter ways.
  17. Best way to load lines of text from a file to a combo box

    I use a while loop with the function fgets() but it adds the /n at the end and when it's in the combo box, the /n is a weird char.
    What do you think is the best way to do this.
  18. Handle WM_GETDLGCODE and then return the value...

    <i>Handle WM_GETDLGCODE and then return the value DLGC_WANTALLKEYS</i>

    You mean just put this in my Dialog procedure??



    case WM_GETDLGCODE:
    return DLGC_WANTALLKEYS;
    break;
  19. Handling keyboard input in a dialog procedure.

    How do I handle it. It seems like Dialog Procedures don't handle WM_KEYDOWN or WM_KEYUP messages. Am I wrong.

    If I press the '1' key, how can I use it to call a button procedure.

    I don't have...
  20. Thanks Hammer, didn't know about the precision()...

    Thanks Hammer, didn't know about the precision() function.
  21. I got the same result from your example XSquared....

    I got the same result from your example XSquared.

    I want this: 123423423.34343 on the output.
    not 1.23423e+08
  22. strtod() function looks like it got all the...

    strtod() function looks like it got all the numbers in the double, but
    it change the number with an exponential notation.



    #include <iostream>
    #include <cstdlib>


    using namespace std;
  23. converting huge #'s in string format to double.

    How do I properly convert huge numbers with decimal points
    (ex. 14432454554.04524354) in string to double. I tried the function atof() but it has it's limits. Are there any other way?
  24. Thread: Vc6

    by ganonl
    Replies
    5
    Views
    1,571

    Windows c++ programming is far different from...

    Windows c++ programming is far different from Visual Basic. You will have to learn Win32 api along with c++. Designing the windows layout is difficult compared to Visual Basic.
  25. Replies
    12
    Views
    1,746

    If you want to handle notification messages, you...

    If you want to handle notification messages, you usually put it through WM_COMMAND message. You use a switch statement with HIWORD(wParam) or LOWORD(wParam).

    example


    case WM_COMMAND:
    ...
Results 1 to 25 of 28
Page 1 of 2 1 2