Odd. We’re using VC 6.0 as well. Are you compiling this under the DDK
build environment or outside it?
I’d check linker flags to see if there are any that strip this kind of
info… don’t know of any, though…
I assume you’re viewing the .sys file in some kind of binary editor,
like VC++ File->Open->(open as binary)… if you’re looking in memory,
the docs say exestrs aren’t loaded.
Also, the docs imply that you can only have 256 comments in a module,
but there should be a linker error if this happens.
Jamey Kirby wrote:
Yes. I am trying to embed copyright and patent information in the .SYS file.
The compiler is 6.0 SP4 under NT 4.0 with NT 4.0 DDK
Jamey Kirby, Windows DDK MVP
StorageCraft Inc.
xxxxx@storagecraft.com
http://www.storagecraft.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ray Trent
Sent: Monday, September 29, 2003 3:12 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Re: #pragma comment (exestr)
They’re typically used to embed copywrite/patent notification strings
into executables. That said, it seems to work for me… OP: What
compiler version are you using? Also, is this what you’re trying to
do, or is it something else?
benson wrote:
>The only use of #pragma comment I’ve ever seen is to make the linker drag
in
>.lib files. What are these?
>
>-----Original Message-----
>From: xxxxx@lists.osr.com
>[mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
>Sent: Monday, September 29, 2003 4:46 PM
>To: Windows System Software Devs Interest List
>Subject: [ntdev] #pragma comment (exestr)
>
>
>It is time for me to be the inquisitive idiot:
>
>I have tried #pragma comment (user) and the text is placed in the obj
file,
>but when I use #pragma comment (exestr) I am not seeing the text in the
.SYS
>file. Am I missing something obvious?
>
>Jamey Kirby, Windows DDK MVP
>StorageCraft Inc.
>xxxxx@storagecraft.com
>http://www.storagecraft.com
>
>
>
>
>
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@dchbk.us
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
–
…/ray..