How do I include #ident strings with C++ code under Visual Studio 2010? -


i've completed vc6 -> vs2010 compiler migration , 1 of last issues use of #ident.

we use #ident string compare versions between executables source base quite large , compiled on both unix , windows.

are there techniques produce similar on windows platform?

in visual studio 2010, #ident "xxxxxxxxxxx" results in compiler warning c4274.

i've tried following:

#ifdef win32 #pragma comment(exestr, "file_version: $id: source_file.cpp.cc,v 1.12 2012/08/13 04:39:53 johnp")  #else #ident file_version: "$id: source_file.cpp.cc,v 1.12 2012/08/13 04:39:53 johnp" #endif 

the article states use #pragma comment(exestr, "xxxxxx") however, lnk4229 prevents comment being passed executable anyway.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -