|
yes, that was sort of vague...are you talking about how it says you can cast an IPAddr to an in_addr? I tried casting the other direction (in_addr to IPAddr) but it throws errors.
Forgive me, this is basically the beginning of my windows C++ programming, up until now it's all been command line linux code. Is there a special way to cast with the win API or something?
|
|
|
|
|
I am BATMAN wrote: Forgive me, this is basically the beginning of my windows C++ programming, up until now it's all been command line linux code. Is there a special way to cast with the win API or something?
Then you need to study beginners material of the language since you need to understand types, structures and unions as well as many, many other things. Trying to explain them to you in a forum is not appropriate.
typedef struct in_addr {
union {
struct { UCHAR s_b1,s_b2,s_b3,s_b4; } S_un_b;
struct { USHORT s_w1,s_w2; } S_un_w;
ULONG S_addr;
} S_un;
The S_addr member of the union is the same type as IPAddr.
typedef ULONG IPAddr;
|
|
|
|
|
Oh ok, it worked when I saved the variable as a IPAddr the same way I was originally saving the in_addr instead of trying to cast between the two. Thanks anyways
|
|
|
|
|
Anybody has idea how to start specific service in remote using WMI C++ API.
Jack Rong
|
|
|
|
|
Get the frak off of this site you lazy pile of dung.
|
|
|
|
|
Hello all,
I working on one win32 application. I need to change the font of my controls. This can be done by sending WM_SETFONT message to the control. but it need hFont as WPARAM. and to create hFont we need CreateFont() function but it is only available in MFC not in win32. so what is alternative of this.
|
|
|
|
|
I believe you are wrong with that, CreateFont, CreateFontIndirect and such API calls can be used without MFC.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
zakkas2483 wrote: ...to create hFont we need CreateFont() function but it is only available in MFC not in win32. so what is alternative of this.
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I m getting Error Message "CreateFont: identifier not found".
|
|
|
|
|
Sounds like you're not including the right files. Check the dependencies for that function.
|
|
|
|
|
I have derived a subclass from CFileDialog. I would like to check that certain conditions are correct before the dialog is closed. How can I intercept the message to close the dialog? My derived dialog class includes an OnDestroy(), but the dialog is already closed before it is reached.
|
|
|
|
|
No need to derive from CFileDialog , just supply a hook procedure and set the lpfnHook member. See here for more.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
hi, i developed c program in windows. how do i make them work in linux environment?? tks..
|
|
|
|
|
Compile it in [insert OS name here] and get the binary for that OS built.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
In addition to what Rajesh said: this is only possible if you are only using OS independant features (so, no UI for instance). If you are using the Win32 API or the MFC, forget about it (although there are libraries which can be used in order to develop cross-platform UIs).
|
|
|
|
|
okay.. i just need to do is write a program and compile it without UI.. but because im running on Windows, how do I ensure it run on linux?
|
|
|
|
|
If the program only uses things from standard C++ (and the STL), then follow what Rajesh told you: you need to recompile it for linux (with a compiler for Linux). So you will end up with two binaries: one for windows and one for Linux.
|
|
|
|
|
Hi all,
i m setting the property of Horizontal Scrollbar of Listbox is true.but its not displayed.
while vertical scrollbar displayed perfectly.
please tell me how can i display the horizontal scrollbar in Listbox.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
|
Thanks
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
"_$h@nky_" wrote: please tell me how can i display the horizontal scrollbar in Listbox.
By correctly setting the horizontal extent.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
how to open a particular page in html help file.
thanks
|
|
|
|
|
Roay wrote: ...in html help file.
Is that an HTML or CHM file? Have you tried something like:
HelpFile.chm::topic.html
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
Hi All,
I've another question here.
How can I find all the users(user accounts) in a system? I'm messup with what CreateProcessAsUser is doing...
I appreciate your help all the time...
CodingLover
|
|
|
|