I\'m using C++/CLI on Visual C++ 2008 Professional, and since I\'m using Windows Forms that means I have managed code and I\'m trying to call the static function LoginAccounts,
See my answer to your another question at Calling PThread from Windows Form Class to a function inside the Windows Form Class You can use the same principle detailed there.