Firejack
Jun 20th, 2002, 08:02 AM
Heres one thats bin confusing me for ages and I really dont know whats up:
I'm trying to write a .x file using the RegisterTemplates function, you'll find it in the DX8 SDK. Its really not the most complicated fujction in the world, and I've got it working fine in C++, but whenever I try to pass a string to it in VB it comes back with an invalid file error. This is stupid as I'm passing it EXACTLY the same string as the one in C++.
Ive tried putting the string into an array and passing that, passed it binary strings, binary strings in arrays, loads of stuff but I CANNOT get the infernal thing to work. I'm gonna have to write a C++ dll just so I can use this function from vb. If anyone knows how to get it to work PLEASE put me out of my misery.
The SDK says it accepts the template as 'Any'. It lies. :D
Thanks in advance,
FJ
I'm trying to write a .x file using the RegisterTemplates function, you'll find it in the DX8 SDK. Its really not the most complicated fujction in the world, and I've got it working fine in C++, but whenever I try to pass a string to it in VB it comes back with an invalid file error. This is stupid as I'm passing it EXACTLY the same string as the one in C++.
Ive tried putting the string into an array and passing that, passed it binary strings, binary strings in arrays, loads of stuff but I CANNOT get the infernal thing to work. I'm gonna have to write a C++ dll just so I can use this function from vb. If anyone knows how to get it to work PLEASE put me out of my misery.
The SDK says it accepts the template as 'Any'. It lies. :D
Thanks in advance,
FJ