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

Search:

Type: Posts; User: wheelie

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Thread: IP Addresses

    by wheelie
    Replies
    1
    Views
    1,300

    IP Addresses

    I'm a little confused about how ip addresses are assigned.

    When your average home user signs up to an ISP, they are assigned a unique IP address, which will be from Class C. But Class C only has 2...
  2. Replies
    6
    Views
    860

    Re: Operator delete

    I dont want class specific new/delete operations, I'm just wondering how I would go about using my memory.h overides for all code except some source files. I thought i may be able to do this by jusy...
  3. Replies
    6
    Views
    860

    Operator delete

    With regard to the following code. I have only included Memory.h in ClassA.cpp, but ClassB.cpp still seems to be able to see it. How do i make it so that ClassB does not use the operator new in...
  4. Replies
    33
    Views
    3,646

    Re: C++ Templates: The Complete Guide

    :P

    well ok, but i was meaning the main chunk of the article rather than the introductory stuff, under the title

    Why Not Specialize: The Dimov/Abrahams Example
  5. Replies
    33
    Views
    3,646

    Re: C++ Templates: The Complete Guide

    The 3 functions in that article arent nontemplate functions. And again, im discussing order here, which i believe is the source of confusion.

    If we had a strict rule about template ordering that...
  6. Replies
    33
    Views
    3,646

    Re: C++ Templates: The Complete Guide

    Well the order doesnt seem to matter in Visiual Studio, but Joshuttis specifically mentions that the order does matter



    I think im going to play around with this some more, becuase if the...
  7. Replies
    33
    Views
    3,646

    Re: C++ Templates: The Complete Guide

    Yes, but i believe that problem is not whether main has seen the int version, but whether the max template further up has. Which is why is doesnt work with GCC.

    max(a,b)
    max(a,b,c)
    max(int,...
  8. Replies
    33
    Views
    3,646

    Re: C++ Templates: The Complete Guide

    Hmm, i see what you're saying. But if i was to write




    //void Func1();

    void Func2()
    {
    Func1();
  9. Replies
    33
    Views
    3,646

    Re: C++ Templates: The Complete Guide

    Where did you clear it up? If you're refering to your reply on the using namespace problem, i reposted the code without the using namespace and got the exact same result.



    I thought id been...
  10. Replies
    33
    Views
    3,646

    Re: C++ Templates: The Complete Guide

    i think you're missing the point of my question. Reordering is not a solution, as i shouldnt need to re-order anything to follow along with the book. The problem is not being able to follow along...
  11. Replies
    33
    Views
    3,646

    Re: C++ Templates: The Complete Guide

    It still gives me the same result in vs2008

    inline T const& max (T const& a, T const& b, T const& c)
    inline int const& max (int const& a, int const& b)
    inline int const& max (int const& a, int...
  12. Replies
    33
    Views
    3,646

    Re: C++ Templates: The Complete Guide

    Sorry guys, i do apologise, bad wording on my part. What i meant to say was that the code does compile, but when instantiated, doesn't behave as described by the authors.

    Concerning the above...
  13. Replies
    33
    Views
    3,646

    C++ Templates: The Complete Guide

    Hello,

    I purchased this book hoping to gain a further understanding in templates. But my issue is that, a lot of the code that the book says WONT compile, ... does. Such as the following -


    ...
  14. Thread: Random numbers

    by wheelie
    Replies
    1
    Views
    438

    Random numbers

    Hello,

    Im working on a particle system, where i need to calculate the same random numbers from a given id, each time. The ids are given in order of the birth sequence.

    So

    Particle 1.ID = 0...
  15. Thread: CreateDialog

    by wheelie
    Replies
    1
    Views
    1,181

    CreateDialog

    Ive been using this function fine, but all of a sudden it has stopped working for me, ....and only in Debug??? basically everything works fine in release mode, but when i do a debug build, i get the...
  16. Thread: system fonts

    by wheelie
    Replies
    1
    Views
    927

    system fonts

    Hi,

    Im trying to follow along with charles Petzfold programming windows book, and he says that these fonts are not freely viewable under the

    windows/fonts

    directory, and to use *.FON, but...
  17. Thread: file IO

    by wheelie
    Replies
    1
    Views
    546

    file IO

    I have an OpenGL program that im trying to understand, and i would liike to output the following infomation to a text file so that i can see what is stored in flagpoints [][][0-2]



    // loop...
  18. Replies
    5
    Views
    843

    confused about .net

    Hello,

    Is there anybody who could explain what .net actually is?

    From doing some googling i have discovered that it is a compiler that compilers many languages to a compatible code that runs on...
  19. Replies
    2
    Views
    676

    Re: entering wndprocess

    ok, that makes sence,

    well im just going through random code to see if the cases that i have in my wndprocess are called when i think their called, is their any way of doing this,

    other than...
  20. Replies
    2
    Views
    676

    entering wndprocess

    When debugging, and i come cross a line such as

    UpdateWindow (hwnd) ;

    which will send a paint message, when debugging, even if i press f11 (step into), debug, does not go into wndprocess. Is...
  21. Replies
    5
    Views
    698

    Re: debugging question

    ah yeah of course, i did actually know that, but i temporally forgot it, man i hate it when that happens,

    oh, and i always initialize my variables!, i took this code from a book, so you can't...
  22. Replies
    5
    Views
    698

    debugging question

    could somone tell me why, that when i debug this code line buy line, it jumps over the code specified, although it does create an initialize the code,

    im use to seeing each variable being created...
  23. Thread: handle text

    by wheelie
    Replies
    1
    Views
    641

    handle text

    in the callback function, which case is used to change the window text?

    i have an opengl app, and would like to display the framrate in the app top tab,

    is there some sort of case WM_UPDATE or...
  24. Thread: win32 start

    by wheelie
    Replies
    4
    Views
    785

    Re: win32 start

    thanks fro the replys,

    its not my code, its just code that im learning from a book,
  25. Thread: win32 start

    by wheelie
    Replies
    4
    Views
    785

    win32 start

    im currently beginning win32 programming, and my current program, from a book has 2 main functions,

    LRESULT CALLBACK MyWndProc(HWND MyHandle, UINT message, WPARAM wParam, LPARAM lParam)

    and
    ...
Results 1 to 25 of 45
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured