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

Search:

Type: Posts; User: 2kaud

Page 1 of 80 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    89

    Re: C++ - how use GDIPLUS?

    In the debugger, put a break point on winmain(), start debugging and then step through the code until you get the problem.

    If Windows closes the program before it hits the breakpoint on winmain()...
  2. Replies
    5
    Views
    89

    Re: C++ - how use GDIPLUS?

    Not checking for return errors from functions. :thumbd:

    If the program isn't responding how do you know you have a memory leak?

    Tracing through with the debugger shows the problem to be where?
  3. Replies
    4
    Views
    199

    Re: My binary tree class

    The function pow() is already present in the maths standard library (include cmath). See http://msdn.microsoft.com/en-us/library/dt5dakze.aspx

    When using variables it is good practice to give them...
  4. Replies
    27
    Views
    2,500

    Re: MySQL and C++ lib error

    ... and using the debugger, the crash occurs where?
  5. Re: How do I remove an element of a vector and returning it?

    As you state, pop_back just deletes the last element and doesn't return anything. If you want the contents of the last element before you delete it then use back() before pop_back(). See...
  6. Re: Error - Call to non-static member function...

    Welcome! :wave: We are a friendly bunch who'll provide advice and guidance. Have you read ...
  7. Re: Error - Call to non-static member function...

    As numberOfDays and monthName are used only by Date class functions, I would consider having them as private static const members of the date class.

    You can also shorten some of your code. eg

    ...
  8. Replies
    1
    Views
    110

    Re: Windows: Where to store global information?

    You could store the data under the Documents and Settings\All Users folder rather than the AppData structure for a specific user.
  9. Replies
    3
    Views
    119

    Re: Qtcreator finds an error outside of program

    Just for info - it doesn't compile with VS2013! :cry: The first errors are from


    dad.children = { &judy, &elroy };
    mom.children = { &judy, &elroy };
    judy.parents = { &mom, &dad };
    ...
  10. Replies
    7
    Views
    191

    Re: Using Comparables.

    Is the Point class used as a base class for other derived classes? With what other class pointers (apart from Point) is Equals() being called?
  11. Re: Totals or my formula to caculate is not working

    When you originally posted code in your other thread you used code tags to format the code. In this thread you haven't so your code is hard to read. To put code tags around your code, Go Advanced,...
  12. Replies
    7
    Views
    270

    Re: slow upload rate to vxworks server

    How often do you need to transfer these files? If the issue is the overhead of having many small files then one possible workaround would be to zip them into a file and then transfer just this file...
  13. Re: Totals or my formula to caculate is not working

    Please don't start new threads re the same issue. This thread is the same as your previous one here http://forums.codeguru.com/showthread.php?546905-Help-with-clearing-out-variables - except that in...
  14. Replies
    45
    Views
    1,086

    Re: Window help (ignore previous thread)

    As Ignor notes in post #42 there is currently no common ratio. So now adjust the size/positions of the controls so that the calculations shown by Ignor produce a similar result for both controls for...
  15. Replies
    11
    Views
    282

    Re: Bool type problem

    the :1, :4 etc are specifying the number of bits that are used to store the value. So likesMusic is using 1 bit and numberOfChilden is using 4 bits. See...
  16. Replies
    10
    Views
    275

    Re: Some Simple Questions and Suggestions

    c++ io streams. See http://www.cplusplus.com/reference/iolibrary/

    screenf() isn't part of the c++ standard (as far as I am aware?).

    printf() is from the c standard library which is also part of...
  17. Replies
    11
    Views
    1,880

    Re: Please help! I need to write a code.

    After 6 years I think the OP will have moved on :rolleyes:
  18. Replies
    2
    Views
    128

    Re: Help with clearing out variables

    Move int totalmonths = 0; to within the do loop. That way every time around the do loop totalmonths will be set to 0.



    Have you used the debugger to find out where you program deviates from...
  19. Replies
    3
    Views
    215

    Re: Help with Microsoft Visual C++

    Its a VC configuration issue. There are no projects defined in the solution and the menu items Project and Build are not shown in the screen image.
  20. Replies
    45
    Views
    1,086

    Re: Window help (ignore previous thread)

    In your example program change the initial main window size from 900x500 to say 600x300. Manually hard code the position & size of the controls so that they are correct. Then change the main window...
  21. Replies
    45
    Views
    1,086

    Re: Window help (ignore previous thread)

    In your code in post #24 you create your initial window of size 900x500. Lets call these initw and inith. You then create an OK button at (855, 219) with a size 30x21. Lets call these okx, oky and...
  22. Replies
    10
    Views
    275

    Re: Some Simple Questions and Suggestions

    It is considered good practice to define variables near to where they are actually used. In this case gross is not used until after all the input has been obtained so good practice would have gross...
  23. Replies
    10
    Views
    275

    Re: Some Simple Questions and Suggestions

    cin parses the input until it finds a whitespace char. A whitespace char is a space, tab, newline etc. So if the input typed by the user contains a space then cin only returns the data up to the...
  24. Replies
    10
    Views
    275

    Re: Some Simple Questions and Suggestions

    You haven't used cin for input.

    I don't know how far you have got with c++ but it would be more usual in c++ to have the variable movie as type string rather than char[10].

    To put double...
  25. Replies
    8
    Views
    190

    Re: c++ - win32 - my image class

    What, no tests for error return values from function calls????????? :rolleyes:
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center