Jump to content

  • Log In with Google      Sign In   
  • Create Account

greenpig83

Member Since 28 Jul 2012
Offline Last Active Aug 21 2014 02:51 AM

Posts I've Made

In Topic: Creating dynamic? textures.

25 February 2014 - 03:39 PM

Using D3DPOOL_MANAGED is nice because when you reset your graphic  (fullscreen ->windows, change resolution...) you dont have to worry about the Texture. Otherwise you will have to relase and recreate all the texture you loaded!


In Topic: How did you learn C++?

22 February 2014 - 09:54 AM

Yeah, never learn the lang alone. But learn it to do something! But as a pro programmer. I still think that searching skill is the most necessary thing. Sometime u dont need to know the lang to do the job. Just know what you want to do, and most the time, someone on the net did it already, or some part of it. Search it, download, build it, then tweak to see what it do (Instead of read the code, understand every line, then write your own! ). Because the code already running, so change something to see how it work is very easy to understand . That's the fastest way for me. Although if you write it your own u can understand it better, unless you are a student and have a lot of time to spend!


In Topic: How did you learn C++?

21 February 2014 - 04:11 AM

C++ is not that hard in dos time. When I learn pascal and then move to C++, it's not that different. Because in Pascal u still can use OOP...

But things get so headache when windows release! To write a hello world app (with form) , it need 100-200 code line...No internet, only thick book, that really scare me. Sometime I just type 1-> 2 page of code then run to see what it really does. 

 

Now it's a lot more easy, we have tons of sample, tutorial on net, that no need to type anything at all, just build and see what happen ! 


In Topic: What can you use C# for?

20 February 2014 - 11:52 PM

I use c# for tool. Its fast for windows app like mfc and visual basic. Very easy to code!
So easy that i dont need a book to learn, its too similar to vb and java.

In Topic: Binary to Integer (Read hex binary file)

19 February 2014 - 04:06 PM

Wow, never think of that. I just think inside the box that it must be integer!

I'll try and see if it's right ! Spend hours to figure a very simple thing sad.png

 

Yeah. that it ! Using C# it's more simple !

 

byte []t={0,0,32,65};
float myFloat = System.BitConverter.ToSingle(t, 0); //-> return 10
 
Because the game only let me input integer value, so I think that it's integer !

PARTNERS