When I write a code example, it is not meant for you to type it in literally. It for _understanding_ how to use the GetProcAddress mechanism. My example code does not compile and does not use your variables.

I can help you understanding how to use a DLL and download prices, but I can not write pieces of your program.