|
Hi,
Thanks a lott.Its working
Thanks
Raj
|
|
|
|
|
You're welcome!
|
|
|
|
|
Mark his answer as "Good Answer". I only see my vote on his post right now.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Rajesh, I see that this is a trend.
Once their problems are solved, the OPs often forget to vote.
Thank you very much for the vote and the support!
Best Regards,
Nuri
|
|
|
|
|
I think may be he don't know how to vote or may be he don't understand the value of vote.
Genuinely I was also unaware with that feature when I joined CP.
Take my 5 +
I believe in LOVE AT FIRST SIGHT...
Bcoz I have loved my Mother...
even since I opened my eyes...(ICAN)
|
|
|
|
|
Yes Shilpi, you are right.
I also didn't know about the voting system at the beginning but after about a week wandering through the forums I realized how things work.
Thank you very much!
Best Regards,
Nuri
|
|
|
|
|
Hi, I want to find my pc's current os version.
I am using ::GetVersionEx(OSVERSIONINFO &osver) API to know.
But the problem is Windows 7 and Windows Server 2008 R2 have same version number i.e., 6.1
How can i find what is the exact version (Windows 7 or Server 2008 R2)?
Thanks in advance,
Regards
msr
|
|
|
|
|
Use OSVERSIONINFOEX, and check in MSDN
Link ->[^]
Windows 7 6.1 6 1 OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION
Windows Server 2008 R2 6.1 6 1 OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION
Version of both Windows 7 and Windows Server 2008 R2 is same but wProductType is different.
I Think it will help you
I believe in LOVE AT FIRST SIGHT...
Bcoz I have loved my Mother...
even since I opened my eyes...(ICAN)
|
|
|
|
|
Take a 5, you gave the correct answer as well (albeit with no proper emphasis on formatting).
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Hummm Next time I will try to send answer with proper formatting and all. Thanks
I believe in LOVE AT FIRST SIGHT...
Bcoz I have loved my Mother...
even since I opened my eyes...(ICAN)
|
|
|
|
|
From the remarks section of OSVERSIONINFO Structure[^]:
Operating system | Version no. | dwMajorVersion | dwMinorVersion | Other |
---|
Windows 7 | 6.1 | 6 | 1 | OSVERSIONINFOEX.wProductType <font color=red style="BACKGROUND-COLOR: yellow">==</font> VER_NT_WORKSTATION | Windows Server 2008 R2 | 6.1 | 6 | 1 | OSVERSIONINFOEX.wProductType <font color=red style="BACKGROUND-COLOR: yellow">!=</font> VER_NT_WORKSTATION |
So, you just need to check for the wProductType member of the OSVERSIONINFOEX structure that you're passing in to the API.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Shilpi Boosar and Rajesh,
thank you so much.
Regards
msr
modified on Saturday, February 12, 2011 12:10 AM
|
|
|
|
|
Rajesh R Subramanian wrote: a lot of table information
OK, now you're just showing off!
Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|
|
Hi!
I've to set a Mouse Over(Hovering) image to a button in Windows Forms. How to do this?
|
|
|
|
|
CBitmapButtons[^]. It isn't hard to see google as your friend
I am a HUMAN. I have that keyword in my name........
_AnsHUMAN_
|
|
|
|
|
_AnsHUMAN_ wrote: CBitmapButtons[^]. It isn't hard to see google as your friend
I appreciate that you're trying to help, but how about you read the question before responding? The OP has posted a Winforms question, and you're handing him a lmgtfy link for some MFC stuff. Your answer is worse than the question itself.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Whoops! Messed up. thanks for pointing that out.
I am a HUMAN. I have that keyword in my name........
_AnsHUMAN_
|
|
|
|
|
pix_programmer wrote: I've to set a Mouse Over(Hovering) image to a button in Windows Forms. How to do this?
This is the C++ forum!
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Hello people!
Does any of you know a way to programmatically map a network drive through a non-standard port? I mean, like WNetAddConnection[^], but this doesn't seem to accept any port specifications, like, if i specify "\\192.168.1.2:1234\whatevershare", it will tell me something like "invalid network path" or somesuch. I read in some SMB specs that SMB clients should be able to handle non-standard ports, but i see no way to do this with windows. Thanks in advance for any pointers.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
Hi
i wrote a project using wxwidget in linux and windows. In windows I used the cygwin gnu makefile using the visual studio command line compiler (cl.exe). Sometimes a library of my project is generated truncated, without error by compiler, and obviously when I try to use it the loader gives error.
When I say "cut off" I mean, if I recompile the library, the new file is made larger. I compile with multiple processors with the option of make-j2, may be the cause?
Is there a way to verify the correctness of a library? or to find the correct end of a library?
Thank you very much!!
|
|
|
|
|
Can you try compiling it on a different machine? If you don't change the library, and you get different sizes from different compiles, then you should also look at the Windows event log for hard disk errors, or possibly even a virus.
|
|
|
|
|
There is in the pc an updated antivirus, and there is no problem in the pc.
Now I want to find a check for the dll, and later i look for the cause, perhaps the compilation with two processors...
Thanks
|
|
|
|
|
Hi!
I've to check whether my System is connected to the net. How to check the Internet connectivity with VC++? I'm using Windows XP.
|
|
|
|
|
|
Hi!
Thanks for your reply. I used the following code and get these two errors:
bool connectionStatus = InternetGetConnectedState(INTERNET_CONNECTION_OFFLINE,0);
Errors:
d:\downloadversion\downloadversion\Form1.h(31) : error C2065: 'INTERNET_CONNECTION_OFFLINE' : undeclared identifier
d:\downloadversion\downloadversion\Form1.h(31) : error C3861: 'InternetGetConnectedState': identifier not found
I'm using Windows Forms.
|
|
|
|