Click here to Skip to main content
15,847,427 members
Home / Discussions / COM
   

COM

 
GeneralRe: range setvalue Pin
ForNow15-Dec-12 16:23
ForNow15-Dec-12 16:23 
GeneralRe: range setvalue Pin
Richard MacCutchan15-Dec-12 22:09
mveRichard MacCutchan15-Dec-12 22:09 
QuestionPUT_VISIBLE documentation Pin
ForNow12-Dec-12 14:21
ForNow12-Dec-12 14:21 
AnswerRe: PUT_VISIBLE documentation Pin
Richard MacCutchan12-Dec-12 23:45
mveRichard MacCutchan12-Dec-12 23:45 
GeneralRe: PUT_VISIBLE documentation Pin
ForNow13-Dec-12 11:06
ForNow13-Dec-12 11:06 
QuestionRe: PUT_VISIBLE documentation Pin
Richard MacCutchan13-Dec-12 23:51
mveRichard MacCutchan13-Dec-12 23:51 
Questionerror C1083: Cannot open type library file: 'libid:00020813-0000-0000-C000-000000000046': No such file or directory Pin
ForNow5-Dec-12 10:19
ForNow5-Dec-12 10:19 
Question.NET COM DLL doesn't register. Pin
Joni_7829-Nov-12 6:10
Joni_7829-Nov-12 6: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 7:34
mveRichard MacCutchan29-Nov-12 7:34 
GeneralRe: .NET COM DLL doesn't register. Pin
Joni_7829-Nov-12 7:40
Joni_7829-Nov-12 7:40 
GeneralRe: .NET COM DLL doesn't register. Pin
Richard MacCutchan29-Nov-12 7:59
mveRichard MacCutchan29-Nov-12 7:59 
Questionoffice 2003 interop Pin
DeveloperLife201512-Nov-12 11:34
DeveloperLife201512-Nov-12 11:34 
AnswerRe: office 2003 interop Pin
Bernhard Hiller19-Nov-12 23:40
Bernhard Hiller19-Nov-12 23:40 
GeneralRe: office 2003 interop Pin
AnkitGoel.com10-Dec-12 18:47
AnkitGoel.com10-Dec-12 18:47 
QuestionHow to get INTERFACEDATA from ITypeInfo? Pin
masterhe11-Nov-12 4:50
masterhe11-Nov-12 4:50 
QuestionHow to add a bar in the bottom of Windows Explorer(not IE)? Pin
ohsorry9-Nov-12 17:07
ohsorry9-Nov-12 17:07 
AnswerRe: How to add a bar in the bottom of Windows Explorer(not IE)? Pin
Richard MacCutchan10-Nov-12 0:29
mveRichard MacCutchan10-Nov-12 0:29 
Question.NET COM component to replace existing Pin
cjb1108-Nov-12 7:59
cjb1108-Nov-12 7:59 
AnswerRe: .NET COM component to replace existing Pin
manoranjan20-Nov-12 6:56
manoranjan20-Nov-12 6:56 
GeneralRe: .NET COM component to replace existing Pin
cjb11020-Nov-12 10:17
cjb11020-Nov-12 10:17 
GeneralRe: .NET COM component to replace existing Pin
manoranjan20-Nov-12 18:03
manoranjan20-Nov-12 18:03 
QuestionEnumeration of implemented interfaces Pin
_Kel_22-Oct-12 7:30
_Kel_22-Oct-12 7:30 
GeneralRe: Enumeration of implemented interfaces Pin
_Kel_11-Dec-12 0:32
_Kel_11-Dec-12 0:32 
GeneralUsing Open MPI and CUDA in Windows 7 Pin
Sijo Mathew18-Sep-12 0:40
professionalSijo Mathew18-Sep-12 0:40 
QuestionCOM+ Talking To DCOM Object Pin
Member 81371057-Sep-12 4:43
Member 81371057-Sep-12 4: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.