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

Search:

Type: Posts; User: GCDEF

Page 1 of 80 1 2 3 4

Search: Search took 0.22 seconds.

  1. Replies
    11
    Views
    191

    Re: MFC Application UI develop idea

    Again, nested dialogs.
  2. Replies
    11
    Views
    191

    Re: MFC Application UI develop idea

    I'd do it with buttons and nested dialogs.
  3. Replies
    3
    Views
    113

    Re: Function of the same name as the class

    That's a contstuctor, a function that's automatically called when an object is created.
  4. Replies
    4
    Views
    202

    Re: C++ linking error

    Missing header files won't generate link errors. You haven't given enough information to get a useful answer. Which symbol is the linker referring to?
  5. Replies
    16
    Views
    401

    Re: Sorting parallel arrays in C++

    I hope the point of the exercise was to demonstrate what a pain parallel arrays are and how buggy they can be. If he's suggesting you write code that way, you need a new instructor.
  6. Replies
    3
    Views
    164

    Re: Problem with arrays.

    I compiled your code and got a warning from the compiler on this line
    int least = monkey[0];
    that you were using an unitialized variable. That would be a good place to start looking, but as...
  7. Replies
    3
    Views
    150

    Re: Overridden CWinApp::OnFileOpen() handler

    There's a sequence MFC routes commands. I'm not going to post it off the top of my head because I don't want to get it wrong, but the main window is the first to get the command. If it doesn't...
  8. Replies
    5
    Views
    243

    Re: Homework Assistance Needed

    As 2kaud said, wrong forum.

    However, you have some pretty bad logic errors in your if statements. Assuming you actually assign a value to txtAge,

    If it's < 3, the the first statement applies....
  9. Re: New to C++ and I need some help. (Not new to languages)

    That's a really goofy post. In the case of the for, the for, and its conditions, is the single statement, just as the if followed by an expression is a single statement.

    if (condition)...
  10. Thread: LoadFrame error

    by GCDEF
    Replies
    1
    Views
    160

    Re: LoadFrame error

    Use the debugger
  11. Re: New to C++ and I need some help. (Not new to languages)

    Strongly disagree. One statement per line. Code like that is hard to read, as it's easy to miss statements, and it's harder to debug as you can't tell if the condition is true just be stepping in...
  12. Replies
    2
    Views
    165

    Re: play youtube videos in vc++ application

    Another approach if all you want is YouTube, may be to use the browser control.
    http://msdn.microsoft.com/en-us/library/aa752046%28v=vs.85%29.aspx
  13. Replies
    4
    Views
    219

    Re: how to manage popup windows?

    Without knowing more about the OS and class libraries, a specific answer isn't possible, but in general, you'd want to create the different dialogs and show them and hide them as necessary. Then you...
  14. Re: Display data immediately - C++ Dialog domodal?

    The Windows part of the dialog and its associated controls don't exist before or after DoModal, so that part doesn't makes sense.

    The DDX mechanism is an easy way to do it. Just give a value to...
  15. Replies
    4
    Views
    232

    Re: Need help with easy problem

    The key to solving a problem like this is to figure out the steps before you write any code. Just using plain English and a pencil and paper, jot down the steps you'd follow if you weren't trying to...
  16. Replies
    5
    Views
    323

    Re: Need of Assistance #2

    I'm not sure what point you're trying to make. There are lots of differences, including the first app is trying to use single variables as arrays and the second one isn't.
  17. Replies
    5
    Views
    323

    Re: Need of Assistance #2

    You appear to be trying to use name, type and year as arrays, although they aren't declared that way.

    That image is really hard to read because of its size. Your debugger should be able to tell...
  18. Replies
    3
    Views
    354

    Re: Incorrect values Printed

    As 2kaud said, try the debugger. I'm having trouble making sense of your code. I don't see what you're first loop is trying to accomplish. In setCurrentContract, you're storing the address of a...
  19. Replies
    2
    Views
    313

    Re: Problems with input/output file program.

    Nothing to do with your question, but those aren't nested if statements.
  20. Replies
    8
    Views
    372

    Re: Getting to the active document

    How about InitialUpdateFrame. It even receives a CDocument pointer as an argument.
    http://msdn.microsoft.com/en-us/library/ch3t7308.aspx
  21. Replies
    8
    Views
    372

    Re: Getting to the active document

    Perhaps your document should call a function in your CMainFrame class and pass a pointer to itself when it's created.
  22. Replies
    8
    Views
    372

    Re: Getting to the active document

    It's in the Visual C++ FAQ

    http://forums.codeguru.com/showthread.php?281430-MFC-Doc-View-How-to-obtain-a-pointer-to-various-objects
  23. Replies
    18
    Views
    714

    Re: Homework help: is this a good design?

    Another thing, in most cases functions don't want to return references. That applies here.
  24. Replies
    8
    Views
    379

    Re: Need guidance ...

    In C++, a struct and a class are for all intents and purposes, the same thing. If you want to use a class, it would likely have 40 members, some of which may be objects.
  25. Replies
    18
    Views
    714

    Re: Homework help: is this a good design?

    That doesn't mean all your functions need to be virtual. Only make them virtual if you think their behavior will change in derived classes. GetFirstName would be the same regardless of the employee...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


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