|
-
Sep 19th, 2010, 03:20 AM
#1
Thread Starter
Lively Member
[RESOLVED] Class Not Registered
ok i got a error while using my app on other System class not registered i search for the solution and this just to register the ocx component i registered the component by using setup factory its working fine on XP but in Window$ 7 i got the same error what is the best way to register the component
-
Sep 19th, 2010, 03:37 AM
#2
Re: Class Not Registered
Is this on a 32-bit install of Win7 or 64-bit? Most COM components only come in 32-bit form so they will not work with a 64-bit app. If your project targets the Any CPU platform then it will run in 32-bit mode on a 32-bit system and in 64-bit mode on a 64-bit system. That means that your app will work on a 32-bit system because it can use the 32-bit COM component but on a 64-bit system there's no 64-bit COM component so it will fail. In that case you need to change the target platform to x86 and rebuild. Your app will then run in 32-bit mode on all systems, so it will always find the 32-bit COM component, assuming that you successfully registered it.
-
Sep 19th, 2010, 04:35 AM
#3
Thread Starter
Lively Member
Re: Class Not Registered
ok if i can use this method to do it or there is any other way ?
1. Close the project and/or solution
2. Select Open File from the File menu
3. Navigate to the project directory, and highlight the project file
4. Press the Open button, the project file should open in the XML editor
5. Locate the first <PropertyGroup> section and add the following line:
<PlatformTarget>x86</PlatformTarget>
1. Save the project file
-
Sep 19th, 2010, 06:05 AM
#4
Junior Member
Re: Class Not Registered
its because the library you are using [i think a 3rd party API or a dll] is not registered on the external machine
use regsvr32 to register it
or copy the file to system32, windows
-
Sep 19th, 2010, 09:58 AM
#5
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|