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

Search:

Type: Posts; User: KingTermite

Page 1 of 10 1 2 3 4

Search: Search took 0.64 seconds.

  1. Replies
    6
    Views
    1,016

    Re: Determine Windows OS from #define

    Not a concern....this is an old legacy program that's being phased out. No chance it will be on Vista or 7. It will only be on the platforms its currently on.





    BTW....the above method...
  2. Replies
    6
    Views
    1,016

    Re: Determine Windows OS from #define

    Thanks for the tips/reminders.

    I really want to avoid having two separate version of the EXE if possible.

    I am now trying a solution like this (hopefully will get time to get on the testers in...
  3. Replies
    6
    Views
    1,016

    Re: Determine Windows OS from #define

    I just tried wrapping with:


    #ifdef (WINVER > 0x500)
    #pragma inline_depth(0)
    #endif

    I should know Monday morning if that worked or not.
  4. Replies
    6
    Views
    1,016

    Determine Windows OS from #define

    I have a device handler that was not working with Windows XP. It was fixed by a few #pragma statements ( #pragma inline_depth(0) ) around some areas of code. This fixed it for Windows XP,...
  5. Replies
    6
    Views
    9,874

    Re: CArchive exception - BadClass?

    I found a seemingly rare knowledgebase article:
    http://support.microsoft.com/kb/322621

    That made it appear to be a known problem inside of an MFC DLL. It looks like it should have been fixed by...
  6. Replies
    6
    Views
    1,129

    Re: What type of project for DLL?

    Are you saying then, my only main issue to really worry about is dynamically allocated memory that is passed between them? If so, I can probably work around that as I don't think it is done thaaat...
  7. Replies
    6
    Views
    1,129

    Re: What type of project for DLL?

    Ok....I guess I need to find out what's possible and what is not.

    Just before I started this thread, I started a small 'proof of concept' project (two actually). I created a simple VC++ 8.0 MFC...
  8. Replies
    6
    Views
    1,129

    Re: What type of project for DLL?

    I was afraid this might be the answer. What is CRT that you are talking about? Can you point me to any references so I can show others I work with?
  9. Replies
    6
    Views
    1,129

    What type of project for DLL?

    OK, it seems my task is changing here at work.

    We have old code that is written in Visual Studio 6 (C++ code, lots of MFC). I need to take a part of it out and make it in its own DLL.

    Here's...
  10. Replies
    19
    Views
    2,429

    Re: If Statement && Help

    Not knowing "why" it works is almost as bad as it not working, IMO.
  11. Replies
    19
    Views
    2,429

    Re: If Statement && Help

    I agree. I don't understand why they would have made a difference where you put them.
  12. Re: This is my first programming project, and I really need some help

    == means evaluation like if (a == b)
    = means assign like a = c+2

    So using double equal there means you are testing logic, not assigning a value. It appears to be that you mean to assign a value...
  13. Replies
    19
    Views
    2,429

    Re: If Statement && Help

    is this supposed to be:

    if ( (GetAsyncKeyState(VK_F8) && x ) > 1)

    or

    if (GetAsyncKeyState(VK_F8) && (x > 1) )

    Compiler probably doesn't know? You have two evaluations there.
  14. Re: This is my first programming project, and I really need some help

    Is this in Microsoft Visual Studio? If so, what type of project did you select to start with?
  15. Replies
    5
    Views
    1,188

    Re: Odd program flow occuring

    I "believe" it is.......here are CPP and Linker Optimizations (didn't change anything in linker except win98 optimization as it didn't look to do much).
    ...
  16. Replies
    5
    Views
    1,188

    Re: Odd program flow occuring

    BTW, in case you are wondering, optimization is disabled. *FYI*
  17. Replies
    5
    Views
    1,188

    Re: Odd program flow occuring

    OK, you asked for it, however, I still don't think its a code problem as this is working code in Visual Studio 6. It's not my code, just mine to maintain/update at the moment....so refrain from "bad...
  18. Replies
    5
    Views
    1,188

    Odd program flow occuring

    I have an MFC DLL (old working Visual C++ 6.0 code) that is part of a much larger project (all converted from Visual Studio 6 to .NET 2005). I'm having trouble at one point (at least that I've...
  19. Replies
    6
    Views
    9,874

    CArchive exception - BadClass?

    This problem relates to a previous thread, but since I've learned more about the problem it kind of seemed new and warranted a separate thread.

    The main problem:
    MFC DLL (being called from...
  20. Replies
    2
    Views
    13,643

    Re: Unresolved typeref token?

    Awesome! That was it. Thank you. :thumb:
  21. Replies
    3
    Views
    645

    Re: Forcing a file to write?

    How are you writing the file?

    CFile? CArchive? Most write type functions have a flush() method that commits outstanding writes.
  22. Replies
    2
    Views
    13,643

    [RESOLVED] Unresolved typeref token?

    On a project (old VS 6 project upgraded minimally to work in VS 2005), I changed setting from "no clr support" to "clr support".

    I got this warning now (that appears to from another DLL that is...
  23. Replies
    6
    Views
    6,511

    Re: CArchive issue?

    This to me seems the most likely. I've looked at where its serializing out and it appears to only be CStrings and some normal data types (longs, ints, doubles, etc...).
  24. Replies
    6
    Views
    6,511

    Re: CArchive issue?

    It appears to be creating the archive from the file, then writing it out as a CSequence to that pSequence pointer. I looked in the old on (through debugger) and the >> operator appears to allocate...
  25. Replies
    3
    Views
    1,271

    Re: Migrating from VC++ 6 to VC++ 2005

    I feel your pain. I've been working for a while upgrading a BIG (50,000 lines of code or something of that order) project from VC++ 6 to VC++ .NET 2005. It's been a long and painful experience (that...
Results 1 to 25 of 247
Page 1 of 10 1 2 3 4





Click Here to Expand Forum to Full Width

Featured