Development Debugging Basic Procedure Based on WinCE ActiveX Controls Select from W8U Blog

xiaoxiao2021-03-06  43

Development Debugging Based on WinCE Basic Steps Develop ActiveX Controls Under Wince, you will have many obstacles, such as possible compilation, and success Download to the target, but you can't register; want to write an application to debug the control, However, open EVC creation projects, when you want to insert an ActiveX control, the list is essentially 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 1 with EVC4.0, open EVC4.0, create a new project, select WCE ATL COM AppWizard. The project name assumes that DVDPlayer is completed in accordance with the rules. 2, insert ATL Object. The name is assumed to be DVDCTRL3, select Compilation Win32 (WCE X86) Release Mindep. Compile success, Download success, registration is also successful. In this step, I found that if you have selected the Debug version, although the compilation is successful, Download is successful, but the registration is unsuccessful. I don't know what the reason. Second, use VC6.0 to develop the same name ActiveX control to generate Desktop version 1. Open VC6, in the new project, select WCE ATL COM AppWizar, the project name, and EVC, 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.DSP4, open the file DVDPlayer_Win32.dsw with text editor, modified 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 settings: setting (1) General: Output Director is filled in X86DBG, and the output path in EVC is consistent. (2) Fill in X86DB / DVDPlayer.dll8 in Linkoutput Filen Name, 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, create a new 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-67073.html

New Post(0)