Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

EnochDagor

D3DTLVERTEX to System.IntPtr Conversion in VB.NET

This topic is 5718 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, I have an older project that I''m trying to convert from VB6 to VB.NET. One line of code I have is: Dev.DrawPrimitive(DxVBLib.CONST_D3DPRIMITIVETYPE.D3DPT_TRIANGLESTRIP, DxVBLib.CONST_D3DFVFFLAGS.D3DFVF_TLVERTEX, oVerts(0), 4, DxVBLib.CONST_D3DDPFLAGS.D3DDP_DEFAULT) The oVerts is an array of D3DTLVERTEX. In VB6, I just passed the first elem as the pointer to the array. What do I do now? -Enoch Dagor

Share this post


Link to post
Share on other sites
Advertisement
I think that it works the same in VB.NET, I don''t know where your problem is. However, if you want my opinion, go for DX9 & VB.NET if you want to stay in VB. The managed interface the new API has makes programming in C# and VB.NET easy, not as with DX8 and .NET languages.

Good luck.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!