Results 1 to 5 of 5

Thread: Pixel Plotting with a Pointer - Problem [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Junior Member ISDP's Avatar
    Join Date
    Mar 2002
    Posts
    28

    Question Pixel Plotting with a Pointer - Problem [RESOLVED]

    Hi,

    After reading this thread: http://www.vbforums.com/showthread.p...hreadid=209455 I found a link to the following site, which describes how to use a pointer as the fastest way to plot single pixels: http://rookscape.com/vbgaming/tutAY.php , but I'm having some problems with it.

    At the beginning it declares the variable 'sa' as a 'SAFEARRAY2D' to store the image's data in, but when the data has been assigned and the CopyMemory function is used, with the variable 'sa' as the source of the data, I get the following warning:

    Compile Error:

    Type mismatch: array or user-defined type expected

    If anyone could take a look at the code in the link and see why it might be doing this I would be very greatful,

    Thanks,

    ISDP
    Last edited by ISDP; Dec 22nd, 2002 at 05:47 AM.
    "Mmm, so I hear they have the internet on computers these days..."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width