CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2007
    Posts
    16

    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.

  2. #2
    Join Date
    Sep 2004
    Posts
    1,361

    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?

  3. #3
    Join Date
    Feb 2007
    Posts
    16

    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

  4. #4
    Join Date
    Nov 1999
    Location
    Denmark
    Posts
    260

    Re: problem Use ocx in C# 2005 and vista x64


  5. #5
    Join Date
    Feb 2007
    Posts
    16

    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 !!!!

  6. #6
    Join Date
    Sep 2004
    Posts
    1,361

    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.

  7. #7
    Join Date
    Feb 2007
    Posts
    16

    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?

  8. #8
    Join Date
    Sep 2004
    Posts
    1,361

    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.

  9. #9
    Join Date
    Feb 2007
    Posts
    16

    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
  •  





Click Here to Expand Forum to Full Width

Featured