Path: utzoo!attcan!uunet!husc6!cmcl2!nrl-cmf!ames!lll-lcc!unisoft!gethen!doug From: doug@gethen.UUCP (Doug Asherman) Newsgroups: comp.lang.c Subject: MSC 5.1 comment pragma (exestr) Keywords: MSC pragma comment exestr Message-ID: <1079@gethen.UUCP> Date: 20 Jul 88 03:26:50 GMT Distribution: na Organization: There's Unix there in Oakland Lines: 26 Recently, I've been trying to use the comment pragma to place a version number in an executable file. According to the Microsoft documentation, this can be done like so: #pragma comment(exestr,"ThisProg V1.1"); On page 12 of the MSC 5.1 update docs, it says under "exestr": "Places the string specified...in the object file. At link time, this string is placed in the executable file....[Stuff deleted] ..it can be found with a program that finds printable strings in files." Ok...I've looked through the .exe file using two different programs that purport to find ASCII strings in any file, and finally viewed the program sector by sector with a disk editor...but I can't find that string! In its place, of course, I just use 'char *version = "ThisProg V1.1";'. However, I was wondering if anyone has gotten this pragma to work correctly, and if so, how...the other comment pragmas seem to work just fine. -- Current Address: : "Get used to disappointment" : -William Goldman { sun, ptsfa } : from !hoptoad!unisoft!gethen!doug : "The Princess Bride"