Help - Search - Members - Calendar
Full Version: (noob) VS2005 && invalid progid
Desktop Sidebar Forums > Customizations > Panel Development & Requests
kroesjnov
This is most likely a simple problem, but it is driving me slightly mad atm.
I followed the How To's for .NET/ C++ Panel Developers : Creating a Panel tutorial with the help of Visual Studio 2005, but I am running into the dreaded invalid progid problem (as attached). I cant find a clearcut solution for this on the forum, and I am fairly sure I did not miss a step in the tutorial; this is the 3rd time I went through it with the same result.
I went and compiled the sbdemo sample, and this worked just fine.

Could somebody please shed some light on this for me? I'd like to play around with custom panels a bit, but cant get past this simple error to start with :\
I can provide my sourcecode, but they are a 1:1 copy/paste from the tutorial, so...

Click to view attachment
GoMa
You have to go into Project Properties and make sure Register For COM Interop is checked.
kroesjnov
QUOTE(GoMa @ Apr 12 2007, 12:32 PM) *

You have to go into Project Properties and make sure Register For COM Interop is checked.

Yep, afraid I did that...
kroesjnov
I just copied the sbdemo project, renamed it, stripped all files from it and added the appropriate files according to the above tutorial again, and now it shows up just fine.
I cant put my finger on it, but apparently I am doing something wrong when creating the project... I followed the tutorial to the letter, but it wont budge.
At least I have a base to play with now, so that is good, but I am still wondering where I am going wrong.
luebster
QUOTE(kroesjnov @ Apr 13 2007, 03:01 AM) *

I just copied the sbdemo project, renamed it, stripped all files from it and added the appropriate files according to the above tutorial again, and now it shows up just fine.
I cant put my finger on it, but apparently I am doing something wrong when creating the project... I followed the tutorial to the letter, but it wont budge.
At least I have a base to play with now, so that is good, but I am still wondering where I am going wrong.

Here's what fixed it for me (VS2k5):
  1. In the assembly.cs file, make sure ComVisible is set to true.
  2. In the project properties page, make sure Register for COM Interop is checked.
  3. Make sure all your classes are defined as public. (I think they're private by default)

chris
kroesjnov
QUOTE(luebster @ Jun 23 2007, 07:00 PM) *

Here's what fixed it for me (VS2k5):
  1. In the assembly.cs file, make sure ComVisible is set to true.
  2. In the project properties page, make sure Register for COM Interop is checked.
  3. Make sure all your classes are defined as public. (I think they're private by default)
chris

It's been a while since I looked into it, so not very active with it atm. I'll try your directions shortly, thx for the reply smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.