Search:
Type: Posts; User: JonnoA
Search:
Search took 0.05 seconds.
-
September 6th, 2004, 04:52 AM
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...
-
August 18th, 2004, 08:03 AM
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...
-
August 18th, 2004, 07:55 AM
This may help explain it - at the bottom of the page it talks about what to do if there is a library conflict
http://support.microsoft.com/default.aspx?scid=kb;EN-US;186907
-
July 28th, 2004, 06:27 AM
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...
-
July 28th, 2004, 05:56 AM
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...
-
July 13th, 2004, 10:00 AM
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....
-
July 13th, 2004, 05:56 AM
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...
-
Thanks, that is a reasonable work around
-
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...
-
SSTREAM has a patch to vastly improve performance
http://www.dinkumware.com/vc_fixes.html
I've compiled the following test as a console app:
#include <sstream>
#include <fstream>
#include...
-
The problem seems to be with single and multi threading.
If I set the compiler option (i'm using vc6 with the lastest sp5) for the console app to /MDd instead of MLd (ie use multithread rather...
-
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...
-
June 30th, 2004, 11:01 AM
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.
-
June 30th, 2004, 10:23 AM
It's definitely the ostringstream object slowing things down. Passing an ofstream reference instead cuts the time down from 320 secs to 0.7sec.
I don't really want to pass the ofstream because I...
-
June 30th, 2004, 09:41 AM
Thanks for the SSTREAM fix. Unfortunately this made a negligible difference.
I am passing an ostringstream object to the TextOut function so that I can use the function to write text to the...
-
June 30th, 2004, 06:38 AM
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...
-
How do I detect when SHIFT AND CONTROL keys are pressed together? Using CView::OnKeyDown just gives me the character code for the last key pressed.
Thanks
Jon
-
April 29th, 2004, 04:45 PM
Kirants:
YES, but the simulations are only called from CSimulationADoc, CSimulationBDoc etc
As an example(simplified):
BOOL CSimulationADoc::OnNewDocument()
{
SimulationA simulation; //...
-
April 29th, 2004, 04:31 PM
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...
-
April 29th, 2004, 04:16 PM
Reply to your questions:
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
void...
-
April 29th, 2004, 11:36 AM
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.
Don't...
-
April 29th, 2004, 11:00 AM
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...
-
February 20th, 2004, 06:43 AM
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...
-
February 18th, 2004, 08:19 AM
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...
-
February 6th, 2004, 03:08 PM
Put a forward declaration in each file, eg
In a.h
class b; // forward declaration
//note do NOT #include "b.h"
class a
{
...
b m_b;
|
Click Here to Expand Forum to Full Width
|