Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Member Since 06 Oct 2010
Offline Last Active Dec 16 2014 11:57 PM

Posts I've Made

In Topic: Tagging the OP

16 December 2014 - 11:58 PM

Yeah, okay I see your point(s) :)


Just thought it would be helpful.


Keep up the good work!


In Topic: Tagging the OP

16 December 2014 - 01:32 PM

I beleive it would help people keep track of the person who asked the question.


Personally I have forgotten the name of the OP, so I have to periodically go to the first post.


But, yeh it may not be of much use.

In Topic: So what's everyone been up to?

06 December 2014 - 11:20 AM

Is there an ETA on the release date?


And I agree with YodamanJer, That looks Cool!

In Topic: Files

06 December 2014 - 11:16 AM

1. If I write  DATA1 that contains 4bytes for example and I want to return later and write exactly after that DATA1 i set the FilePointer to the sizeof(DATA1 ) of the sizeof(DATA1 ) + 1?

That seams right to me, But you could use some dummy data and a hex editor.

I use HxD to check my binary files.


2. WriteFile(  ... (char*)users[0] , sizeof(int)*users_number ) will start to write from element 0 to the last element of the vector because of the sizeof that tells where to stop or because the & operator? What about if I want only to write a single element to the file (like in the last line of the code) it will be ok (char*)sizes[0] or (char*)&sizes[0] with smaller size to write specified in the WriteFile argument ?

That would treat the value of users[0] as the char pointer.

And it would write as many bytes as you tell it to, Which you set correctly.




Some nitpicks:


I would advise you use C++ cast operators( static_cast, dynamic_cast, reinterpret_cast ) instead of C syle as they are searchable and I find them more readable.


Why does the "WriteFile" function have so many parameters?, Could you not just do the same as std::fstream( pointer, byte count ) ?



In Topic: What heap wil dynamic memory be created on

25 November 2014 - 02:20 PM

Thanks alot guys, This has pretty much cleared everything up.


Now, I need to review some content loading code because I have kinda made a mine field...