|
-
February 4th, 2008, 07:54 AM
#1
problem Use ocx in C# 2005 and vista x64
Hi all,
I have a system with CPU X64 & Vista Ultimate X64, in this system I install VB6 and visual stdio 2005 , also I have 2 OCX file and I can use this 2 ActiveX in VB6 , but when I create a project in C# 2005 and then put any ActiveX , now when run my project get this error and my programm not be run !!
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
while I register OCX file with REGSVR32 command, and not any problem in use OCX in VB6 !!!!!!!!!!!!!
Please help me
Last edited by user32; February 4th, 2008 at 07:57 AM.
-
February 4th, 2008, 09:48 AM
#2
Re: problem Use ocx in C# 2005 and vista x64
I use VS 2005 on Vista ultimate 64 bit without issues. Did you install the service pack for VS 2005 and then the Vista compatability fix?
-
February 6th, 2008, 02:26 AM
#3
Re: problem Use ocx in C# 2005 and vista x64
I have not service pack for vs 2005 , if you know link for download please get me.
thanks
-
February 6th, 2008, 03:29 AM
#4
Re: problem Use ocx in C# 2005 and vista x64
-
February 12th, 2008, 08:02 AM
#5
Re: problem Use ocx in C# 2005 and vista x64
thanks for your answer,
I have download sp1 for VS 2005 and install this , But my problem exist !!!!
-
February 12th, 2008, 09:43 AM
#6
Re: problem Use ocx in C# 2005 and vista x64
There are TWO things you need. SP1 *and* the Vista fix. Download the Vista fix and run it. If that fails...
Then maybe your tampering with it may have hosed it. Completely uninstall dev studio 2005. Everything. Reboot.
Reinstall Devstudio 2005.
Now the next part I can't remember off the top of my head. One part requires you to run dev studio first and the other must be done before it is run. You need to look online (probably the vista compatibility fix documentation).
I *think* the order is, Install VS2005, install SP1. Run Dev Studio, exit, then run the Vista fix pack. Or maybe it is install VS2005, the vista fix, then run it, then SP1. You really need to find some online documentation about it to be sure.
Last edited by DeepT; February 12th, 2008 at 09:47 AM.
-
February 14th, 2008, 02:55 AM
#7
Re: problem Use ocx in C# 2005 and vista x64
ok , I try install Vista fix and then put result here ,
but why my Activex wrok correctly in VB6 or Delphi without install Vista Fix?
-
February 14th, 2008, 09:49 AM
#8
Re: problem Use ocx in C# 2005 and vista x64
I have no idea, but as a wild guess: Maybe your app is 64 bit and the OCX is 32bit?
I thought you were having problem running VS2005, not compiling a program in it. If VS2005 runs fine and it is a run/compile error with your app, make sure that it is set to make a 32bit app, not a 64 bit app.
-
February 20th, 2008, 08:16 AM
#9
Re: problem Use ocx in C# 2005 and vista x64
ok , I set my Project in 32bit option and tell you result
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
|