Archived

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

intrest86

VB and DrawPrimitiveUP

Recommended Posts

intrest86    742
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
bahos    122
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
CrazedGenius    156
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