Are you using native VC++ or some .NET technology (like CLI and so on)? If latter - then ask it in the Managed C++ and C++/CLI forum.
If the former - show your code (don't forget using Code tags)...