开发者

can I override the version block in a dll?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜