Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 28 May 2011
Offline Last Active Aug 29 2012 07:51 PM

Topics I've Started

c++ byte arrays how to output

29 August 2012 - 04:27 PM

I have kind of a problem. This is the first time I have encountered a binary byte array and I need to output it to the screen.

typedef structure binary_byte_array{
UINT32 size;
UINT8 *data

Size is how many bytes are in the array.
*data is a pointer to the start of the data.

In the data is a file location. For example it will contain something like c:/something/somefilename.exe.

I need to be able to output the file location stored in the data. I know how to read binary data from files, but I am kind of stuck on how to read it stored in this kind of array. I am also confused how I would output it to the screen, do I need to convert it from binary to ascii char's?

The data is written in 4 byte blocks right? (The size of a UINT8) Or is that just the size of the pointer?

Thank you for any help. Microsoft uses this data type for some of their internal workings,

win32 dialog question

12 August 2012 - 10:26 AM

In the wm_create of my window callback procedure I am calling createdialog() to open a dialog window.

When the function is called my main window dissappears and the dialog takes its place.I have my main window set as the parent.


I want my dialog and the main window open at the same time. When I close the dialog with enddlg() the main window comes back.

I can open the dialog through a menu and they both appear but if I use wm_create it doesn't.

visual studio intellisense/warning upgrade for 2005 to bring closer to 2010?

10 August 2012 - 09:50 AM

Visual studio 2010 has a neat feature that when you pass a argument into a function it tells you with a red squiggly line that you haven't passed the right type. Very useful.

The problem is that I only have visual studio 2005 that has intellisense and warnings from the stone age in comparison.

Does anyone know any addin's that upgrades 2005 to have this specific functionality?

I can't use visual studio express because I need the resource editor, among a few other things.

c++ initiliazation what do you call it

10 August 2012 - 06:11 AM

When you make a call like

UINT32 a = null, b;

What do you call that? I have noticed it in some code and I have never seen an initiliazation like that before. Visual C++ btw if it matters.