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

Search:

Type: Posts; User: KezRst

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Thread: Simple Program

    by KezRst
    Replies
    4
    Views
    743

    Re: Simple Program

    Thank you! I would not have thought to look up that particular part of the error message, since so much of it looked like Greek to me.
    Scrolling down a few posts I found someone who had the exact...
  2. Thread: Simple Program

    by KezRst
    Replies
    4
    Views
    743

    Re: Simple Program

    Oops, that's just a typo. I have double checked to make sure that the spacing of the array is correct. I also boiled it down to a single dimensional array at one point, and still got the same error.
  3. Thread: Simple Program

    by KezRst
    Replies
    4
    Views
    743

    Simple Program

    I made this program to duplicate an error I'm receiving. When I run the program I receive:


    Snake.obj : error LNK2019: unresolved external symbol
    __imp___CrtDbgReportW referenced in function...
  4. Replies
    2
    Views
    591

    [RESOLVED] Win32 App error upon exiting?

    Hello again!

    I've continued to work on a text based RPG I've been making progress on just for practice. I've come up with this problem though that I have searched for everywhere, and can't seem...
  5. Thread: const pointers

    by KezRst
    Replies
    3
    Views
    663

    Re: const pointers

    I think I have found my solution to this problem. Finding the solution though brought up a lot more questions. After some more searching I found there is a difference between 'pointer to a const...
  6. Thread: const pointers

    by KezRst
    Replies
    3
    Views
    663

    const pointers

    Hello!

    I have a question about constant pointers. I am aware that with regular pointers, you can access the memory addresses next to a certain memory address to handle arrays/vectors, etc. such...
  7. Replies
    8
    Views
    711

    Re: Beginner Help

    Well with all that in mind I'ma keep working on it. :)
    Thanks a ton for your help!
  8. Replies
    8
    Views
    711

    Re: Beginner Help

    Alright. So instead of making globals just passing a reference or pointer to the function is better in terms of checking if the function ran as expected.



    Ah! I got so caught up in new/delete...
  9. Replies
    8
    Views
    711

    Re: Beginner Help

    That makes sense. In that case I suppose my example could just be stored on the stack. Because it is defined as a global variable it's scope is large enough that everything which needs to access it...
  10. Replies
    8
    Views
    711

    Re: Beginner Help

    So it seems like it's essentially a balancing act between speed (new/delete) and the safety/simplicity of the code (using scope to define variable lifetime) in order to make sure a bunch of new's...
  11. Replies
    8
    Views
    711

    [RESOLVED] Beginner Help

    So a couple days ago I posted on the forums questions I had about pointers...how they work and why they are used. After reading your responses and trying it out for myself, I've come to understand...
  12. Replies
    12
    Views
    1,171

    Re: Beginner Pointer Questions

    Let's see if I can understand this.
    Instead of passing the argument by value, we're passing an address of the variable. But since we want it to act like a pass-by-value, it is const so that if it...
  13. Replies
    12
    Views
    1,171

    Re: Beginner Pointer Questions

    That use for the pointer is starting to make a lot more sense. 'Cause I can see how passing an address, rather the passing an entire image class type object is a lot less CPU intensive. And you get...
  14. Replies
    12
    Views
    1,171

    Re: Beginner Pointer Questions

    Thanks :)
    Not to rush my understanding of this because I know it's not something you master in a few minutes, but I decided to do a test of pointer-to-class to see if I could get it to work. Here's...
  15. Replies
    12
    Views
    1,171

    Re: Beginner Pointer Questions

    So had that been a long double, or some large user-defined class type, rather then an int, the only difference would be speed since you're passing an address instead of a number which occupies a lot...
  16. Replies
    12
    Views
    1,171

    Beginner Pointer Questions

    From everything I've read (and I've read a lot, I've been from tutorial to tutorial and many different books) pointers and references are one of the most difficult concepts for new programmers to...
  17. Replies
    6
    Views
    966

    Re: Learning C++ Simple Question

    Okay yeah, this makes sense. :)
    Thanks for clearing that up!
  18. Replies
    6
    Views
    966

    Re: Learning C++ Simple Question

    So in your example, putting #include "Windows.h" in every source file causes it to compile that header once for each source file. So you'd end up compiling "Windows.h" hundreds of times.
    Then you...
  19. Replies
    6
    Views
    966

    [RESOLVED] Learning C++ Simple Question

    I'm still learning C++ by reading a couple different books and using Visual C++ to compile test source codes.
    I have a question though, why is it that in every example of source code that I have...
  20. Replies
    3
    Views
    674

    Re: Learning C++!

    There we go, thanks :)
    Obvious what my problem was that vector is part of the standard library just like I would have to say std::string or bring namespace std into scope by 'using'

    Thank you...
  21. Replies
    3
    Views
    674

    [RESOLVED] Learning C++!

    I am learning C++ by a few different resources, and have been working on the fundamentals for about a week. One of them is a book I found called C++: A dialogue. It has helped me a lot and I've...
  22. Replies
    3
    Views
    613

    Re: Dynamically calling a variable/attribute

    You are both right and I appreciate your opening my eyes to the fact that I should learn in a more structured fashion. :)
    When I learned from scratch GS2 which was a built-in scripting language, I...
  23. Replies
    3
    Views
    613

    Dynamically calling a variable/attribute

    Hi! So I wasn't sure whether to start a new thread or not but this is an entirely different topic from my first so I figured I would.
    From my last post, I decided to learn to use classes so I got...
  24. Replies
    9
    Views
    949

    Re: String/Chars in C++

    Declaring a class would be nice so I can just return objects.
    So if I create a class 'Rooms' for example, and one of it's objects is Room_100 then returning Room_100 would allow the function which...
  25. Replies
    9
    Views
    949

    Re: String/Chars in C++

    Alright. So I looked at Boost.Assign which, some of it I can comprehend and some of it I haven't dealt with yet. Are there any examples out of how I could use std::vector to manipulate arrays? ...
Results 1 to 25 of 27
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured