Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: JonnoA

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    758

    Best way to secure a folder

    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...
  2. Creating index from HTML keywords in HTMLhelp workshop

    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...
  3. Replies
    8
    Views
    970

    This may help explain it - at the bottom of the...

    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
  4. Replies
    4
    Views
    510

    Thanks very much. I'll take your advice and wrap...

    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...
  5. Replies
    4
    Views
    510

    How to initialise a static stl vector?

    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...
  6. Thanks for your reply. I have just got to the...

    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....
  7. Unstable MFC printing to Acrobat. Can anyone help?

    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...
  8. Thanks, that is a reasonable work around

    Thanks, that is a reasonable work around
  9. Sure enough, using statically linked MFC does...

    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...
  10. Problem with stringstream and multithreading

    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...
  11. The problem seems to be with single and multi...

    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...
  12. Yes, I did rebuild all, but the plot thickens: I...

    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...
  13. doh - of course! Thanks I'm still curious to...

    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.
  14. It's definitely the ostringstream object slowing...

    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...
  15. Thanks for the SSTREAM fix. Unfortunately this...

    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...
  16. How can I speed up ostringstream writing to an ofstream

    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...
  17. Replies
    1
    Views
    449

    How to detect shift+ctrl keys pressed

    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
  18. Replies
    8
    Views
    460

    Kirants: YES, but the simulations are only...

    Kirants:
    YES, but the simulations are only called from CSimulationADoc, CSimulationBDoc etc

    As an example(simplified):
    BOOL CSimulationADoc::OnNewDocument()
    {
    SimulationA simulation; //...
  19. Replies
    8
    Views
    460

    MrViggy: Yes I am handling File->New>sub menu...

    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...
  20. Replies
    8
    Views
    460

    Reply to your questions: 1- Each File>New menu...

    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...
  21. Replies
    10
    Views
    913

    I assume the author is Jesse Liberty and that...

    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...
  22. Replies
    8
    Views
    460

    Multiple new files on same DocTemplate

    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...
  23. Replies
    3
    Views
    434

    Thanks for your reply. I was really hoping for a...

    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...
  24. Replies
    3
    Views
    434

    OO visitor design problem

    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...
  25. Replies
    4
    Views
    1,713

    Put a forward declaration in each file, eg In...

    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;
Results 1 to 25 of 29
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center