|
The secret lies in CWnd::OnNcDestroy. The method compares this with m_pMainWnd and posts quit message if so.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
Man, that's funny! Thanx a lot for the piece of info.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I am using MIME to send an HTML file and associated JPG file to a clients who are using Outlook Express. I am using an associated ID to refer to the image inside the HTML file. I'm also using
http-equiv=3DContent-Type.
I am experiencing two problems. One client, running Windows 98, can see the image, but no table-related text, the other clients running 2000 can see both text and image. Neither, however, can print the image directly from Outlook. Only the much hated square with the IMG alt tag and red cross.
Has any one else experienced this problem? And more importantly does anyone have any idea how to fix it?
|
|
|
|
|
hello,
how do i check if i am connected to the internet ? so far i've found 2
ways to do that.
- InternetAttemptConnection
but this works only for modem conncections
- InternetCheckConnection
works for nearly all types of connections, but not always
is there any 100% version (proxy, firewall .... )
Thanks
here is my solution:
// worker thread
BOOL WINAPI IsConnected()
{
do {
#ifdef ADSL
g_IsConnected=InternetCheckConnection ("http://www.google.com",
FLAG_ICC_FORCE_CONNECTION ,0);
#elseif
if(InternetAttemptConnect(0) == ERROR_SUCCESS) g_IsConnected = true;
else g_IsConnected = false;
#endif
Sleep(2500);
} while(1);
}
|
|
|
|
|
when does InternetCheckConnection not work?
I'm interested because I'm using it now and I havn't found any problems... but then again I haven't released my software yet.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
FROM MSDN
There are some other ways to try to determine if you currently have a connection to a particular network resource. The IsDestinationReachable() function can be used to find out if there is a current connection to an address. However, he IsDestinationReachable() function is only concerned with whether the IP address is reachable from your computer. It does not work through HTTP proxies or firewalls that restrict ICMP ping packets.
--> thats the same for InternetCheckConnection
|
|
|
|
|
bool isConnectedToInternet()
{
bool bConnected = false;
DWORD dwFlags;
if (::InternetGetConnectedState (&dwFlags, 0)) {
if ((dwFlags & INTERNET_CONNECTION_LAN) ||
(dwFlags & INTERNET_CONNECTION_MODEM) ||
(dwFlags & INTERNET_CONNECTION_PROXY)) {
bConnected = true;
}
}
return (bConnected);
}
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I am implementing a application in which i want to have a graph just like the task manager. I am not getting the idea of how to exactly implement the animated graph. ( I tried using memory bitmaps but the logic is clicking )
Help me
Thanks
Vikash
mail to:vikashdubey@hotmail.com
|
|
|
|
|
Vikash Dubey wrote:
I tried using memory bitmaps but the logic is clicking
Can you elaborate on the 'clicking' part?
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
sorry not clicking(means not working) can you help on the moving graph logic.
Thanks
Vikash
|
|
|
|
|
|
Thank you very much I will analyse it and see.
Regards
Vikash
|
|
|
|
|
Hi all,
In my application(winsock Programm) I am sending the message to
client application and i am waiting for ack,
I have a plan to implement timeout mechanism
if client doesn't send any ack
please give your sugesstions .
My question is "Is there any timeOut Mechanism in Winsock Programming?Like SerialComm"
anju
|
|
|
|
|
|
hi Michel Prévost,
Thanks a lot
now it is working fine
anju
|
|
|
|
|
I have made a program that reads all kind of technical information about
the workstation, but one thing is missing:
How could I identify the mother board? I am using win NT4.0 & MS VC++6.
This is a tool for my own use, it would help to get _any kind_ of information
what mobo is being used. (Other option is for me to go through 120+
workstations sooner or later )
|
|
|
|
|
You probably have to create a device-driver to be able to get at the information from the system BIOS to see what BIOS vendor it is. From that point you have to collect information from all mobo vendors and try to match it. Short: There is no info available on what mobo you're using, you have to look this up yourself.
I wouldn't even consider this unless there was a known collection of mobos used.
++luck;
|
|
|
|
|
I could quite easily find out what mobos we have. Even information who is the manufacturer (asus, abit, etc) would be a big help.
|
|
|
|
|
Hi guys!
Does anybody has any idea how to draw in different layers, so to be able to turn off a layer when not needed any more and get the original picture back? I find it sometimes too expensive to redraw a whole picture if I just need to remove some icons or other item drawn on it, or to calculate a rect of the pic to be "cut off" and then bitblt-ed from the resource bmp again to "fill the hole".
Any help, idea, or pointer to something similar would be greatly appreciated. Thanks.
.
|
|
|
|
|
Use double array:
Use a vector of graphical objects for each layer.
Use a main vector to store all the layers.
regards
-----
Mit freundlichen Grüssen/Best Regards/Un cordial saludo.
Ing. José Manuel Hostalet Wandosell, Fraunhofer IPA, Abt.323/Robotersysteme
Nobelstrasse 12, D-70569 Stuttgart (Germany)
mailto:jose.hostalet@ipa.fhg.de, http://www.ipa.fhg.de
|
|
|
|
|
Does anyone know a "good" book about software development on win ce and pocket pc with C++ ???
--
Nice greets, Daniel.
|
|
|
|
|
Id say Chris Muench's book The Windows CE Technology Tutorial [^]is the best one I've seen. It covers alot of the diffrences between CE and the desktop.
Otherwise, any good MFC/win32 book + MSDN's CE pages will do the trick.
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
I want to print the window generated by my dialog based application(Visual C++), provided a push button for printing window. Can any body tell me how to do this?
Ravi
|
|
|
|
|
Try with WM_PRINT or WM_PRINTCLIENT.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
As a beginer of ATL Based Web Service programmer, I have some some questions about it:
1)Whether a Web Sevice can hold its state during its serving many clients, for I want keep some data structs among clients because these clients are collorating doing a certain work. If Web Service can has this virtue, how can I do, are there some documents about it?
2) can a web service client dynamicly locate the server without recompiling its source files When a Web Service provider changes its location on the internet? If it can, how can I do and are there some documents about it?
Please help me, thank you!
oyyx@sina.com
|
|
|
|