By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,512 Members | 1,701 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,512 IT Pros & Developers. It's quick & easy.

printf from DLL

P: n/a
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

May 25 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
bl***********@gmail.com wrote:
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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
May 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.