|
|
There is no advantage to using reinterpret_cast - it does exactly the same thing (casts and overrides all type checking) and is much harder to type. dynamic_cast is about the only useful cast operator.
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Michael Dunn wrote:
There is no advantage to using reinterpret_cast
Yes there is: documentation. It clearly displays "This is something out-of-the-ordinary".
|
|
|
|
|
Hello gurus,
I'm generating a lot of metafiles and I want to build animation from them. How can I add all them to one gif or other animation format?
thanx in advance
marukas
|
|
|
|
|
marukas wrote:
I'm generating a lot of metafiles and I want to build animation from them. How can I add all them to one gif or other animation format?
Try to search for "AVIFile Functions and Macros" in the MSDN, you I´ll find all the information needed to create an AVIFile.
Mauricio Ritter - Brazil
Sonorking now: 100.13560 MRitter
|
|
|
|
|
hi all,
Here's one problem.
i have an dlg box without Title bar and i want to dispalay the system menu when i clik the alt spacebar. i want the menu in the corner that is displayed with the normal applicaation.
the other prob is that as there is no title bar the name of app doesnt appear in the small box which appears on the task bar when the application is running.
if any one can helpme out . i will be a pleaseure.
|
|
|
|
|
How to resume download from FTP site?
|
|
|
|
|
there are various commmands related to FTP
like get <filename> - for single file
mget - for multiple files
Renjith-CPian.
|
|
|
|
|
I don't really see, how those commands support download resuming. I checked at:
http://networking.ringofsaturn.com/Protocols/ftp.php
And, if it supports resume download: how can I execute such command?
Thanks
|
|
|
|
|
Hi!
Seems that CInternetFile has such functionality,
CInternetFile* OpenFile(...)
|
|
|
|
|
Hi virtual Friends,
I have started Windows Programming and i would like to know list of very good books on MFC 6.0.Also where can i get the freely downloadable ebooks for MFC.
Waiting for reply
Pradeep
|
|
|
|
|
Hi!
Look on internet for tutorials, it may be cheaper.
See amazon.com for books and their reviews.
See also:
http://www.funducode.com/books/books.asp
Hope that helps
|
|
|
|
|
Starting with Introduction to MFC Programming with Visual C++ 6.0 by Richard Jones.
The ultimate MFC book is Programming Windows with MFC Second Edition by Jeff Prosise.
Kuphryn
|
|
|
|
|
How many times, OnBeginPrinting is called for a print job ? Once per printing page, or once for the whole print document ??
I need the CDC, and CPrintInfo to calculate the no. of pages needed to print out. Is it a good place to put into OnBeginPrinting ?
If in case my report changes from Portrait to Landscape in the middle of printing. How can I get the new CDC and CPrintInfo describing my printer ?
Thanks
|
|
|
|
|
OnBeginPrinting is only called once per print job. OnPrint is called for each page. You can calculate the number of pages in OnBeginPrinting, but you may want to look at doing it in OnPreparePrinting. OnPreparePrinting is called before OnBeginPrinting, and it is responsible for popping up the print dialog, so if you want the "To" number of pages to show up in the dialog you need to calculate it in OnPreparePrinting.
I'm not sure on the last point, so I'll let someone else take it. You can get info on all the method calls on the MSDN site under info for the CView class, at the MSDN MFC View documentation page.
Hope this helps.
Mark
|
|
|
|
|
What message would be best used to handle the subclassing of the spinner control of a CTabCtrl ...??
I tried PreSubclassWindow and OnCreate but neither will do the trick.
I am assuming PreSubclassWindow isn't called when a window is created dynamically using it's Create() and subclassing the spinner in OnCreate() I assume won't work because the spinner control isn't created yet???
These are the conclusions i have come to using the debugger and AfxMessageBox () inside PreSubclassWindow() .
Where am I going wrong if I am...or what mnessage would best be suited to handle this task...??
p.s- I'm thinking OnSize...and use a local static bool flag to indicate whether the control has been subclassed already so the control only gets subclassed once...???
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I have a list view and what I want to do is for one line ignore that fact that there are columns, so it would look something like this.
--------------------
Column 1 | Column 2
--------------------
text text
text text
text text
This ignores the columns.
text text
can that be done?
|
|
|
|
|
Sure!
Ownerdrawn or custom draw
However each of your listview items would need an additional BOOLEAN feild or something to indicate when to draw the item like that.
Actually I don't see that being to hard especially if you use Custom draw. Mike Dunn wrote an article I think which would serve you well for this task.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Thanks
|
|
|
|
|
Hi!
My name name is Orlanda, I'm from Montreal.
I'm trying to help out a friend on his first real job.
I would be very grateful could you advise him...
He has a windows 2000 server computer.
Bell has shut down their internet due to unwarranted port 25 traffic.
Nobody can use the internet.
They say it's because someone may have hacked into their systems:
They're not supposed to have port 25 traffic for some reason -and there it is...
They have port 25 traffic.
He can'T see any way out except to reinstall everything.
I suggested a router to transfer port 25 to somewhere else.
What can he do?
His name is Vincent, and he's a great guy.
Any advice would be appreciated.
thanks!
|
|
|
|
|
He can get a software firewall. Do a search for "ZoneAlarm". Or, he can get a switch like the one I got, a Linksys 4-port for DSL/Cable for about $80. The switch by default has all ports disabled and then he can enable the ones he wants.
BTW, I don't think you should ask this question in this forum
|
|
|
|
|
thanks for the info,
but,
why not ask in this forum?
|
|
|
|
|
Because this is a Visual C++ forum. You're asking a question about computer security and not how to program for it and programming security has nothing to do with your problem. Your question would be more appropiate in a forum about switches/routers, port security, computer/Internet security, etc.
|
|
|
|
|
25 is the SMTP port number. In all likelihood your friend has enabled relaying on his SMTP server and thus spammers are using his machine to send trash mail, thus causing heavy traffic. Tell him to either disable SMTP relaying or if he insists on relaying, then he should at least restrict relaying to selected IP addresses [perhaps just to his localhost]
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
I have an object that derives from CWindowImpl (ATL Windowing classes) and I would like to make it a drop target. Apparently adding IDropTarget isn't enough and I would like to know what else is required for me to add drag and drop.
My scenario is that I have a TreeView and would like to click on one of the items and drag it onto a custom view and fire off a behaviour based on the item that has been dragged.
Thanks in advance,
Clint
|
|
|
|