Development Debugging Basic Steps Based on ActiveX Controls under Wince

xiaoxiao2021-03-06  62

Development Debugging Basic Steps Based on ActiveX Controls under Wince

Developing an ActiveX control under WinCE will encounter a lot of obstacles, such as possible compilation, and successful Download to the target, but you cannot register; if you want to write an application to debug the control, open EVC creation project, want to insert an ActiveX control At the time of the control list, it is empty. This article is the experience summed up by his development process. If there is no reason, I only know this.

The premise is that the EVC can connect to the target machine.

First, develop an ActiveX control with EVC4.0

1. Open EVC4.0, create a new project, select WCE ATL COM AppWizard. The project name is assumed to fill in the DVDPlayer all the way.

complete.

2, insert ATL Object. The name is assumed to be DVDCTRL

3, select Compilation Win32 (WCE X86) Release Mindep. Compile success, Download success, note

The volume is also successful. In this step, I found that if you have selected the Debug version, although compiled is successful.

Download is successful, but it is unsuccessful. I don't know what the reason.

Second, develop the same name ActiveX control with VC6.0 to generate Desktop versions

1. Open the VC6, in the new project, select the consistence in the WCE ATL COM AppWizar, the project name, and EVC, and the path is inconsistent with the EVC.

2, save the project exit.

3, copy the DSP and DSW files to the EVC project, modify the file name DVDPlayer.dsp ---> DVDPlayer_Win32.dsp, DVDPlayer.dsw ---> DVDPlayer_Win32.dsp

4, open the file DVDPlayer_Win32.dsw with text editor, modify the content:

Project: "DVDPlayer" =. / DVDPlayer.dsp

-----> Project: "DVDPlayer" =. / DVDPLAYER_WIN32.DSP

5, save exit.

6, open the DVDPlayer_Win32.dsw project file with VC6.

7, modify setting: setting

(1) General:

All X86DBG is filled in the output Directories, and the output path in EVC is consistent.

(2) LINK

Output Filen Name Fill in X86DB / DVDPlayer.dll

8, add DVDCTRL.H, DVDCTRL.CPP files to the project. The main purpose is to add files in the EVC to the VC6 project.

9, compile, assuming success.

Third, use the EVC development application to use the ActiveX control

1. Newly create a dialog-based application.

2. On dialog box resources, right click and select Insert an ActiveX control.

3. Generally, the list of ActiveX controls is empty. Click "Add Control ..." on the dialog, register the DLL under X86DBG.

4, the control appears in the list. Insert the control.

5, add the control part of the control, compile success.

6, run, view the effect in the target machine.

转载请注明原文地址:https://www.9cbs.com/read-90379.html

New Post(0)