What's the 'best' way to secure all files (including .zip, .pdf) in a folder on an IIS web server using asp.net? This situation must be very common, but I have found very few suggestions on the...
I realise that it's not spcifically a VC++ issue, but can someone please tell me how to automatically create an index from keywords in html. I'm using MS help workshop 1.4 (a terrible product, with...
Thanks very much. I'll take your advice and wrap the vector in another class.
Since I'm only ever working with one instance of the class, am I right in assuming I don't need to worry about thread...
I have a class containing a static vector. I would be grateful if someone could tell me how to initialise this vector so that when this class is instantiated, the vector contains some meaningful data...
Thanks for your reply. I have just got to the bottom of the problem, and it was my own stupid fault!. I had nievely assumed that screen redraw could not be called whilst printing - of course it can....
I have an MDI MFC app-wizard generated application. Printing works fine EXCEPT when printing to acrobat 6 printer (ie distiller). I can compile and run the program in the debugger and it will print...
Sure enough, using statically linked MFC does solve the problem. Thanks Philip. But:
1) how to convert my existing dynamically linked project to static?
2) I don't really want to have MFC...
Yes, I did rebuild all, but the plot thickens:
I put your (P. Nicoletti's) test code into 2 new projects, a console app and an MFC application (in OnSaveDocument). Exactly the same code takes the...
doh - of course! Thanks
I'm still curious to know why writing to an ofstream via a ostringstream is over 100 times slower than writing to the ofstream directly.
I am using an ostringstream to hold text which is written to a file using an ofstream object, but it is unacceptably slow - it takes more than 10 secs to write 200kb on a fast pc. Please can you tell...
MrViggy:
Yes I am handling File->New>sub menu items, but just as an alternative to the dlg box which MFC pops up (which is NEVER seen in commercial apps). This part works fine. In fact the only...
1- Each File>New menu subitem is handled by a function in the CWinApp derived class which asks the chosen simulation template to create a new document. eg
I assume the author is Jesse Liberty and that this focuses on just C++, no mention of MFC... In which case this is a GREAT book to start with. I think one of the best c++ starter books.
I am writing some modelling software. A variety of models/simulations can be run which are chosen from sub menu items in File>New. A simulation may not work, in which case a new document will not be...
Thanks for your reply.
I was really hoping for a more elegant OO solution, rather than just having a type variable and a switch statement - I may as well use RTTI, but I'd rather not do this.
I have an abstract class WaveBase, and derived concrete classes TimeWave and FrequencyWave, which hold time or frequency waveform data.
I'm using MFC doc/view. The document holds a WaveBase* called...