xXIanXx
2007.06.09, 11:26 AM
I am trying to use a PEF shared library. I think I've gotten it to work but the function I'm using breaks at exe_bad_access. I am using GetDiskFragment and FindSymbol then running it through a CFM to Mach-o function.
This is the function in windows and it's the same in the mac library am I converting it to C right?
BOOL WINAPI SFileOpenArchive(LPCSTR lpFileName, DWORD dwPriority, DWORD dwFlags, HANDLE *hMPQ);
//mac
bool SFileOpenArchive(const char* lpFileName, short dwPriority, short dwFlags, void *hMPQ);
After I run openArchive which is the symbol I'm trying to use it breaks at the function openArchive in the debugger:
openArchive(charTest,0,0,testVoid);
I think it's the void I'm sending in it has to be a tvector right? How do I do that?
This is the function in windows and it's the same in the mac library am I converting it to C right?
BOOL WINAPI SFileOpenArchive(LPCSTR lpFileName, DWORD dwPriority, DWORD dwFlags, HANDLE *hMPQ);
//mac
bool SFileOpenArchive(const char* lpFileName, short dwPriority, short dwFlags, void *hMPQ);
After I run openArchive which is the symbol I'm trying to use it breaks at the function openArchive in the debugger:
openArchive(charTest,0,0,testVoid);
I think it's the void I'm sending in it has to be a tvector right? How do I do that?