I know I'm missing something simple, I have next to no experience with these com things.
I would like to do this within an interface in an idl
[id(5), helpstring("Returns true if the object is in a valid state.")]
HRESULT IsValid([out, retval] boolean bValid);
However this gives : [out] paramter is not a pointer.
Ok, I understand th...
I have an IDL file that defines a few interfaces followed by a coclass. Can I make this class import interfaces that are not defined in this class?
...
I have an interface defined in an IDL file that I would like to use in C#. Is there a way to convert the IDL to something usable in C#?
...
We are migrating our C++ COM application to be unicode, and as part of this migration we want to migrate the constant strings in our IDL to unicode as well.
The problem is that at the moment, we still compile it both in ANSI and in UNICODE, which means that we can't use the L"String" construct to declare wide charts.
At the moment, our...
Are there any free tools that convert c++ code to idl? I am thinking of something similar to java2idl.
...
I am having an issue using a .NET/ComVisible assembly in Excel/VBA. I defined several parameters as "object" in .NET so they will be translated to Variant in VBA since optional parameters in VBA need to use Variant types.
The problem is when I try to use the object in Excel/VBA, I get a "Run-time error '424': Object required". I think I...
Hi
I have two given lat and lon points. For example, lets assume I have two positions (point_1 and point_2) at coordinates (lat1, lon1) and (lat2, lon2).
I would like to calculate a third point, that is on the same latitude as that of point_2, but x km to the east or west of point_2. So the third point will have the same latitude a...
In some of the IDL I work with I have noticed that there are 2 conventions for marking return values in methods - [in, out] and [out, retval].
It appears that [in, out] is used when there are multiple return values, for example:
HRESULT MyMethod(
[in] long InputParam,
[in, out] long* OutputParam1,
[in, out] long* OutputPa...
I built a client server application using an IDL file for client server communication across the network. Both the client and server programs are in java. When the user enters exit, both the server and the client exit. However I'm unable to kill the nameserver process.
I started the nameserver using the command
tnameserv -ORBInitialPo...
We do have a project wich uses the MIDL tool to create specific header/iid and proxy files. Those files are compiled and linked with the rest of the project using a post build step that calls nmake.
Is it possible to use precompiled headers with thos IDL generated files? How can I inject #include "stdafx-h" and remove other included hea...
We are trying to replace a COM server originally written for a VB6 application
We have no access to source code.
For some reason, the VB6 app can call our constructor, but then it gets:
System Error &H80004002. No such
interface supported.
I assume when it tries to get the interface with QueryInterface.
We have our assembly p...
Reviewing our code I've found a curious definition in one of .idl files:
[
object,
uuid(uuidhere),
dual,
nonextensible,
oleautomation,
hidden
]
interface IOurInterface : IUnknown {
//methods here
};
How can an interface derived directly from IUnknown possibly be a dual interface? Will anything break if I re...
I was about to create a user-defined language file for Notepad++ to syntax-highlight IDL. But before I went and spent the time creating one, I wanted to check with the "community" to see if anyone else has one that's ready to go.
Does anyone have any suggestions?
...
I am working with some legacy c++ code and I need to extend an interface. The current interfaces are for example:
[
object,
uuid(guid),
version(1.0),
dual,
nonextensible,
oleautomation
]
interface IInfo : ITask {
// Methods here
}
[
object,
uuid(guid),
version(1.0),
dual,
nonextensible,
oleautomation
]
interf...
There's a big hullabaloo about hacked source code from the University of East Anglia's Climate Research Unit that Global Warming skeptics are saying proves that the scientists who wrote these IDL and Fortran programs were intentionally fudging data.
http://wattsupwiththat.com/2009/12/05/the-smoking-code-part-2/
To rebut the claim, one ...
For example,
My files are naming after 00.dat, 01.dat, 02.dat..., each file contains multiple columns and I use READCOL to read them into variables.
for i = 0, n-1 do begin
readcol, string(i, F='(I02)')+'.dat', F='D,D', a0, b0
readcol, string(i, F='(I02)')+'.dat', F='D,D', a1, b1
.
.
c1 = a1 / a0
c2 = a2 / a0
...
Hi,
I have a set of struct definitions that are used by both C# managed components and unmanaged C/C++ components. Right now, the identical struct definitions exist separately in C/C++ and C# code - causing duplication and related chaos. What's the best way to maintain single definitions that can be used from both C# and C/C++?
Thanks!
...
I know how to publish a const of a simple type in IDL, for example:
const long blah = 37
But I want to publish consts of complex types, with methods, or at least readable struct-like member fields. For example, perhaps a type called CarType, which has accessor fields like "get_Make", "get_Model", "get_Year", "get_BasePrice", et ceter...
I work in a multi-language environment and use Vim + ctags for navigating the code. However we also use CORBA and exuberant ctags does not parse IDL files.
Does anyone know of a ctags compatible tags generator for IDL?
...
Hello All,
If I want to pass a structure defined in windows.h to one of method of a given interface then how can i do that in an IDL?
Suppose the structure be SECURITY_DESCRIPTOR which is Declared in Winnt.h; include Windows.h
and my interface be
interface dummy
{
[helpstring("method ManageSecurity")]HRESULT ManageSecurity([in]SECUR...