|
I have an MFC wrapper over a COM object. There is a function that takes a large number of options, which are mostly optional. How do I pass some arguments but not others?
For what it's worth, the optional arguments are listed as VARIANT*.
Below is the...
Started by Adam Tegen on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To skip an optional parameter in a COM method.
Written the CDocuments and CApplication wrappers around the COM interfaces, so you could specify the optional parameters as having default value of vtEmpty.
|
|
Hi How to return List from c# method and Use the List return values in c++ can u give guidance how to do it?? I going like following way my complete scenario:
in c# DemoLib.cs
usng System;using System.Collections.Generic; public interface IDiscover { ...
Started by Cute on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The object type of c#
C# exported as COM
public void GetList(ref object list) { String[] dummyWhen you import a tlb in VC++ and compile it, an intermediate file is generated with extension .tlh;, therefore, it won't get translated....
|
|
What is the difference between the two lines of code below:
CComPtr< IInterface > m_interface; IInterface* m_interface;
I know that CComPtr help eliminate memory leaks, but I am getting inconsistent results. When declaring the pointer with CComPtr...
Started by Reggie McCray on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
When the last reference to an object has been Release() ed, the COM object destroys itselfCComPtr<....
Instance->Release(); instance = 0;
Each COM object implements reference counting.
Release the object...
|
Ask your Facebook Friends
|
I have a dynamic link library written in VC++6. I wrote some code with VC++2005 which calls the native VC++6 library. Whenever I pass std::string to the native library, the result is always garbage. However, this does not happen if I pass other types ...
Started by Lopper on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
|
|
I want to add a VC++ DLL reference into my C# Visual Studio project. But when I try to add it I see, "It is not a valid assembly or COM component".
Please suggest how I can use the VC++ DLL as a reference in a C# project.
Started by Arunachalam on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You can use the COM object like a C# object (for the most part written....
COM Interop involves creating a COM object in your C++ DLL, and then adding it as a reference.
From C#: either COM interop, or P/Invoke.
|
|
I am a vc++ developer but I spend most of my time learning c++.What are all the things I should know as a vc developer.
Started by yesraaj on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's a link on vc....
There are several other with learning the VC Debugger - spend as much time as you can with it - it can be your best friend.
You could learn ATL + COM if you are into developing COM Components.
Development.
|
|
I am curious about COM+, DCOM. I know that MSFT does not encourage you to use this tools natively (meaning with C/C++, in fact there is not a lot of documentation available) but I want to learn to use these technologies, like embedding Internet Explorer...
Started by Franco on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The old days of VC++6, but I don't have first hand knowledge there: sadly, most of the COM code I workActually, if you want to learn more about COM, Microsoft publishes a book about COM and how=UTF8&s=books&qid=1243029018&....
|
|
Hi i have got a ScreenCameraSDK and it comes with a 11kb dll file, it has a documentation too which lists the functions which can be used. It says
ScreenCamera SDK ActiveX Reference Documentation
ActiveX Reference
The ActiveX ID on the system is: ScreenCameraSDK...
Started by Anirudh Goel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
First of all you have to do this is #import the dll, and the compiler will automatically generate all required definitions from... .
If you want to create wrapper class you could read to this article .
Use this manual to add ActiveX control in your project .
|
|
Hello,
i have some trouble accessing a dll written in vc++ that exports an interface. First i tried to use classes, but after some google-search i came to the solution, that this i not possible. I just want to make sure, that the plugin interface can ...
Started by geskill on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Since the Delphi interface model is ....
You should read about COM) across DLL boundaries because you do not know which memory manager, run-time library and object model).
For another cases..
) - you can write plugin to Delphi with this way .
|
|
Hi,
I'm porting an existing .NET 3.5 application into a plug-in for Eclipse.
I want to have my custom UserControl, written in C#, embedded within Eclipse; I've exported it successfully as a COM Control, and it works well in Eclipse Europa.
In Ganymede...
Answer Snippets (Read the full thread at stackoverflow):
Following the example.
Been problems with how some of my user controls have exposed to COM.
|