You don't need com to use it... you can link with libraries.

  ----- Original Message ----- 
  From: Thomas Hruska 
  To: [email protected] 
  Sent: Saturday, February 28, 2009 2:50 PM
  Subject: Re: [c-prog] DirectX and Access Violation


  Michael Sullivan wrote:
  > I have been trying (futilly I might add) to learn DirectX. I thought I was
  > making progress today, but I can't figure this out. I have four images that
  > I want to draw on the back buffer. I know that they should be used as
  > sprites, but right now I just want to display them to the back buffer. I
  > have successfully displayed one to the back buffer, but when I altered the
  > code to dsplay the others too I started getting Access Violations. What is
  > an access violation anyway? I've been searching the internet all day trying
  > to find a simple definition of what causes it, but all I've found were very
  > specific cases. The code compiles and links correctly:

  While I've not used any portion of DirectX, I do know it is heavily 
  steeped in COM. Which isn't really "direct" by any stretch of the 
  imagination.

  You should first find something simpler to work with that involves COM 
  to get a feel for how that bit of technology works. Diving right into 
  DirectX is asking for a double-whammy. DirectX is fairly fragile from 
  my perspective as a gamer AND developer. While I've not written 
  anything myself, I've helped debug several applications that did use it 
  - crashes within DirectX typically smash the stack and render the 
  debugger useless. The problems ultimately stem from the abuse of COM 
  for something it shouldn't be used for (high-performance 3D 
  applications). Make sure you are creating objects and destroying them 
  properly. Then make sure you aren't overstepping array boundaries anywhere.

  -- 
  Thomas Hruska
  CubicleSoft President
  Ph: 517-803-4197

  *NEW* MyTaskFocus 1.1
  Get on task. Stay on task.

  http://www.CubicleSoft.com/MyTaskFocus/



  

[Non-text portions of this message have been removed]

Reply via email to