Cole
Newbie
- Joined
- Jan 19, 2004
- Messages
- 6,427
- Reaction score
- 1
This has nothing to do with HL2, but I havn't been used C++ in a very long time and I got a dll that basically opens a Starcraft MPQ file and then opens the chk file and write it all to a buffer.
I was wondering how to exactly read this information.
LPVOID lpBuffer; - The Buffer
lpBuffer = new BYTE[SFileGetFileSize(hFile, NULL)]; - Setting the buffers size to the proper size.
Currently I just write it to a file, but I need to get this data to a C# application. I've got C++ dll and C# working in the same sanbox. Now I'd rather not write it to a file and read it all in C++ and then send my own data to my C# application as a string or integer.
I'm just asking for a simple function to read it.
I was wondering how to exactly read this information.
LPVOID lpBuffer; - The Buffer
lpBuffer = new BYTE[SFileGetFileSize(hFile, NULL)]; - Setting the buffers size to the proper size.
Currently I just write it to a file, but I need to get this data to a C# application. I've got C++ dll and C# working in the same sanbox. Now I'd rather not write it to a file and read it all in C++ and then send my own data to my C# application as a string or integer.
I'm just asking for a simple function to read it.