|
//or you can use
HDC hdc=CreateCompatibleDC(GetDC()->m_hDC);
HBITMAP hBit=CreateCompatibleBitmap(GetDC()->m_hDC,X,Y);
SelectObject(hdc,hBit);
...
...
SetPixel(hdc,20,20,RGB(120,120,120));
|
|
|
|
|
i want to check status of computer which is online or offline at the time of my application running .i am using "InternetGetConnectedStateEx(...)" but it is checking LAN connection not give state of internet properly .
what i have to do for this please share ur knowledge with me.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
InternetGetConnectedStateEx
|
|
|
|
|
i am using this function but it does not give proper result it checks only LAN connection .
Bankey Khandelwal
Software Engineer
|
|
|
|
|
This question has come up on the forums a few times, as its a nasty one. Unfortunately, there is
no "Am I connected to the wide world" function, as Windows simply does not know the answer.
About all it can do is tell you whether you have a local connection.
Previous answers to the question combine GetInternetConnectedEx function, with trying to access
popular sites like www.microsoft.com, google, etc.
Sorry the news isn't better!
Iain.
|
|
|
|
|
To add to the former message, its like asking "Is my phone connectable to other people?".
You can tell if there is a dial tone (GetInternetConnected), but the only way to know if
you can ring people, is to actually ring them!
Iain.
|
|
|
|
|
Hi, you could make a worker thread whose creating a connection to a server (e.g. www.yahoo.com) on a specified interval of time. That's the safer way! Good luck and good coding!
|
|
|
|
|
|
Advanced Animation With DirectX(Chap13 Softbody)
The the example of book like problematic, the karate clothes girl's chest will explode. (should be bug )
I guess author to is it display chest may soft beating to want
Do not know anyone studies this example ? Want can just be correct how to revise?
|
|
|
|
|
What does it take to shift one's codebase from VC++ 6.0 to VC++ 7.0? (Unmanaged). Any good reasons that I can give my boss to make him shift to VC++ 7.0? :-> I just love the .NET UI and hate the old VC++ 6.0 UI but that reason is just not enough. I need some more solid reason. I read somewhere that Microsoft is removing its support for VC++ 6.0. What does that mean? Will office COM addins written in VC++ 7.0 still work with Office 2000???
HELP!!!
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
Standard compliance is definitely a more obvious reason...
VC6 compiler is full of crap. but VC2005 is more sticking to the standard than 2003 though (if you could choose between one or other).
|
|
|
|
|
SO what do I tell my boss????
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
thell him that it is important to stick to the C++ standard, so he'd better switch to VS2005, or at least VS2003.
what didn't you understand in my answer ?
oh, BTW, VC6 support has been abandonned by Microsoft last year...
|
|
|
|
|
v2.0 wrote: oh, BTW, VC6 support has been abandonned by Microsoft last year...
What exactly does remove support mean? Does it mean that any problems with the compiler will not be dealt with or that any product written in VC++ 6.0 will not be recognized by microsoft?
Thanks for your answers
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
remove support mean that if you have a problem with VC6 and want to ask microsoft for that problem, they won't answer you...
|
|
|
|
|
Hi, you should consider moving to VC++ 7.X/8.0 because those are more compatible with the futures offered by Windows 2000/XP. Personaly, I like the themes from Windows XP and I'm wroting only theme-enabled WIN32 applications. Other reasons would be a better IDE and a better/faster C++ compiler etc.
|
|
|
|
|
So you mean, code will compile faster in VC++ 7.0 than in VC++ 6.0? Is the VC++ 7.0 compiler better than the VC++ 6.0 compiler?
Thanks for your help!
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
hey make an effort to understand what we both answered to you
Save My Soul - (SMS) wrote: code will compile faster in VC++ 7.0 than in VC++ 6.0?
we cannot say that
Save My Soul - (SMS) wrote: Is the VC++ 7.0 compiler better than the VC++ 6.0 compiler?
yes
and even better, VC8 compiler is better than VC7.x
|
|
|
|
|
v2.0 wrote: hey make an effort to understand what we both answered to you
Oops... Sorry seems like I got on your nerves....
v2.0 wrote:
and even better, VC8 compiler is better than VC7.x
Thanks!
But even after all these answers, I still haven't got any solid answer to give my boss when he asks me why we should move to VC++ 7.0 or higher...
Thanks anyways...
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
Save My Soul - (SMS) wrote: Oops... Sorry seems like I got on your nerves....
my fault, i shouldn't...
|
|
|
|
|
Hi all,
I hv designed a page in html.and Iam working in MFC
Iam using CDHTMLViewSpec class.
I have designed 2 links in thml as follows
<table width="100%">
<tr width="100%">
<td width = "100%"><font size="2" face="Tahoma">
<a id="Previous" class="Title" href="Previous.htm">Previous</a></font>
</td>
<td ><font size="2" face="Tahoma">
<a id="Next" href="Next.htm">Next</a></font></td>
</tr>
</table>
as u can see they are anchor tags I want to know how to enable or disable them at a perticular event. (Say when there is nothing in a list to show when user clicks Previous or Next).
Thank u all.
|
|
|
|
|
|
Hi,
The can we change the position of the tooltip that is shown for long text in the treectrl?
Currently the tooltip is clipped by the screen limits. Can we move the tooltip to left in this case?
Thank you.
- NS -
|
|
|
|
|
I re-compiled one of my applications under VS .NET 2005 (with no code changes) and the .exe is now twice the size....
What have Microsoft done ? or do I need to turn off some setting that is new, like a "make large .exe to waste disk space" setting ?
Any idea's ?
regards,
Darka
www.xanya.net
|
|
|
|
|
are compiling in debug or release mode ?
|
|
|
|