Anyway it is not a directx forum it is a vb.net forum
The code is VB.NET, I used P/Invoke mainly to call ID2D1RenderTarget.DrawLine in a loop to draw the sine
It was to show the OP that VB6 is not better/faster/... as he said in several threads
VB.NET + Direct2D is even as fast as C++ on my (slow) PC without real graphic card (Intel(R) HD Graphics
)