CoCreateInstance of OLE control {648A5600-2C6E-101B-82B6-000000000014} failed.
>>> Result code: 0x80040154
>>> Is the control is properly registered?
Warning: Resource items and Win32 Z-order lists are out of sync. Tab order may be not defined well.
Warning: CreateDlgControls failed during dialog init.
在使用串口控件Mscomm32.ocx时,编译没问题,调试时提示以上错误。在本机上是有注册该控件了,难道wince模拟器上也要注册?怎么注册?
active控件
------解决方案--------------------
只在pc上用过这个控件。
------解决方案--------------------
如果在模拟器中使用,则必须要注册的。
但是 LZ,你有模拟器版本的 OCX 吗?
------解决方案--------------------
肯定是不一样的,本机是 X86 结构,而 CE 一般是 ARM 结构。
------解决方案--------------------
底层cpu指令不一样,库肯定不一样吧。。------解决方案--------------------
如果没有相应的版本,就不要想用它
直接用串口操作的方法
------解决方案--------------------
这个控件,记得很早以前在 CE3.0 下用过,后来的版本就没有见过这个控件
------解决方案--------------------
用API吧 通用些