> ----- Original Message ----- > From: "Erdmann, Ralf" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, January 27, 2004 4:49 AM > Subject: Call LV-ActiveX-Server from CE.NET 4.2 > > > Hello all, > I've got a LV7-App which acts as a ActiveX-Server, > so that I can set a control value of this App via > DCOM from another desktop PC with another App that > I've written using Visual C++. (currently under W2K) > > Now I need to set a control value of this App from > a Windows CE.NET 4.2 device. > > I know I have to rewrite the C++ App, but how can > I register the LV7-App as an ActiveX-Server under > Windows CE ? > > Does anybody know if this is possible or has > anyone already done it ? >
Hello Ralf, In order to set LV7-App as an ActiveX server, you need to enable the activeX server when you build the LabVIEW application (in application builder, go to "Application Settings" tab to check the ActiveX server box). The result is you will get a *.tlb file together with your LV EXE file. Then in your C/C++ code, you declare this *.tlb file. There is an example in NI site: http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3E21356A4E034080020E74861&p_node=DZ52051&p_submitted=N&p_rank=&p_answer=&p_source=External although it's for LabVIEW itself, but for LV application it's similar, you just need to declare your LV application *.tlb file instead of LabVIEW.tlb in the C/C++ code. But still when you compile C code you may get one parameter too few or too much error in calling the LV vi from C/C++ code if you just copy the code from the NI site. Just reduce or add one more parameter with zero value, that worked for me. Hope this help. Irene ===== Irene He [EMAIL PROTECTED] www.hytekautomation.com www.geocities.com/irene_he
