Writing a PocketPC program that reads from a couple files using CreateFile. I am able to create two files and write to one no problem when neither file exists. When either or both files exist, they open fine but when I use the new operator at anytime there after I get a runtime error about a byte alignment. I've tried playing with using unicode and multibyte and have tried playing with #pragma pack but no luck.
// This is a function inside a file i/o class I was creating, it is currently set up for multibyte because I haven't switched it back to unicode
bool CE_FSTREAM::Open(char *file, byte fmode)
unsigned int i = 0, x = 0, y;
wchar_t *tmpFile = NULL;