|
|
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
|
|
|
|
|
Why do we use a pointer to a Device context ?
CDC* pDC
I'm learning from a book and it doesn't tells why he is using a pointer rather than a simple variable
Top Web Hosting Providers[^]
Whatever the mind can conceive and believe, the mind can achieve - Dr. Napoleon Hill
|
|
|
|
|
A pointer can be passed more easily than a large structure, and a CDC* is the convention used by MFC when invoking OnDraw () handlers.
|
|
|
|
|
Nothing else? Are there any more benefits using it? I guess not.
Thanks
|
|
|
|
|
What more do you want? It gives you full access to the MFC drawing capabilities. (Have you ever tried to implement your own line-drawing routine?)
|
|
|
|
|
It's actually calling CWnd::GetDC() function which wraps the the following code
ASSERT(::IsWindow(m_hWnd));
return CDC::FromHandle(::GetDC(m_hWnd));
The FromHandle creates a new DC object in the Handle Map[^]. You will have to call CDC::ReleaseDC to release the DC acquired using GetDC. The object will be cleaned up on MFC Idle processing[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
manzoor10 wrote: Nothing else?
when you need something from the Internet, do you prefer Google's URL, or do you want FedEx to bring you a "few" truckloads of DVDs holding a copy of the billions of available web pages?
|
|
|
|
|
I've just this link
http://www.federalreserve.gov/[^]
please send me content (plz plz sir urgent plz plz).
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]
|
|
|
|
|
manzoor10 wrote: Nothing else?
free beer, doughnuts, ...
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]
|
|
|
|
|
In this case, it also enables polymorphism, so that you can use pointers to objects whose type is a sub-type of CDC , such as CPrinterDC . CDC is a general device context wrapper, while CPrinterDC is specific to printers. This means that the same code can be used for any device context type.
|
|
|
|
|
There are several (general) reasons to use pointers (in some circumstaces), all covered by a good C++ book.
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]
|
|
|
|