Is there a way to tell gcc that the abstract class it's compiling does not need a virtual destructor (like COM-objects never have)? For example nsISupports always complains about the missing virtual destructor. Turning off the warning would not help as I may have non-COM-like classes, where I want this warning.
So __attribute__((com_int...
IS there a way to activate a COM component which is EXE COM application and also it's dependent COM dlls? I want to activate this COM component from .NET application(VS 2005/VS 2008).
the path of call is C# application --> invoking out-of-proc exe(this is through COM) and then this out-of-proc invokes few COM dlls
...
A friend was showing me a API made with a COM Object and a SOAP interface. He showed me it worked in php in windows but I have serious doubts if it is achievable in linux or any other non-windows OS. Thanks!
...
I have a number of COM services in my system and I need to change default cloaking beahvior. In particular, I want to use dynamic cloaking.
Since the product is a "closed" one, meaning that no other program/service will be installed on the machine, changing system defaults is one of the options.
I am not willing to go into that directio...
I have added and mediaplayer control to my c# application, and I can make it play a .wma song. My problem is that i want to see if the player is playing. Is there an event that I can use? Or is it a way I can see for how many seconds a song has been playing?
...
I have been told to develop a virtual com port so an app the company has can read off com "comCompanyNameV1".. I tried to pick apart com0com, but it seem so incomplete I'm finding I have to kludge around large parts of it and I have yet to get anything to come close to compiling. Mostly because the tools that are outlined to use to build...
I hav created a com componet for some Display method in C# it returns a String List
as shown below. In v++ i hav used std::lst to catch the return value from Disp() but it
gives compiler error that Disp is not a member of class. I i make return type a s void then
it works fine. what i can modify so that Disp return a List and in mai...
I'm trying to figure out how to add some directshow capabilities to a C# application (.net cf 3.5 running on mobile 6 and up), and I'm having a hard time figuring out how to bridge the gap between using unmanaged c++ class(es) in managed C#.
I've already written the functionality I need in C++: Basically, I have a manager class that use...
Is it possible to configure a REST (WCF) service to run as STA instead of MTA? This is approach is needed in order to run legacy COM objects. In order to configure ASMX web services to run as STA instead of MTA, there is a workaround available that uses an HTTPHandler to force the web service to run as STA. An article by Jeff Prosise ...
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
{
void GetList1();
String GetList2();
List<string> GetList3();
};
namespace Dem...
Hi
can anybody tell me How to store and return List of Strings.
I am asked this Because i have written a function which returns Collection of strings and i
want to prepare a COM for that one and need to consume that COM(to get the returned list ) in
vc++ where i can extend some functionality using that list of strings.
i hope thi...
Hi,
Consider me a novice to windows environment and COM programming.
I have to automate an application (CANoe) access. CANoe exposes itself as a COM server and provides CANoe.h , CANoe_i.c and CANoe.tlb files.
Can anyone specify how to write a C++ client, for accessing the object, functions of the application.
Also, please specify ho...
Can any one tell me how to return a String array from a method and use it in c#?
Suppose i have to return an array of {one,two, .....ten} and in c++ i have to display this
array on console and perform some actions.
...
Our system looks like this:
One or many applications containing one or many in-process COM component(s), that communicate with some hardware via a single COM server.
(Hope that makes sense - please ask if it needs clarification)
The design decisions that led to this system design have been lost in the mists of time, however I think tha...
I need to use a COM component (a dll) developed in Delphi ages ago. The problem is: the dll does not contain a type library... and every interop feature (eg. TlbImp) in .NET seem to rely on TLBs. The component has been used in Delphi programs here for many years without problems because "It's not much of a problem using COM objects from ...
I've written two COM classes in C++, contained in a single MFC DLL. They're being loaded as plugins by a 3rd party application.
How can I get the file name, and version number, of the DLL from within those classes?
...
Hi,
I am trying to #include an application tlb file in VC++ project.
Getting following compilation errors, after #import "CANoe.tlb" in my project source file. -
unknown character '0x1'
syntax error : missing ';' before identifier 'A'
missing type specifier
int assumed. Note: C++ does not support default-int
'{' : missing functio...
I am building a C# UI to interact with a COM Service (.exe). The VS2005 COM project outputs a valid typelib (TLB), which is referenced by the C# project. However, the VS2005 C# project insists that the service be registered in order to build the C# project, even though the typelib appears perfectly valid when examined with the OLE Obje...
Say you do the following:
1) Load foo.dll using LoadLibrary.
2) Get a pointer to a function using GetProcAddress.
3) Invoke the function, giving you a reference to a COM object implememented in that module.
4) Free foo.dll by calling FreeLibrary.
5) Call a method on the COM object.
Would you expect that step 5 succeeds and doesn't ...
Hi all,
currently I'm struggling trying to use a COM dll on a simple system that I've made. Everything compiles successfully, but in runtime the CoCreateInstace is returning S_OK, but somehow my object pointer is returning NULL.
This interface pointer is created on my class header. The weirdest thing is that instantiating this same po...