VB6 doesn't load DirectX meshes under Vista

Hi

Trying to move from XP to Vista and making my old VB6 code work, I see VB6 IDE is not able to load .x forma files. For example the tut06_meshes tutorial that shows how to load a tiger.x model gives an error when trying to load it

Set g_Mesh = g_D3DX.LoadMeshFromX(App.Path + "\Tiger.x", D3DXMESH_MANAGED, _
g_D3DDevice, Nothing, MtrlBuffer, g_NumMaterials)

however the .exe works well.

Thank you for any help.

[459 byte] By [JSaiz] at [2008-1-4]
# 1

JSaiz,

In .NET Framework and VB.NET, you can use DirectX meshes in the following way:

How to: Display and Select Meshes

http://msdn2.microsoft.com/en-us/library/ms229645.aspx

Since the application is developed in VB6, I recommend you to post the question in the following links for further support on the issue:

  • Visual Basic 6 Newgroups
  • Visual Basic 6.0 on MSDN Library
  • MSDN Visual Basic 6.0 Resource Center
  • VB City
  • VB-Helper
  • VB Forums
  • CodeGuru
  • Code Project
  • Planet Source Code
  • BrunoYu-MSFT at 2007-10-3 > top of Msdn Tech,Visual Basic,Visual Basic Interop and Upgrade...