Questions tagged [oleview]
15 questions
69
votes
2 answers
dllregisterserver in iviewers failed
When I try to run Oleview I get an error saying that DllRegisterServer failed for IViewer.dll (sorry I wanted to post a screenshot but I can't until I get 10 reputation =p)
Oleview will run but like the msg says, you can't look at interfaces which…

Guybrush Threepwood
- 1,791
- 2
- 11
- 8
28
votes
4 answers
Is there a tool for exploring/testing COM objects?
I'm trying to automate a process by using a COM object from Python (win32com), but I'm not getting the expected results... Is there a tool to explore/test COM objects without having to write a specific program? I mean, is there something that allows…

Joril
- 19,961
- 13
- 71
- 88
13
votes
3 answers
Is it possible to expose a C# Enum to COM Interop callers, and if so, how?
I have a managed assembly that gets called via COM Interop. Like a VBScript client, a Perl client, and so on.
The classes are decorated with…

Cheeso
- 189,189
- 101
- 473
- 713
5
votes
4 answers
Oleview error "error loading type library"?
A type library declares the classes, interfaces, constants, and procedures that are exposed by an application or dynamic-link library (DLL). A type library is usually a resource in a program file; it can also be a stand-alone binary file with the…

anand
- 11,071
- 28
- 101
- 159
5
votes
2 answers
Convert TLB to IDL
Does anyone know of a commandline-tool that generates an idl file from a type library (.tlb)? The reason for doing this is to get rid of underscores in enum-values generated from regasm. The problem with underscores in enums is discussed in this…

Søren Randrup
- 318
- 2
- 19
5
votes
2 answers
How to latebind COM event without interface
I need to late bind to a 3rd party VB6 COM object in a 3.5 C# application (to avoid version dependencies that we currently have). The dll that was provided is not consumable in most non-latebound ways due to some bug that causes errors when we try…

Justin Pihony
- 66,056
- 18
- 147
- 180
2
votes
1 answer
Unable to remove COM [PrimaryInteropAssemblyName] typelib value using REGASM /u
I was hoping someone can point me in the right direction. I listed the problem in a few steps to hopefully clarify the issue.
I register a C++ DLL into COM using regsvr32.
I then use tlbimp with the /primary attribute on the C++ DLL to make an…

silentfrost
- 302
- 2
- 10
2
votes
2 answers
OleView.exe can't decompile type library extracted from VB6 OCX
I'm trying to get the IDL file for the type library of a complex ActiveX control created with VB6. I tried to do this with OleView.exe on my development pc with 64-bit Win10 Pro. The x64 version of OleView simply crashes when I try to open the OCX…

TecMan
- 2,743
- 2
- 30
- 64
1
vote
4 answers
Access a COM Interface method C++
Both:
CLSID
IID
Having specified the above, and using:
CoCreateInstance()
To returning a single uninitialised object of the class specified by the CLSID above.
How can I then access an Interface's method from C++?
Without:
ATL
MFC
Just plain…

Aaron
- 2,823
- 9
- 44
- 57
1
vote
1 answer
Problem compiling IDL created with OleView
To correct a problem with the name of the value for the enum, after searching, that I need to modify the TLB file of my DLL. The first step that I need to do is to create the IDL file. So I use Oleview to create the file. Before doing the…

Stephan
- 591
- 5
- 18
0
votes
0 answers
Generating C++ com interface for microsoft word using midl compiler
I'm trying to create the microsoft word COM C++ interface definition using the midl compiler. I used oleview.exe to save the "Microsoft Word 14.0 Object Library" (MSWORD.OLB) to a file called MSWORD.idl.
When compiling this idl file I get errors.…

Eugène Bindels
- 15
- 4
0
votes
1 answer
How call virtual function in COM in C#
I am new to COM and C#. What I am trying to do is rewriting the following source in C#:
explife.c
explife.h
typedef interface IARPUninstallStringLauncher IARPUninstallStringLauncher;
typedef struct IARPUninstallStringLauncherVtbl…

user980614
- 3
- 2
0
votes
1 answer
C# Reflection inconsistency with COM objects
Having spent the last few days reading everything I can find about C# reflection on COM objects, trying many experiments in code, and analyzing sample code to try and improve my understanding, I am now forced to admit that I just don't know enough,…

Morepork
- 11
- 5
0
votes
1 answer
How can I find the typelib identifier of the DirectShow interfaces for use with COM4j
I'm trying to interact with a webcam from Java on Windows (without going through the FMJ or JMF frameworks) by using COM4j. However, I'm unable to find the typelib identifier for Direct Show in order to build the interfaces. The COM4j site…

Jherico
- 28,584
- 8
- 61
- 87
0
votes
1 answer
Unable to find UIRibbon in Component Service or OleView
I'm recently exploring how to use COM in c++ and come across with a simple ribbon code.
Code has:
HRESULT hr = CoCreateInstance(CLSID_UIRibbonFramework, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&g_pFramework));
So, it's based on COM, right? There…

wliao
- 1,416
- 11
- 18