Search:

Type: Posts; User: MisterT

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,634

    Damn straight I would! And BTW, it's MisterT,...

    Damn straight I would!

    And BTW, it's MisterT, not Mr.T, to avoid certain copyright violations!
  2. Replies
    6
    Views
    2,634

    My newest release

    Hey all.

    I just wanted some comments on my newest freeware release.

    It's called FoxyBox, and it's a frontend for DOSBox, written in C# and .NET 2.0.

    All comments, pro's and con's are very...
  3. Thread: Startup path.

    by MisterT
    Replies
    3
    Views
    1,361

    Thanks a lot! Sorry about posting in the Windows...

    Thanks a lot!
    Sorry about posting in the Windows forum,
    I'm kinda new here..
  4. Thread: Startup path.

    by MisterT
    Replies
    3
    Views
    1,361

    Startup path.

    Greetings.

    Google wouldn't find me an answear so I thought I'd ask you guys:)

    Using c++, i need to get the path my console app runs from.
    Now, I know a lot of you are thinking: just supply the...
  5. Replies
    7
    Views
    6,199

    I know, but consider this: bool...

    I know, but consider this:


    bool someMethod<T>(T a, T b)
    {
    if ( a.Equals(b) )
    {
    Console.Writeline("Hooray!");
    return true;
    }
  6. Replies
    7
    Views
    6,199

    Comparing values of generic types

    Hi all!

    Consider the following sample:



    public abstract class SomeClass
    {
    // checks equality of each member in two arrays.
    public static bool ArrayEquals<T>(T[] a, T[] b)
  7. That's what I thought too. Just wanted to hear...

    That's what I thought too. Just wanted to hear other people's opinions.

    Thanks guys! :D
  8. Using 'new' to replace GetType() when using generics

    Greeting.

    I'm doing a project with a heavy amount of generics, and I was wondering what your opinions were on replacing GetType() on generic classes, like in the following example;



    class...
  9. Back buffering with GDI and System.Drawing.Graphics

    Greetings!

    I'm doing a simple game in C# where I'd like to use back buffering with GDI and System.Drawing.Graphics.

    I get the Graphics object from Control.CreateGraphics():
    Graphics myGFX =...
  10. Thread: DLLs in c++

    by MisterT
    Replies
    4
    Views
    1,192

    anywhere I can find a tutorial on how to do this?

    anywhere I can find a tutorial on how to do this?
  11. Thread: DLLs in c++

    by MisterT
    Replies
    4
    Views
    1,192

    DLLs in c++

    in C#, you can import function from DLLs like this



    [System.runtime.interopServices.DLLImport("win32.dll")]
    public extern int MessageBox(........);


    how do I do this in c++?
  12. Replies
    19
    Views
    3,734

    No properties in c++?

    As far as I can see, c++ does not implement properties... At least not the way c# does?!


    //in c# you can define properties like this
    int myProp
    {
    get { return xxx; }
    set { xxx = value; }...
  13. Replies
    6
    Views
    1,007

    use pointers; #include #include...

    use pointers;


    #include <cstdlib>
    #include <iostream>

    using namespace std;

    int main()
    {
  14. Thread: Object names

    by MisterT
    Replies
    17
    Views
    1,713

    Thanks all.. I've to go to bed now pleasant...

    Thanks all.. I've to go to bed now pleasant dreams!! :)
    duh

    zzzzzzzzzzzzzzzzzzzz
  15. Thread: Object names

    by MisterT
    Replies
    17
    Views
    1,713

    Ok.. Consider this: class Fun...

    Ok.. Consider this:



    class Fun {...............} fun; // <-- this defines a global Fun??

    fun.howFun = 10; // this is the global Fun??

    Fun fun; // and this creates a freshly baked...
  16. Thread: Object names

    by MisterT
    Replies
    17
    Views
    1,713

    Yes. my face is red. Changed it now

    Yes. my face is red. Changed it now
  17. Thread: Object names

    by MisterT
    Replies
    17
    Views
    1,713

    Ok thanks I get it now... But one more thing;...

    Ok thanks I get it now...

    But one more thing;


    class Fun {
    public:
    int howFun;
    } fun; //
  18. Thread: Object names

    by MisterT
    Replies
    17
    Views
    1,713

    Ok listen... I guess you all think I'm ignorant...

    Ok listen... I guess you all think I'm ignorant because of my question there but you didn't quite get my point;

    I've been programming for years and I know what object names are for.. but, however,...
  19. Thread: Object names

    by MisterT
    Replies
    17
    Views
    1,713

    Object names

    consider the following sample


    class CmyClass
    {
    int someInt, otherInt;
    } myClass;


    what is the myClass name actually for? does it even serve a function?
Results 1 to 19 of 19