如何在项目之间共享C ++ / CX用户控件? [英] How can I share C++/CX User Control between project?
问题描述
如何在同一类型的另一个项目中包含带有C ++ / CX用户控件的库?&bbsp; b
$ b包括带/ ZW结果的DLL以下错误:" 致命错误LNK1107:无效或损坏的文件:无法读取0x348"
How to include a library with C++/CX User Control in another project of the same type?
Including DLL with /ZW results with the following error: " fatal error LNK1107: invalid or corrupt file: cannot read at 0x348"
我能够添加Windows运行时组件,但在包含标头后,构建没有成功(缺少生成的.gh文件)。
I was able to add Windows Runtime Component, but after including a header, the build was unsuccessful (missing generated .g.h files).
那么如何在不使用符号链接的情况下正确执行此操作,因为我现在正在使用?
So how can I do this properly, without using symbolic links, as I am using now?
推荐答案
/ ZW用于UWP;如果这是一个UWP项目,那么你需要在论坛中询问UWP。
/ZW is for UWP; if this is a UWP project then you need to ask in the forum for UWP.
您可以通过使用类库在多个项目中使用用户控件。用户控件是否在类库中?
You use user controls in multiple projects by the use of a Class Library. Is the user control in a Class library?
这篇关于如何在项目之间共享C ++ / CX用户控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!