When Windows CE compiles and runs a custom control, the following error occurs: result code: 0 × 80040154.

Source: Internet
Author: User

Problem:

Compile and run the ocx file under the custom Win CE:

Cocreateinstance of OLE Control {2dad60a1-76cf-4016-8c0d-2cb7d4fcbc2c} failed.
>>> Result code: 0x80040154
>>> Is the control is properly registered?

Solution:

The Resource Division automatically generated by the system when the Windows ocx file is created. h, stdafx. h, stdafx. CPP ,. RC ,. RC2 ,. vcproj ,. copy all files outside the def file to the Win ce ocx folder and overwrite the original file. Register OCX with regsvrce.exe under Win ce.

 

Problem: When you use regsvrce.exe to register an ocx file in ce, the following error occurs:

 

 

Solution:

The first uuid value and application in the. IDL fileProgramThe _ tlid value in the initialization file is inconsistent. Change to the same value.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.