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

Search:

Type: Posts; User: Andrew Hain

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    865

    Application crashes under Windows 7

    I am getting reports of the application that I write sporadically crashing under Windows 7 (more often than similar reports with XP). The program is configured to support memory addresses with the...
  2. Replies
    1
    Views
    1,202

    NetStatisticsGet fails in Windows 7

    We have been having trouble with a program running on Windows 7 and we have traced it to this code.



    CT2W szwService(SERVICE_WORKSTATION);
    #if (_MSC_VER == 1500)
    // XXXX The following...
  3. Replies
    0
    Views
    649

    Crashes in ATL conversion macros

    We have been encountering crashes in ATL conversion macros where the ATL library function pointer g_pfnGetThreadACP points not to an actual function but into thin air. The call through...
  4. Replies
    17
    Views
    112,902

    Re: C++0x language feature checklist

    I’m surprised not to see strongly typed enums as I thought they were based on managed C++ enums.

    Also, what is the timescale for a future release with the rest of C++0x?
  5. Replies
    2
    Views
    940

    Re: Killing threads

    We protect some points from interruption with critical sections including the rich text window the analysis thread logs to. Maybe we don’t protect enough.
  6. Replies
    2
    Views
    940

    Killing threads

    We develop a finite element application with a facility for users to abort analysis while it is running. Because the analysis code is not structured to poll a stop flag regularly and needs to clean...
  7. Re: Numerical discrepancy between 2 project configurations in fltpnt ('Debug' vs 'float')

    Hallo.

    Are there any differences in optimisation or preprocessor symbols?
  8. Replies
    0
    Views
    683

    Browser crashes MFC application

    We have a multithreaded application using MFC 7.1SP1. It has recently displayed very curious behaviour. When a new IE6 window is opened or the browser navigates to a page with a pop-under, the...
  9. Replies
    5
    Views
    1,144

    Re: How do I switch code pages?

    Unfortunately, we are currently in beta and are trying to drop in Russian support as unintrusively as possible. We were already intending to use Unicode builds for future releases.
  10. Replies
    5
    Views
    1,144

    Re: How do I switch code pages?

    We don’t support Windows before Windows 2000 and could live with reqiring Russian users to use XP. Unfortunately we want to implement Russian quickly so we don’t want to switch to wide...
  11. Replies
    5
    Views
    1,144

    How do I switch code pages?

    I have an application using narrow-character MFC where resource strings used for program output can be switched between multiple languages. I have been asked to support Russian, which requires a...
  12. Thread: linux

    by Andrew Hain
    Replies
    13
    Views
    1,443

    Re: linux

    There is a list at:

    http://www.geocities.com/SiliconValley/Vista/7184/guitool.html

    Hope that helps.
  13. COleObjectFactory::UpdateRegistryAll() and Windows Vista

    Our MFC applications have boilerplate initialisation code of the form:

    // Parse the command line to see if launched as OLE server
    if (RunEmbedded() || RunAutomated())
    {
    // Register all OLE...
  14. Replies
    4
    Views
    633

    Re: Using delete [] inside a function

    Data allocated with new[] and accessed through a pointer is not deleted, but if, instead, you declare a vector:

    std::vector<Byte> uncompr(g_uncomprLen);
    your memory will be cleaned up for you.
    ...
  15. Replies
    9
    Views
    2,466

    Re: Unicode CString to HTML characters

    Your example will work if you identify your output page as UTF-8. See http://www.cl.cam.ac.uk/~mgk25/unicode.html#web for advice on how to do that.
  16. [RESOLVED] Will MFC be made a better neighbour?

    Will some of the historical baggage in MFC be tidied up?

    I am thinking of:


    If you use #define NOMINMAX to tame the SDK header files and allow well behaved minimum and maximum functions, you...
  17. Re: How to read this, it seems like it has two types

    [QUOTE=Andrew Hain]The define you want is:


    #define YY_PROTO (proto) proto [QUOTE]

    That should of course read:


    #define YY_PROTO(proto) proto
  18. Re: How to read this, it seems like it has two types

    The define you want is:


    #define YY_PROTO (proto) proto

    This is a workround for old C compilers that did not allow you to declare the types of arguments to functions. There was actually never...
  19. Replies
    3
    Views
    10,449

    Re: fopen vs. fopen64

    I assume you are using C rather than C++. In C, if you call an undeclared function, the compiler assumes it returns an int, and then complains that you are converting the int to a pointer. The...
  20. Re: Error: no data exchange control with ID 0x03F4. what does it mean?

    Try using std::auto_ptr instead of pointers when you want the memory reclaimed when you go out of scope.
  21. Replies
    6
    Views
    954

    Re: What To Use Instead Of Iterators

    You should be using ++n, not n++

    From the FAQ: http://www.codeguru.com/forum/showthread.php?t=231052
  22. Replies
    3
    Views
    10,085

    Re: templates Vs function overloading

    They have some similarities. The key difference is that with templates you write one implementation, which is the same for all types, but with function overloading you write separate implementations...
  23. Re: How to use Tokenize() wid CStrings in VC6

    There is a library routine strtok() that may be suitable for your needs. Read the documentation carefully as there are various caveats to its use.

    Nope that helps.
  24. Replies
    11
    Views
    2,921

    Re: unhandled exception when using strcpy

    Instead, you have an issue with uninitialised pointers. It would be better to declare it as std::string and use += instead of strcat.
  25. Replies
    2
    Views
    863

    Re: STL - std::map question...

    If you want to manage your strings outside the map, the comparator would look like:


    bool Comparator(const char* x, const char* y)
    {
    return strcmp(x, y) < 0;
    }

    You may find it easier...
Results 1 to 25 of 50
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured