I have a COM project that contains a number of IDL files, some of which are imported into other ones. How does Visual Studio decide which ones to compile (using MIDL) first?
I want to control the order. I have a master IDL file which contains my library declaration with several imports, and I get a build error if it is not the first one...
Are Visual Studio 2008's default MIDL Output properties wrong when I add a new Midl file to my project?
I have a basic ATL project, suppose it's named SomeProject. By default Visual studio creates a file called SomeProject.idl. Then I add a new Midl file named SomeMidl.idl (via Add Item and selecting Midl file).
When I open the Propert...
I have a plot like this:
http://i.imgur.com/i9xp5.png
I need the data coordinates of points in order to plot wind barbs.
Now, if I wanted a wind barb to be drawn at x=100, y=20, is there a way I can obtain the data coordinates of that ( or other ) points of my plot?
...
I'm creating a COM type library with over one hundred interfaces. Defining all of the interfaces and coclasses in a single library is unreasonable... the IDL file becomes thousands of lines long! So I'm trying the idea of putting each interface in its own file, and using imports to satisfy its dependencies.
What strategies can I use to ...
I have two type libraries with COM interfaces that I wrote using ATL and Microsoft's IDL. I would like an interface in one library to inherit from an interface in the other.
Essentially, I would like to do the same thing that Steven described at How do I create interface methods using .tlb types in VS C++?. The only person who answered ...
I have a COM/ATL project with a number of IDL files. Most of these IDL files import oaidl.idl and ocidl.idl.
Whenever I compile my project, Visual Studio calls MIDL to recompile oaidl.idl and ocidl.idl... every single time it encounters the imports. These two IDL files end up getting recompiled multiple times, making project compilation...
For example, the DOM specification has various IDL definitions, one of which is the Interface Node. How would you go about translating thiseven a portion of thisinto actual C#? I mean, where would you even start? As far as I understand, C#'s interfaces behave much differently than what IDL is calling an interface here. Am I wrong?
inter...
I have been working on getting a basic ATL project to compile in Visual Studio 2008 and I keep running into errors. Ultimately I have gotten stuck with the following build errors:
1>Linking...
1> Creating library Debug\SomeProject.lib and object Debug\SomeProject.exp
1>dllmain.obj : error LNK2001: unresolved external symbol _LIBID_Som...
A default ATL Simple Object has the following at the top of its IDL file:
import "oaidl.idl";
import "ocidl.idl";
What are these files for, and how do I know when I need to import them? Is there any documentation which describes what is defined in these two files? I have no idea what "oa" and "oc" stand for, and there are no helpful c...
Hi all,
I have been having a prolonged encounter with the beast known as COM Interop...
I am currently trying to generate a .tlb from a .idl file generated by the OLE/COM Object Viewer. However when trying to run Midl.exe to compile it I get an error:
.\Sim.API.IDL(236) : error MIDL2025 : syntax error : expecting a type s
pecificatio...
Hi, I'm sure this has been asked before but my question is a little different. I have these files that I'm working with huge data. Some of the data files are more than 2 gigs. I just jumped into this project and all edits have just been on one file. We also have 2 computers and those files aren't in sync all the time. The code is written...
I may be going about this the wrong way, but I'm trying define and fill arrays within a loop.
for i = 0,39 do begin
xx = long(findgen(n+1l)*sx + line1x[i])
sz = size(xx)
arrayname = 'line' + strtrim(i,2)
arrayname = findgen(3,sz[1])
arrayname[0,*] = xx
arrayname[1,*] = yy
arrayname[2,*] = vertline
endfor
This obviously won't work, ...
I'm trying to specify custom Y axis tick marks, but IDL is not cooperating.
http://i.imgur.com/BFqMO.png
In the top left, 1.0000 should be the max value, but IDL puts a 57 there. 57 is the max array dimension of my data.
I have an array of eta levels(strings) corresponding 1:1 with the array indices, and I want to use them as tick m...
For those unfamiliar with IDL (interface description language), it abstracts data description for use across platforms (java, c, c++, etc). My project has dependencies Foo.c, Foo.h, FooHelper.c, and FooHelper.h which are generated from Foo.idl. How do I run an arbitrary command when Foo.idl changes, but still include Foo.c, FooHelper.c, ...
The Delphi project I'm working on requires me to create a very large type library in order to add COM support. The problem is with the type library/ridl editor in Delphi is that it becomes difficult to manage (from a programmer point of view) such a large file, and I'd like to split it along functional lines. The problem I have is tha...
Hi all,
I have 2 .net dll's which I expose to COM using REGASM. In order to simplify referencing within a COM client I would like to make these into one file.
I have tried converting both files to IDL and then copying the contents of the Library section of one into the other and then compiling back to .tlb with MIDL. This works fine fo...
Before I start using CORBA I want to know something.
It would seem intuitive to me that you could use an IDL type as an attribute of another, which would then expose that attribute's methods to the client application (using ".") as well.
But is this possible?
For example (excuse my bad IDL):
interface Car{
attribute BrakePeda...
I have a C++ activex control that I need to make an installer for. It needs to drop the dll and make some registry keys.
I have about 6 .RGS files which I made for self-registration via regsvr32, which work.
To do an installer I am manually porting the RGS scripts into the visual studio 2008 windows installer registry GUI. I feel like ...
Hi,
Would anyone know how to properly hide classes, methods and properties from intellisense while preserving the ability to call them; and so they do not appear in interop assemblies that are generated from a type library?
I'm writing API hooks for automated testing we don't want exposed to consumers yet. This appears to work well from...
I'm looking to communicate with a windows process via RPC. The application I want to communicate with is developed in C++ using Visual Studio 2008. The application provides its interface through an idl file which is then compiled using the microsoft midl tool. This application is already developed and cannot be modified.
I'm looking to ...