Jump to content
  • Advertisement

Archived

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

intrest86

VB and DrawPrimitiveUP

This topic is 6126 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

Every time I call DrawPrimitiveUP VB closes down, without giving me a chance to get the error from DirectX. I am running VB6 SP5... Any Ideas? If one person would write a book on DirectX in VB, I would make them a rich man!

Share this post


Link to post
Share on other sites
Advertisement
Visit http://64.23.12.52//Tutorials/DirectX8/GR_Lesson03.asp and take a look. There is an example of DrawPrimitiveUP in action as well as working code to download. The site has heaps of really good tutorials to get you started.

Share this post


Link to post
Share on other sites
I have no idea why your code doesn''t work, but it''s highly recommended that you don''t use the ...UP functions anyway.

I haven''t used VB in a LONG time, but I would guess that VBs notion of a pointer is different than what the ...UP functions want. At least that was the sort of thing that got me to stop using VB long ago

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!