我想输出VB预定义的编译常数,如VBC_VER等。就是用Msgbox,或者Console.writelilne像输出字符串一样
应该怎么做呢? 能把这样的常数转为字符串吗?
以我的理解来看,这个常量应该只能用于条件编译。 所以你可能需要自己写代码来读取VB的版本,注册表位置在:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\<version>\Setup\VS\<edition>。
Best regards,
Shanks Zen MSDN Community Support | Feedback to us Develop and promote your apps in Windows Store Please remember to mark the replies as answers if they help and unmark them if they provide no help.