Thread: Help

Results 1 to 3 of 3
  1. #1
    kilerpro's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    1
    Reputation
    7
    Thanks
    0

    Help

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace ConsoleApplication1
    }
    class Local
    {
    public:
    	char unknown0[20]; //0x0000
    	LocalCoord* first; //0x0014  
    		
    };
    
    class LocalCoord
    {
    public:
    	char unknown0[16]; //0x0000
    	D3DXVECTOR3 pos;
    	char unknown28[24]; //0x001C
    	Ent* pEnt; //0x0034  
    	char unknown56[140]; //0x0038
    	LocalCoord* pNext; //0x00C4  
            LocalCoord* pNext; //0x00C8//this one is better i think atm
    };
    
    
    
    class Ent
    {
    public:
    	Type* pType; //0x0000  
    		
    };
    
    class Type
    {
    public:
    	char unknown0[8]; //0x0000
    	char ObjType[16]; //0x0008  
    		
    };
    Help please understand that your code is wrong? I can not collect the code to make it work in your application

  2. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    1. Your language (English?) is difficult to understand.
    2. Your braces are the wrong way round. You've got:
    Code:
    namespace
    }
    with an close brace instead of an opening brace, and no closing brace at the end.
    3. You can't combine C# with C++. It just doesn't work.
    4. D3DXVECTOR3 isn't defined
    5. You can't use pointers without declaring it as unsafe in C#.
    Last edited by freedompeace; 06-03-2011 at 04:44 AM.

  3. #3
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    What a brainfuck code you just created.

    This is C##
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  4. The Following 2 Users Say Thank You to 'Bruno For This Useful Post:

    cfsharp (06-03-2011),Melodia (06-03-2011)