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

Search:

Type: Posts; User: Paul McKenzie

Page 1 of 80 1 2 3 4

Search: Search took 0.44 seconds.

  1. Replies
    2
    Views
    212

    Re: std::map, insert() issue

    Maybe because the key type and mapped types could go through a silent conversion, given you the other two argument constructor being called (which could lead to hard to find bugs even though the code...
  2. Replies
    30
    Views
    947

    Re: [RESOLVED] Displaying a jpeg image

    Those people do not know what they're talking about.

    Even if you don't do any GUI or MFC, C++ by itself is not an easy language, and is definitely not a "cut and paste" language.

    Regards,
    ...
  3. Re: New to C++ need help with assignment.

    So what is the question that you have? Just posting the assignment, code, and asking for "hints" doesn't tell us exactly what you are having problems with.

    Regards,

    Paul McKenzie
  4. Replies
    1
    Views
    232

    Re: boost filesystem exception problem

    Yet you only assumed that the only exception thrown are ones that boost knows about.

    First, there is a difference between C++ exceptions, and the Microsoft OS structured exceptions. For example,...
  5. Re: Program runs ONLY if debugger is attached

    It doesn't matter what tool built the DLL or how old the DLL happens to be. You can run DLL's created 15+ years ago with the latest Visual Studio if the DLL's follow certain guidelines.

    If the...
  6. Re: 64 bit compatible library for UUID generator

    1) What version of g++ is it?

    2) Why are you not using the standard library that comes with the compiler? Why are you using STLPort?

    What I'm saying is that STLPort in this day and age is...
  7. Re: 64 bit compatible library for UUID generator

    What compiler are you using where you need stlport?

    Regards,

    Paul McKenzie
  8. Replies
    12
    Views
    443

    Re: Blackjack Game

    Then what is your specific question? You didn't post one. So the only thing to assume is that you want us to debug the program. You didn't state "I'm passing a variable x and it changes for some...
  9. Replies
    12
    Views
    443

    Re: Blackjack Game

    Did you write the program? If so, then you should be responsible for debugging your own programs. What debugging have you done so far?

    Regards,

    Paul McKenzie
  10. Replies
    11
    Views
    757

    Re: problem with arrays in WinApi

    It is an error because it is not ANSI C++ code.

    The code you were attempting is the Microsoft extension of C++ geared toward .NET development. C++/CLI or Managed C++ is what you were using,...
  11. Replies
    5
    Views
    291

    Re: Reading Jpeg pixels and change it

    Just one thing -- manipulating a JPEG file is much more complex than the code you're showing.

    Scroll to the Syntax and Structure section here:
    http://en.wikipedia.org/wiki/JPEG

    Regards,
    ...
  12. Re: Homework help: is this a good design?

    Personally I wouldn't return references in your class. Just return the data.

    The reason is that first, the data in your class represent "simple" things -- a salary, a name, etc. The data isn't a...
  13. Re: Homework help: is this a good design?

    //Employee dtor def;
    virtual Employee::~Employee()
    {
    // if(data) no need for this
    delete data;
    }
    There is no need to check if data is not null to delete it. It is perfectly safe to...
  14. Replies
    4
    Views
    351

    Re: Popping from STL Containers

    That code is not wrong. What *is* wrong is what you're doing with these pointers. If you corrupted memory in any way between the time you created those objects and the time you destroy those...
  15. Re: need C++ programming code in visual studio

    Actually, my technique is to use variables like llll, lllll, llllll (all the letter l), calculations that seemed tricky but were really easy, throw in some ASCII characters that serve as loop...
  16. Re: need C++ programming code in visual studio

    Funny.

    I usually reserve the obfuscated answers for those new posters that demand an answer to their homework problem. I don't know if I can dig it up again from the CodeGuru archives, but the...
  17. Re: [NOOB QUESTION] Really large numbers in C++

    Get a "big number" library. There are many out there.
    No. Assignment overwrites the variable on the left hand side of the equal sign.

    Regards,

    Paul McKenzie
  18. Re: [C++11] - can avoid the class use the array operator?

    No.But what if I want to use it in arrays? What if I have 25 labels, and I want to supply some sort of attribute to each one? Are you saying I must create 25 separate variables??

    Regards,
    ...
  19. Replies
    2
    Views
    224

    Re: Advice on implementing my ANN class

    Get it to run on a single-thread first, and make sure the program is fully tested and debugged before even thinking about multiple threads.

    Regards,

    Paul McKenzie
  20. Replies
    6
    Views
    320

    Re: my own property code

    This shows that writing proper C++ classes takes a lot more thought than just picking up syntax here and there and throwing together a class that happens to compile. Your design is flawed, plain and...
  21. Replies
    6
    Views
    320

    Re: my own property code

    That's your problem to solve.

    What I'm saying is that you are not to use the copy-assignment operator to do this. You are introducing side-effects in an operation that you have no exact control...
  22. Replies
    6
    Views
    320

    Re: my own property code

    Well, you've now made your class almost useless in a real program. You've now introduced side-effects in your copy-assignment operations.

    The purpose of the copy constructor (and assignment...
  23. Re: Reading in Data and Displaying out all Data in Linked List

    The code that GCDEF shows is the classic loop for a linked list -- it should be front and center for this type of coding.

    That's why I stated that you should look into coding the linked list...
  24. Re: Reading in Data and Displaying out all Data in Linked List

    First, your code is generic C++. There is no usage of MFC, ATL, or other technologies related to the Microsoft Visual C++ compiler. The question should go in the Non-Visual C++ forum.

    Second, if...
  25. Re: [win32] - strange effect with mouse leave and mouse enter in cyle way :(

    Let's talk code, and not pictures.

    The reason why an infinite loop occurs is if you process a message, and that message triggers another message, and eventually those messages leads to one or more...
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