Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Activex Control(Urgent) Collapse All
Subject Author Date
mallikarjun lavate Mar 5, 2007 - 5:55 AM

Intially i had craeted a application (having property grid)using successfully created.

Now I wanto craete the activex control in which I want to write the prof uis code.
when Iam adding the profui code it shows the registration problem.
Performing registration
Project : error PRJ0019: A tool returned an error code from "Performing registration"

Build log was saved at "file://e:\Projects\Job Parameter\Server\Server\Debug\BuildLog.htm"
Server - 1 error(s), 0 warning(s)

let me know how to resolve this error & what are the setting s we have to add to call the prof ui functionality in activex control.

Technical Support Mar 5, 2007 - 12:16 PM

First of all please note that the MFC ActiveX modules are MFC regular DLL modules. You should use an appropriate RDE version (Regular DLL Extension) of Prof-UIS library. Please define the __PROF_UIS_FOR_REGULAR_DLL preprocessor symbol in your ActiveX project’s settings and invoke the following code from the InitInstance() virtual method of your application class:

CExt_ProfUIS_ModuleState::InitExtension( ::AfxGetStaticModuleState() );

This is essential to make the Prof-UIS RDE library manage MFC state in the same way as your ActiveX code does. Of course, you will need to compile and use the appropriate RDE configuration of Prof-UIS library.
If your ActiveX project uses Prof-UIS as a DLL, please also check both Prof-UIS DLL and your ActiveX module are located in the same folder when your ActiveX module linking stage is completed. This also may affect registration failure at build time.

mallikarjun lavate Mar 5, 2007 - 10:22 PM

Thanks for your fast reply.Using appropriate lib & adding the code into InitInstance the registartion problem is resolved.