|
Hi!
Is there a way to know when my internet connection (dialup or broadband) is disconnecting or connecting? I want to be notified when there are some actions occuring to my Internet connection.
Is this possible?
Thanks
|
|
|
|
|
Hi,
It's possible. U can use TAPI for it.Have a look @ msdn for TAPI.
Hope this might help you
Sujan
|
|
|
|
|
I am building an internet application, but in the testing phase the clients were unable to connect to the server... I tried to use "ping" or "tracert" from the DOS prompt but the IP was unreachable..
note that I was running the server application in a computer that is connected to the internet via a dial up connection...
I used the notification icon of the dial up connection to get the IP address from my PC (which I am using as a host for the server) but this IP was unreachable by other computers that runs the clients..
please tell me why this IP was unreachable and how can I get my actual address...
thank you...
|
|
|
|
|
The reason behind this that ip that provided by Your ISP is temprary and local for your isp domain.
Hian ISP spend more than lakhs per Year for getting live IP's,and you are thinking getting it free.
for checking your IPaddress, open site http://www.whatismyip.com this will tell your IP address.
i think your networking sjkillz need some brush up.
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
You can also use ipconfig from command prompt to determine your IP.
ARSALAN MALIK
|
|
|
|
|
|
I have read this article[^]and would like to use it in my application. My app is a dialog one and if I call a modal dialog from main dialog I can make main dialog fade. If I call an external program or a COM DLL which displays a message I get an error. My external program or COM DLL message does not have focus set on it and I cannot click it. I must close it from the taskbar.
Must I have CWndFade in its own thread to work as I wish?
|
|
|
|
|
You should ask in the forum for the article, then the author will get an email and probably help you.
Of course, assuming you're fading windows in the W2000+ way, you shouldn't need anything external to your class to do it.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Hey all...
I am trying to write out a Japanese text string in a data file which was originally specified for ANSI text and used across several applications. Basically what was suggested was that I use UTF-8 to write out the text strings and read them back in. One of the constraints is that the current applications that read English only should still be able to read English data if this application writes it. However the old applications can punt on the Japanese until they are also updated.
I can figure out how to write from MBCS to UTF-8:
<br />
#ifndef UNICODE<br />
MultiByteToWideChar(CP_UTF8, dwFlags, lpMBCSStr, cbMBCS, lpWCStr, cchWCStr)<br />
#endif<br />
However we normally build in UNICODE using TCHAR, and it is normally UTF-16. However I just want to convert this one string from UTF-16 to UTF-8. Anyone ever done this?
You can also just call me insane and stupid as long as you can suggest a better approach. I don't mind being insulted if I can learn something.
Brian
If you start a fire for a man, he will be warm for a day. If you start that same man on fire, he will be warm for the rest of his life.
|
|
|
|
|
|
Hi All,
I was looking to update from VS6 to VS2003 but I was told at one point that my code would then require XP ( latest MFC , etc ) to run. Is it possible to use VS 2003 but still compile a project so that it still runs on windows 95/2k, etc? without having to package a pile of new libs with it.
Is it just a matter of linking in the project settings?
Could anyone point me in the right direction as to how to set this up. Thanks for the help.
-Rick
|
|
|
|
|
RickGavin wrote:
but I was told at one point that my code would then require XP ( latest MFC , etc ) to run
That is wrong, you can target any OS with VC 7 just like with VC 6. However, if your VC 6 code uses the DLL version of MFC, be aware that the MFC 7 DLLs aren't as commonplace yet like mfc42.dll is, so more people will have to get those DLLs, either from your installer or MS.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
|
|
|
|
|
Well I'll give it a go and see if i can make it work. Thanks for the info.
-Rick
|
|
|
|
|
Hello,
I'm using some of the stl template classes and std::string. When I compile, I get all sort of warnings from the stl libray.
Does aybody know a nice way to get rid of all these warnings instead of #pragma them all away?
Thanks in advance.
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
If you refer to warnings 4503 and 4786, these are completely harmless and #pragma ing them away is just fine. I don't think there's another way to get rid of them.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
Does anyone know of a utility that would scan my resource files, pick up the resource id's (like IDS_SOME_STRING) and then scan the .cpp files to see whether these ID's were actually used anywhere?
Ron Sanderson
Computer Associates
Senior Software Engineer
tel: +1 908 874-9772
fax: +1 908 874-9176
ron.sanderson@ca.com
|
|
|
|
|
|
I think in the VC++ Editor itself, you have this functionality in View->Resource Symbols, where u can find all the IDS which are not used by ur application and remove them.
Regards,
Mahadevan.
|
|
|
|
|
When can I set the SO_LINGER option on a socket? I’m using Windows XP Pro and Winsock.
Thanks in advance.
Ken
|
|
|
|
|
How can I efficiently display "Hello World" in a Windows App with each letter having it's own color, either random or in sequence.... thanks for your advice
SkunkedWorks
|
|
|
|
|
Windows App. You want to display text on DC.
look out Device Contexts Overview.
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
I am looking to "clear" the transparent background rendering of my ActiveX control when the OnDraw(...) function is called.
Here is my OnDraw(...) function:
pdc->SetBkMode(TRANSPARENT);
pdc->FillRect(rcBounds, CBrush::FromHandle((HBRUSH)GetStockObject(HOLLOW_BRUSH)));
with the HOLLOW_BRUSH i get the transparent background. If i use Animations in the ActiveX Control
the background don't clear (redrawn).
Has anyone ideas?
thanks
bancavo
|
|
|
|
|
bancavo wrote:
pdc->FillRect(rcBounds, CBrush::FromHandle((HBRUSH)GetStockObject(HOLLOW_BRUSH)));
This call does nothing at all. You're filling a rectangle with a brush that has no colour. So no, the background won't get cleared or redrawn. You'll have to draw it some other way.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
thanks for your answer.
oh yes thats correct, sorry
I have an ActiveX with animated ellipses and rects etc.
I would like to merge my ActiveX in MS Powerpoint on a whole foil. Afterwards I would like to draw MS Powerpoint Items on it. Without a transparent background I cannot see the objects, because if the ActiveX get focus the the Items slips into the background.
It brings also nothing to change the order of the Items and the ActiveX in MS Powerpoint.
I need a transparent ActiveX Background, and that should be cleared if i call for example OnDraw()
I don't know how can i do this.
I would be very grateful for suggestions!
|
|
|
|