Unable to do MFC w ActiveX control in XPe

B

Ben

Hello,

I'm unable to have an MFC application, dialog based, using Active X
control, (specifically Microsoft Form 2.0 Command button) running on
XPe. When I click on the application, nothing happens.

In my XPe image, I have included component like MFC (legacy and the
normal one), DirectX 8, Primitive MSVCRT40, Direct3D, DirectDraw,
DirectDrawEx, Fonts, (I'm not sure that all of them are necessary, but
as it's still not working...)

The same application runs fine on my developpement machine, which has
Win2K.

Also if I have tried an MFC application with the normal class as
CButton, it's working fine on XPe.

I'm using MS VC6.0.

Remote debugging show that it's when calling the DoModal that the
program stop.

Any idea?

Thanks in advance!

Ben
 
K

Kent Petersen

I had a similar problem and solved it by running my application on an XPPro
box under Dependency Walker (a downloadable tool from Microsoft). Using
this I was able to discover that I had to add the "OpenGL Support Component"
to the XPe build. In my case the App ran in XPe until you tried to control
the perspective of a 3-D plot we create. W/ Dependency Walker I could see
what files my App "touched" when you tried to control the perspective.

I don't recall the link for the Dependency Walker tool but MS' search stuff
works pretty well.

Hope this helps

Kent Petersen
 
B

Ben

Kent Petersen said:
I had a similar problem and solved it by running my application on an XPPro
box under Dependency Walker (a downloadable tool from Microsoft). Using
this I was able to discover that I had to add the "OpenGL Support Component"
to the XPe build. In my case the App ran in XPe until you tried to control
the perspective of a 3-D plot we create. W/ Dependency Walker I could see
what files my App "touched" when you tried to control the perspective.

I don't recall the link for the Dependency Walker tool but MS' search stuff
works pretty well.

Hope this helps

Kent Petersen

Thanks for your help,

I have tried it, and unfortunately, it did not work.

I have tried also to download the latest QFE from Microsoft on XPe
SP1. Still no luck.

I also used DependencyWalker to see if some DLL are missing, compared
to my XP Pro machine, where the application works fine, still no
difference. All DLL are found.

Anybody has idea?

Anybody did MFC application using this ActiveX control (Microsoft Form
2.0 Command button)? May be there is a problem on XPe related to it.

Thanks for your help!
 
S

Slobodan Brcin

You are out of luck with this component, since it is not standard part of
Windows XP Professional.
It come with some other program, and you need to see for a additional
licensing to be able to use it.

You need to include components that include following dll's.

clbcatq.dll
comres.dll
version.dll
riched20.dll
fm20.dll
fm20enu.dll


So you need components:

Primitive: Clbcatq
Primitive: Comres
Primitive: Version
Rich Edit Control Version 3.0
You need to make component for fm20.dll and fm20enu dll, that will copy and
register them.


Hope this helps,
Slobodan
 
B

Ben

Hello Slobodan,

Thanks for your help. I got it to work.

I already had all the DLL you mentionned by including the XPe
component I mentionned on my frist email.

The solution was in the registration of fm20/fm20enu.dll as you
mentionned, more specifically to specific registry entry related to my
MFC ActiveX classes (Control Button).

Thanks!

Ben.

PS: This forum is a great source of info. Thanks to the one who bring
comments/solution!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top