|
Turned Firewall off
I am going to investigate @err,h mentioned previously in the thread to see what its about
thankx
|
|
|
|
|
ForNow wrote: @err,h
Its err,hr buddy. Be careful.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
I tried that
All that does is return the same result as GetLastError
Access Denied
The thing what I dont understand is the Code Woks on My Tower same os Windows XP service Pack 2
|
|
|
|
|
Hi All,
When i am porting my application VC++ 6.0 to VC++ 9.0 in the following piece of code i got the error
error C2039: 'm_hWndLastControl' : is not a member of 'CDataExchange'
else if (pDX->m_hWndLastControl != NULL && pDX->m_bEditLastControl)
{
::SendMessage(pDX->m_hWndLastControl, EM_LIMITTEXT, maxChars, 0);
}
When i had a look at the CDataExchange class the member hWndLastControl is emoved and a new member called m_idlastcontrol is introduced.
i can use the pDX->m_hWndLastControl in the comparison, but SendMessage nead a HWND. How can i get the HWND from m_idLastControl?
Is there any API to get the handle of a control from its ID?
Thank you all for the support.
|
|
|
|
|
Googling for "site:msdn.microsoft.com m_idLastControl" leads you to this[^] - informative?
|
|
|
|
|
Thanks for the link.
We are able to get the control id, how can we get the handle to control from control id?
|
|
|
|
|
If you have the dialog handle, GetDlgCtrl will work.
|
|
|
|
|
Thanks Stuart.
I dont have a Dialog Handle,
Can i use ::GetDlgCtrl or any other API?
Thanks
|
|
|
|
|
|
hiyah Stuart - is there a definative guide about porting from VC6 to (anything higher) or is at all 'suck it and see and when you get an error search MSDN/the forums'
cheers & thanks ..
Garth
|
|
|
|
|
|
thanks - I havnt been following this for a long time (obviously, vc6 ..) but will be stepping up in the new year
cheers
Garth
|
|
|
|
|
Yea that's must be great to hear. VC 6 is not fully following ISO standard for C++. But it's easy to use (if we ignore the problems with class wizard and all). One of the best IDE, I've ever used. The new Visual Studio IDE is not so responsive as the old one. But it's having improved compiler and libraries
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Garth J Lancaster wrote: suck it and see and when you get an error search MSDN/the forums
That's the approach I've always used - but the only porting I've done was 50-60 kLOC of non-MFC code from VC6 to VC7.1. I was using lots of STL, lots of Boost, so moving to VC7.1 was a blessed relief
I think that if you've stuck to documented parts of MFC (which is not what the OP's done, from what I can tell), you'll be mostly OK.
I suppose I ought to port some of my old VC6 stuff, seeing as I no longer have any VC6 installs, but I have trouble getting enthused as a) they work, b) the customers aren't wanting updates, and c) did I mention, they work Also - one of them is my first ever MFC app (originally written in VC5!). I've looked at it since, and it's horrible - I don't want to dip my toes in that sewer!
|
|
|
|
|
many thanks Stuart - it seems (very luckily) for me that anything Im going to port is non-MFC, STL, Boost, ACE (I should have mentioned this up-front)
thanks again
Garth
|
|
|
|
|
actually some body has change the setting/so i can't see my workspace and client areas (as)it was before ..some times they are overlapping..not like a normal application ...
|
|
|
|
|
What are you talking about and how does it relate to C++/MFC?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Bisua wrote: i can't see my workspace and client areas (as)it was before ..some times they are overlapping..not like a normal application ...
Drugz?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Drugz?
It was right there in front of me and I didn't see it!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Have you accidentally hit CTL + to enlarge the font displayed - often the new larger font causes fixed forms to look screwy - things overlap. To test this, hit CTL -.
Dave.
|
|
|
|
|
Hello community,
how can i retrieve current network capacity, is there any function for this problem!
Like in task manager the tab Network!
Thanks for any help!
best regards
termal
|
|
|
|
|
termal wrote: how can i retrieve current network capacity...
Link speed?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hello,
thanks for answer, for example, i have a 100MBit/s card in my pc, can i read this value from system?
When i make right click on the task bar, i can show me a task manager with current running processes,
one of the tab show the network:
Adapter name, network capacity, transfer rate and status,this values i like to read!
Here i need help if possible!!
thanks for any help!
termal
|
|
|
|
|
I was going to suggest the Win32_NetworkAdapter WMI class, but the MaxSpeed property is optional.
Using PDH, I successfully queryied the Current Bandwidth counter of the Network Interface object. Give that a go and see if it meets your needs.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hello,
i try to solve my problem with your info!
Thank you very much for help!
best regards
termal
|
|
|
|