Click here to Skip to main content
15,436,765 members
Home / Discussions / COM
   

COM

 
GeneralRe: range setvalue Pin
ForNow15-Dec-12 15:23
MemberForNow15-Dec-12 15:23 
GeneralRe: range setvalue Pin
Richard MacCutchan15-Dec-12 21:09
mveRichard MacCutchan15-Dec-12 21:09 
QuestionPUT_VISIBLE documentation Pin
ForNow12-Dec-12 13:21
MemberForNow12-Dec-12 13:21 
AnswerRe: PUT_VISIBLE documentation Pin
Richard MacCutchan12-Dec-12 22:45
mveRichard MacCutchan12-Dec-12 22:45 
GeneralRe: PUT_VISIBLE documentation Pin
ForNow13-Dec-12 10:06
MemberForNow13-Dec-12 10:06 
QuestionRe: PUT_VISIBLE documentation Pin
Richard MacCutchan13-Dec-12 22:51
mveRichard MacCutchan13-Dec-12 22:51 
Questionerror C1083: Cannot open type library file: 'libid:00020813-0000-0000-C000-000000000046': No such file or directory Pin
ForNow5-Dec-12 9:19
MemberForNow5-Dec-12 9:19 
Question.NET COM DLL doesn't register. Pin
Joni_7829-Nov-12 5:10
MemberJoni_7829-Nov-12 5:10 
I made a .NET COM DLL (VS2012, C#) it registers fine with regasm, but not with regsvr32. Also when I add the .tlb into installer and extract the com stuff (Installshield 2012) there is no registry entries after I have ran the installer. DLL is 32-bit and I'm using 64-bit Windows.

I have this on the code:

C#
[ComRegisterFunction()]
       public static void RegisterClass(string key)
       {
           StringBuilder sb = new StringBuilder(key);
           sb.Replace(@"HKEY_CLASSES_ROOT\", "");
           RegistryKey k = Registry.ClassesRoot.OpenSubKey(sb.ToString(), true);
           RegistryKey ctrl = k.CreateSubKey("Control");
           ctrl.Close();
           RegistryKey inprocServer32 = k.OpenSubKey("InprocServer32", true);
           inprocServer32.SetValue("CodeBase", Assembly.GetExecutingAssembly().CodeBase);
           inprocServer32.Close();
           k.Close();
           MessageBox.Show("Registered");
       }

       [ComUnregisterFunction()]
       public static void UnregisterClass(string key)
       {
           StringBuilder sb = new StringBuilder(key);
           sb.Replace(@"HKEY_CLASSES_ROOT\", "");
           RegistryKey k = Registry.ClassesRoot.OpenSubKey(sb.ToString(), true);
           k.DeleteSubKey("Control", false);
           k.OpenSubKey("InprocServer32", true);
           k.DeleteSubKey("CodeBase", false);
           k.Close();
           MessageBox.Show("UnRegistered");
       }


I've tried to find an answer to this but it seems nothing works.

Error with regsvr32 is:
the module "comclass.dll" was loaded but the entry-point DllRegisterServer was not found.

Make sure that "comclass.dll" is a valid DLL or OCX file and then try again.

modified 29-Nov-12 11:59am.

AnswerRe: .NET COM DLL doesn't register. Pin
Richard MacCutchan29-Nov-12 6:34
mveRichard MacCutchan29-Nov-12 6:34 
GeneralRe: .NET COM DLL doesn't register. Pin
Joni_7829-Nov-12 6:40
MemberJoni_7829-Nov-12 6:40 
GeneralRe: .NET COM DLL doesn't register. Pin
Richard MacCutchan29-Nov-12 6:59
mveRichard MacCutchan29-Nov-12 6:59 
Questionoffice 2003 interop Pin
DeveloperLife201512-Nov-12 10:34
MemberDeveloperLife201512-Nov-12 10:34 
AnswerRe: office 2003 interop Pin
Bernhard Hiller19-Nov-12 22:40
MemberBernhard Hiller19-Nov-12 22:40 
GeneralRe: office 2003 interop Pin
AnkitGoel.com10-Dec-12 17:47
MemberAnkitGoel.com10-Dec-12 17:47 
QuestionHow to get INTERFACEDATA from ITypeInfo? Pin
masterhe11-Nov-12 3:50
Membermasterhe11-Nov-12 3:50 
QuestionHow to add a bar in the bottom of Windows Explorer(not IE)? Pin
ohsorry9-Nov-12 16:07
Memberohsorry9-Nov-12 16:07 
AnswerRe: How to add a bar in the bottom of Windows Explorer(not IE)? Pin
Richard MacCutchan9-Nov-12 23:29
mveRichard MacCutchan9-Nov-12 23:29 
Question.NET COM component to replace existing Pin
cjb1108-Nov-12 6:59
Membercjb1108-Nov-12 6:59 
AnswerRe: .NET COM component to replace existing Pin
manoranjan20-Nov-12 5:56
Membermanoranjan20-Nov-12 5:56 
GeneralRe: .NET COM component to replace existing Pin
cjb11020-Nov-12 9:17
Membercjb11020-Nov-12 9:17 
GeneralRe: .NET COM component to replace existing Pin
manoranjan20-Nov-12 17:03
Membermanoranjan20-Nov-12 17:03 
QuestionEnumeration of implemented interfaces Pin
_Kel_22-Oct-12 6:30
Member_Kel_22-Oct-12 6:30 
GeneralRe: Enumeration of implemented interfaces Pin
_Kel_10-Dec-12 23:32
Member_Kel_10-Dec-12 23:32 
GeneralUsing Open MPI and CUDA in Windows 7 Pin
Sijo Mathew17-Sep-12 23:40
professionalSijo Mathew17-Sep-12 23:40 
QuestionCOM+ Talking To DCOM Object Pin
Member 81371057-Sep-12 3:43
MemberMember 81371057-Sep-12 3:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.