Click to See Complete Forum and Search --> : I wrote an ActiveX and registered on IPAQ but i can't add it to any projects
UltraTrunks
July 17th, 2002, 12:46 PM
Ok here is my problem. I wrote an activeX in Embedded C++ and registered it to the mobil device using the Devlopement environment. Now, though, i want to actually use it in another project but when i go to insert it, it does't show up under the Registered ACtiveX controls. How can I insert it to my new project
nunop_
July 17th, 2002, 01:32 PM
You have to make a desktop version of your component and register it for developing...
Check this out:
"Using Custom ActiveX Controls with eMbedded Visual Basic 3.0 in Microsoft Windows CE 3.0" - http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28000437
I having a problem related to this (check my recent post)... But, i'm shure you have to do this... if you get to make it work in the end, please tell me.;)
UltraTrunks
July 17th, 2002, 04:47 PM
Here is a link to a posting in google groups that solved my problem http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=91svb4%24rst%241%40oslo-nntp.eunet.no&rnum=6&prev=/groups%3Fq%3Dactivex%2Bin%2Bembedded%2BC%252B%252B%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D91svb4%2524rst%25241%2540oslo-nntp.eunet.no%26rnum%3D6
and in case it is not there for long, here is an excerpt from the posting
I believe you have to create a desktop version of the control as well as a
version for the target. The desktop version should be registered on the
desktop machine. You can then add the desktop version of the control to the
Components and Controls gallery using the "Add Control" button that appears
when you select "Project/Add to Project/Components and Controls". Creating
a desktop version requires that you have VC++ 6.0. To create the desktop
version you can open VC++, create a new project with EXACTLY the same name
as your control, but in a different directory. Use the wizard that
corresponds most closely to the one you used in the eVC project. You don't
need to add any code to this project. Close VC++ and then copy the .dsw and
.dsp files from the directory containing the VC++ project to the directory
containing your eVC control.
Then, start VC++ again and open the workspace that is now in the directory
with the eVC control. You can then add the files for your eVC version of
the control to the desktop version using VC++. Once you've done that, build
the desktop version using Unicode Debug or one of the Unicode release
configurations. You can then add this version to the Components and
Controls gallery.
For more details you could have a look at the book "The Windows CE
Technology Tutorial" by Chris Muench. He describes this process in Chapter
6.
If you follows these directions you will be able to make and use a an activeX control. NOTE: Make sure that for the desktop version it is complied in Unicode. Then when you go to add it to the Embbed C++ version click the "add control" button, and then go and select the unicode .ocx file. Hope this helps
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.