Discussion:
ddkbuild.cmd -- #pragma message -- not showing on visual studio OUTPUT window
(too old to reply)
Raj
2007-11-04 03:11:41 UTC
Permalink
Hi All,

I have been using this great resource from OSR to build my driver
projects from within visual studio. Some how I cannot see the messages
output by #pragma message or #pragma comment.

They do go to the log file. But I wanted to make them appear on the
Visual studio "OUTPUT" window.

Any help will be appreciated.

Thanks,
Rajesh
s***@gmail.com
2007-11-05 20:02:32 UTC
Permalink
Post by Raj
Hi All,
I have been using this great resource from OSR to build my driver
projects from within visual studio. Some how I cannot see the messages
output by #pragma message or #pragma comment.
They do go to the log file. But I wanted to make them appear on the
Visual studio "OUTPUT" window.
Any help will be appreciated.
Thanks,
Rajesh
Just in case someone else may be interested.

After getting a good pointer from Mr Oliver Nachricht I was able to do
the following workaround.

In my header file

#define STR(x) #x
#define STR2(x) STR(x)
#define MSGSTR(msg) __FILE__ "(" STR2(__LINE__) ") : message : " ##msg

then I could do the following where I needed it
#pragma message (MSGSTR("blah blah blah"))

one line you have to add in ddkbuild.cmd
if exist "build%W2kEXT%.log" findstr "message" "build%W2kEXT%.log"

Hope this might help someone interested.

Thanks,
Rajesh

Loading...