Original Post
Hey i want to create a program that does alphablending RealTime i know there are other code samples but i need this specific to my request i have made a code that goes pixel by pixel in visual basic manipulates them then updates the image after testing the code and performing comparisons the only part slowing my code down is the logic now i've tried the same logic in c++ and the speed i get is perfect just the problem is i want to code this in Visual Basic i know i can make a C++ DLL and call from that but i don't know how to pass an Array of bytes that c++ can manipulate and send them back just some specs on the VB code i can draw a 804 by 564 24 bit image 213 Times a second when i set it to alpha it drops to it draws 804 by 564 24 bit image 2 times a second significant performance hit however this hit is nowhere to be found done under C++ so is there anyway i can pass an array to c++ that visual basic won't constantly check when c++ modifies it or like copy a vb array based on its pointer to another 1 (done in c++) manipulate it then copy back over the old pointer?