|
Hi Mark
If you want I can send you the source file.
Thank you and appreciate your help
|
|
|
|
|
Sure. Without the object code (delete the debug folder)
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Fixed.
I sent back one file - search for "//MARK" to see the changes I made.
One change was the one I modified in my first reply - the DDX_Control() call isn't
necessary since the control is already subclassed.
Second change: LBS_NOTIFY style added to the listbox control so you
get your selchange notifications.
Third change: m_dynalist->UpdateData() call removed. That's useless,
and does nothing
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi mark
Thank you for your big help.
Your three line comment is more than my two days of work.
I appreciate your help.
Thank you again.
-- modified at 17:14 Saturday 13th October, 2007
|
|
|
|
|
s196675m wrote: Thank you
You're welcome
I sent another email in reply to the other topic...
Cheers,
MArk
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
you are very dynamic sir.
by the time i downloaded it, copied it onto other system, and unzipped it, you fired the answer.
hats off.
|
|
|
|
|
Heh. Well (s)he sent me a project that built fist try (after conversion to
VS2005 format) so that made it easy.
Plus there wasn't thousands of lines of code to weed through.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I had developed one file manipulation tool using Visual C++ 6.0.. But the customer wishes, that the same exe, if runs under Linux and Sun Solaris, it could be better. Is there any ways to do this?
Thanks in advance,
With Regards,
Sangeetha.
|
|
|
|
|
There is no way for the same .exe to be loaded and executed by Linux or Solaris.
|
|
|
|
|
Hi mike,
Is there any option to develop the application using VC 6.0 to run in Windows, linux as well as in Solaris?
With Regards,
Sangeetha.
|
|
|
|
|
|
thank u mike. i will search and get back to u
With Regards,
Sangeetha.
|
|
|
|
|
Yes, but you need to compile a separate executable file for each platform. You need compilers for Solaris and Linux (for example GCC[^]), VC6.0 on Windows isn't enough.
|
|
|
|
|
Hi all,
Through my code i want to check that internet conection is there on a machine or not. If anybody knows the api or method to do this please tell me. It would be very helpful.
Thanks in advance
|
|
|
|
|
Does InternetGetConnectedState helpful?
|
|
|
|
|
i am using InternetGetConnectedState like this..
<br />
DWORD dwType;<br />
if (!InternetGetConnectedState(&dwType, 0))<br />
{<br />
AfxMessageBox("cable unplugged");<br />
}<br />
else<br />
AfxMessageBox("connection is there");<br />
if i disable my connection then also it gives connection is there.
|
|
|
|
|
What happend if you run this code
DWORD dwType;
BOOL m_bConnect;
m_bConnect = InternetGetConnectedState ( &dwType, 0 );
if (m_bConnect)
if ( dwType & INTERNET_CONNECTION_OFFLINE )
bConnect = FALSE;
|
|
|
|
|
its giving this error:-
<br />
error C2065: 'INTERNET_CONNECTION_OFFLINE' : undeclared identifier<br />
|
|
|
|
|
Did you include Wininet.h ?
|
|
|
|
|
ya i have. I have also included lib file( Wininet.lib )but still its giving this error
|
|
|
|
|
Whats your type application and your compiler?
|
|
|
|
|
|
i have a quicker and temporary solution for you.
but not sure, weather it suits your application.
1.go to command prompt and type ipconfig.
2.you will see the ip settings.
3.next, disable the internetconnection and see ipconfig.
4.in my system, it gives win 2000 ip configuration, and that should apply for your system also.
5.so got the difference?
apart from your code which you have previoulsy executed, you can add this ipconfig in a systemcommand (obviously by redirecting the output to a file)
and see weather the connection is enabled or not.
and one more alternative is,
you can google to find some application,(which i studied few days ago) like "how to find the unique ID of the network card in the computer"
in this application, the function returns the ID if the network is enabled
i think this will also be helpful, until some master gives you a simple technique. even iam eagerly waiting for that.
gud luck.
Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.
|
|
|
|
|
Hi all,
At runtime how to draw a transparent rectangle on the bitmap, which is loaded from the file using memory DC.
thanks in advance
|
|
|
|
|
surezu wrote: draw a transparent rectangle
Here try the following code:
void DrawTransparentRectangle( CDC& dc, Rect rc)
{
// the next line draws a transparent rectangle
// there now can you see it?
// i'm sure it is there, look again
}
|
|
|
|