printf from DLL

B

bluemooseking

Hi,

I'm using VC++ Express 2005 on a WinXP box. I wrote a little console
program to test out some code I wanted to try. Everything worked
great, but I've tried to turn the console program into a DLL now.
However, when I call this DLL, none of the printf's I've written in my
code execute. I can put breakpoints on the printf's and step though
them... everything seems to work, but the little black window that
used to appear when this was a console program doesn't pop up now to
tell me what's going on.

Can I use printf's from within a DLL?

Jon
 
V

Victor Bazarov

I'm using VC++ Express 2005 on a WinXP box. I wrote a little console
program to test out some code I wanted to try. Everything worked
great, but I've tried to turn the console program into a DLL now.
However, when I call this DLL, none of the printf's I've written in my
code execute. I can put breakpoints on the printf's and step though
them... everything seems to work, but the little black window that
used to appear when this was a console program doesn't pop up now to
tell me what's going on.

Can I use printf's from within a DLL?

Your problem unfortunately cannot be explained in terms of standard
C++ language. You need to ask in the newsgroup where "DLL" is on
topic. I recommend the newsgroup for your OS.

<offtopic>
You changed the executable type from "Console" to "Windows EXE" and
the Windows exe does not have the console windows you're so used to.
</offtopic>

If you need another method for debug printouts, you can always open
some file for append (like a log file), fprintf, and then close it.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,967
Members
47,517
Latest member
Andres38A1

Latest Threads

Top