   Loading texture with C++.net and Managed DirectX error
  Hi,I'm having a 'mysterious' error. I'm using this very simple function to open a texture in my program:TextureLoader::FromFile(pDevice, pFile);where 'pDevice' is the Direct3d device and 'pFile' is a String with the file path. This works perfectly on my machine running WinXP, however on the machine of a friend running WinME this results in the 'D3DXERR_INVALIDDATA' exception.This was odd so I tried a couple of things and discoverednew Texture(pDevice, new Drawing::Bitmap(pFile), (Usage)0, Pool::Managed);does work, even though they virtually do the same thing (even though the later is terribly unhandy and slightly slower).Does anybody have any idea why the first function should crash, even though our .DLL version numbers are identical?The image is a 1024×1024 .jpg file.Hope to hear from you,-Jeroen   
  99% of the time this is due to the fact that the person either doesn't have managed directx installed on his machine or the .NET1.1 or higher framework. If you have properly checked if the texture source string is correct and the device is not null you have the above mentioned problem. Make sure the person has the correct Managed DirectX runtimes installed. Refer to this thread on the MSDN forums and this article on distributing Managed DirectX applications.I hope this helps.Take care.   