If you are debugging and you attach to process with MicroStation, you can use
OutputDebugStringA("text");
Which will print text and variables visual studio's output window.
OutputDebugStringA("text");
Which will print text and variables visual studio's output window.