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

Search:

Type: Posts; User: Steve25

Page 1 of 4 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    13
    Views
    1,217

    Re: Passing by Reference

    Sorry for the late reply.

    Thanks for your help I guess I will have to mess about with them all until I understand because it's all a little bit confusing. I can see the point of it in C++ just not...
  2. Replies
    13
    Views
    1,217

    Re: Passing by Reference

    Thanks for all your replies.



    I'm not sure I understand you when with this part. So far it seems to me that the ref keyword is only really useful when you want to return more than one thing as...
  3. Replies
    13
    Views
    1,217

    Re: Passing by Reference

    Ok so as a general rule if it is a value type like an int or a string then that should be passed by value as normal but if it's an object like a custom class object then it should be passed by...
  4. Replies
    13
    Views
    1,217

    Passing by Reference

    The only time I can see an advantage of passing something by reference is when that variable needs to be changed in the method as well which is quite rare. I know there are differences in passing by...
  5. Thread: Source Control

    by Steve25
    Replies
    4
    Views
    1,132

    Re: Source Control

    Thanks for the info I will give TortoiseSVN a try. I remember using Mercurial a while ago when I did a Java project at college but I haven't yet tried Subversion
  6. Thread: Source Control

    by Steve25
    Replies
    4
    Views
    1,132

    Re: Source Control

    Is there any way of making these run within Visual Studio or must they be used outside of that?
  7. Thread: Source Control

    by Steve25
    Replies
    4
    Views
    1,132

    Source Control

    Sorry if this is the wrong forum but as I mostly do C# programming I thought I'd post here. I was wondering what most people use for source control with Visual Studio 2010 and perhaps point me in the...
  8. Thread: MS SQL Server

    by Steve25
    Replies
    2
    Views
    915

    MS SQL Server

    Unfortunately I had to reinstall my computer due to viruses and previously I had SQL Server installed along with Visual Studio 2008. Being part an IT student we are given certain software from the...
  9. Replies
    0
    Views
    1,294

    Basic Chat Server

    I'm trying to take some of the socket examples a step further and make it into a very basic Java chat server with a GUI. Everything seems to be working fine except for the fact that I'm not sure how...
  10. Thread: Syntax Error

    by Steve25
    Replies
    10
    Views
    1,161

    Re: Syntax Error

    Haha yeah it doesn't feel right to me but I'm thinking this is the best way to do it. To explain why I'm doing it this way let me explain what everything is actually doing.

    The Game class...
  11. Thread: Syntax Error

    by Steve25
    Replies
    10
    Views
    1,161

    Re: Syntax Error

    Right, I've given gamescreen.h a declaration of the Game class and I've given the Game class a declaration of the GameScreen class. I've also made the game variable a pointer and the gameScreen...
  12. Thread: Syntax Error

    by Steve25
    Replies
    10
    Views
    1,161

    Re: Syntax Error

    My game.h file now includes the following code:


    #ifndef GAME
    #define GAME
    #include <d3d9.h>
    #include "gamescreen.h"

    class GameState;
  13. Thread: Syntax Error

    by Steve25
    Replies
    10
    Views
    1,161

    Syntax Error

    I'm trying to make a tetris clone game in C++ as a way of trying to learn game programming and I've come across an odd error which I can't fix. The Error list gives the following 2 errors which are...
  14. Thread: Atom

    by Steve25
    Replies
    3
    Views
    706

    Re: Atom

    Yes I do and before you ask yes I used them but it wasn't obvious what I should be reading as I found all kinds of random Atom based responses but nothing to do with the type. Thanks for the link
  15. Thread: Atom

    by Steve25
    Replies
    3
    Views
    706

    Atom

    I'm reading a book which has the following function declaration:

    ATOM MyRegisterClass(HINSTANCE);

    But I can't seem to find out what ATOM is or what it's used for. Could anyone explain to me...
  16. Replies
    7
    Views
    1,023

    Re: Pointer Problem

    Ok I understand thanks for your help :)
  17. Replies
    7
    Views
    1,023

    Re: Pointer Problem

    Isn't it good practice though to set all pointers to zero making them null pointers? I thought you were able to do that using the code I posted
  18. Replies
    7
    Views
    1,023

    Pointer Problem

    I apologise if I am being a complete idiot but I have looked this over with a book and several websites already and still I am getting a problem with this very small program on pointers. The error I...
  19. Replies
    2
    Views
    669

    Re: Strange Compiling Error

    Here's the entire code and no I haven't done that yet although mostly I think it's happening in the loop


    #include <Windows.h>

    //Function delcarations
    LRESULT CALLBACK WinProc(HWND hwnd, UINT...
  20. Replies
    2
    Views
    669

    Strange Compiling Error

    I'm getting a problem with compiling a simple Win32 program. I've recently just installed Visual Studio 2010 and a project that used to work in 2008 now doesn't in 2010. The code is the same so as it...
  21. Replies
    14
    Views
    7,370

    Re: Repeating a SwingWorker

    Worked perfectly and does everything I wanted, many thanks for your help! I only have one last question, when the loop ends and it exits the run() method is the thread cleared up as normal? In other...
  22. Replies
    14
    Views
    7,370

    Re: Repeating a SwingWorker

    Ok thanks I'll give this a try
  23. Replies
    14
    Views
    7,370

    Re: Repeating a SwingWorker

    So basically what you're saying is its going to be no different from what I'm trying to do now? I've never actually heard of an ExecutorService, looks like I'll need to look that one up
  24. Replies
    14
    Views
    7,370

    Re: Repeating a SwingWorker

    Ok here is the thread class that I created a while back. In the other class where the SwingWorker is it was replaced with:


    Thread playerThread = new Thread(new LoopsPlayer(tune, player));...
  25. Replies
    14
    Views
    7,370

    Re: Repeating a SwingWorker

    I guess I understand that but I have already tried creating my own thread and running it from there and it still freezes the application. I've still got the code for the thread class if you need to...
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured