How do you do it with the free borland compiler. I know how to do it with Visual C++ but not with borland.
Type: Posts; User: ganonl
How do you do it with the free borland compiler. I know how to do it with Visual C++ but not with borland.
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,...
could you post all your window procedures if it's not too big.
Are you trying to put text in an edit box.
Instead of using SendMessage, use
SetDlgItemText(hwnd,ID_MAG_MAX, "87");
Try to put all the drawing in OpenGl in WM_PAINT. That could work.
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* ...
<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.
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.
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.
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.
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.
^Thanks man, that did the trick.
^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 =...
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.
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.
I can do this but I will have to use more lines of code, are there any shorter ways.
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.
<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;
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...
Thanks Hammer, didn't know about the precision() function.
I got the same result from your example XSquared.
I want this: 123423423.34343 on the output.
not 1.23423e+08
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;
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?
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.
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:
...