开发者

can I override the version block in a dll?

开发者 https://www.devze.com 2023-01-16 20:08 出处:网络
Suppose I have built a lot of dlls from a certain revision of the svn repository.(It might by any revisioning system)

Suppose I have built a lot of dlls from a certain revision of the svn repository. (It might by any revisioning system)

I am able to create a resource file containing an entry that denotes the revision number.

Can I link that resource file into t开发者_如何学Che dll's I have already built? Some sort of editbin or the like?


You can write a small program to do this, using the UpdateResource function in Windows NT: http://msdn.microsoft.com/en-us/library/ms648049(v=VS.85).aspx


The resource compiler uses the C pre-processor. You can simply use a #define in a header file you #include in your .rc file. Or use the /D command line option for rc.exe. You can use the macro symbol in your resource definition.

0

精彩评论

暂无评论...
验证码 换一张
取 消