|
-
Nov 23rd, 2006, 03:24 PM
#1
Thread Starter
Frenzied Member
need help with a struct/memory
I need a struct that will contain a memory address, and a variable number mixed type variables.
typedef struct
{
LONG ExAddress;
LONG SizeVar;
????? Var????;
} EXDAT, *PEXDAT;
the var part will actually need to be a struct also
typedef struct
{
string typeName;
LONG/DOUBLE/??? typeMemValue;
} VARDSCR, *PVARDSCR;
my C++ is as always rusty; so I have completely forgotten how to work with dynamic arrays....
this struct is going to be used for cross process comunication by alloc space in target process and then writing the struct to it. The code that uses the struct will be thread injected imediable after the struct in mem allowing it to find it's location by the size of the struct...
I don't need help with the inection or anything at this point just can't remember how to do the array.. and I could use info on storing the actualy memory value in either some numeric type or an LPVOID or...?
Thanks for any help in advance.
Magiaus
If I helped give me some points.
-
Nov 23rd, 2006, 04:01 PM
#2
Thread Starter
Frenzied Member
Re: need help with a struct/memory
Ok, I have found a bit of helpful info on vectors\std::vector; maybe this will solve part of my problem
Magiaus
If I helped give me some points.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|