Yeah, this took me a good hour or so to figure out. Sam's Teach Yourself VC++ in 21 Days was teaching me wrong =p.
I was trying to figure out how to export some simple functions, so that I could begin writing JBBECore.dll, to ease the eventual complete move to VC++ over VB. Anyhow, I exported the VC++ MessageBox(HWnd, LPCSTR, LPCSTR, UInt) function (its just a wrapper, but oh well?) and an Addition(int, int) function I wrote. I also have a VisualBasic program that will call MessageBox() with "Hello World", then call it again with the result of adding 1+1. The DLL tells you when a process attaches/detaches itself to you (thats the DLL itself, not VB). Full source code is included.
http://www.javaop.com/~joe/VC++/DLL.zipEDIT -
Omg grammar fix.