all groups > dotnet interop > november 2007
Filter by week: 1 2 3 4 5
BYTE* buffer to managed stream?
Posted by Scott McFadden at 11/30/2007 2:55:52 PM
In managed c++, what is the most efficient way to copy the contents of a
native buffer (BYTE*) to a managed stream?
thanks
scott
... more >>
Registering .Net COM enabled library
Posted by Waldy at 11/30/2007 1:18:56 PM
Hi there,
I have written a COM enabled .Net 2.0 library which works fine
on the machine that I wrote it on. However, when I deploy it on a customers
2003 server and try and use it, I get the following error:
The remote server machine does not exist or is unavailable.
Why do... more >>
[URG] Interop WPF with Mappoint
Posted by jml at 11/29/2007 3:05:43 PM
Hello !
I have a big problem : i want to use the MapPoint 2006 activeX with WPF
.... and it doesn't work :(
The MapPoint ActiveX is embeded in an usercontrol,
I put this user control in my WPF window thru a WindowsFormsHost.
When i launch the application on Windows XP, it works ! But no... more >>
Cant use a COM Component from .NET if it was exported from .NET
Posted by Ben at 11/29/2007 12:10:04 PM
I have a COM server executable, written in .NET. I exported a type library
and registered it.
So now I can create an instance of the component using CreateInstance from
non .NET code. That works fine. I can also get hold of the instance by
calling GetObject from non .NET code.
So at this... more >>
defrag API
Posted by Trapulo at 11/28/2007 3:15:30 PM
Hello,
is there any way or documentation to access windows defrag API for ntfs from
NET ?
thanks
... more >>
C#, exposed as COM with pointers as parameters
Posted by Mark at 11/28/2007 2:05:00 PM
Hi...
We've got a mix of old legacy code and new versions in various states of
porting being used in our system.
One of the objects ported to C# and then exposed back to the legacy code as
COM takes a pointer as a parameter. The use of the pointer is opaque (kind
of like HANDLE); we're ... more >>
Interop Error: No matching sub on interface
Posted by gordiangossen@googlemail.com at 11/28/2007 5:28:30 AM
Hello,
I will get a compiler Error when trying to implement an interface,
using ActiveX-types as parameters in VB.NET.
I will explain the problem with ActiveX-ADODB v2.8 but, i can
reproduce the bevaviour with a selfwritten dummy activeX-lib.
DETAILS
- Two VS2005 Projects: A and B.
- Both... more >>
using COM written on VB6 from webservice (C#) Framework 2.0
Posted by ilia.fedorovsky@gmail.com at 11/27/2007 11:34:22 PM
Hi
I'm trying to use COM, written on vb6 from inside webservice(C#).
I put reference on my dll, creating interop. in bin folder.
Then I have something like this
Using Intelex;
....
public Intelex.Application mApp;
public Intelex.IDD mIDD;
....
Intelex.Application mApp=new Int... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Marshaling a bool from unmanaged to managed code
Posted by J.R. Heisey at 11/26/2007 2:04:10 PM
I have a DLL that takes a pointer to a callback function of type:
typedef void ( __stdcall * StdMyCallback_T)(void* context, const char *
sName, bool bState,
EError error, const char * pErrorMsg);
I have defined a delegate as such:
public delegate void MyCallbackDele... more >>
How do I find the main window handle?
Posted by Mike at 11/26/2007 11:57:33 AM
In a DLL written in C#, how can you get the handle of the main window
of the app that called you?
Thanks,
Mike... more >>
Marshal a 'Single' or 'Double'
Posted by Peter at 11/23/2007 1:33:45 PM
In coping data between managed and native code, I make use of the Marshal
class methods, ReadInt32, Copy, StructureToPtr, etc. However, I also want to
copy Double and Single values, but given that there's is no ReadSingle and
ReadDouble, what's the best way to do the copy?
Thanks
Peter.
... more >>
.Net AddIn - Password prompt when closing Excel
Posted by Sergei Didur at 11/23/2007 6:03:00 AM
I am developing COM addIn for excel 2003 using C# and .Net 2.0 interop.
In the code I am sibscribing to excel events like open, activate, etc.
It looks like it causing problem with any VBA addin installed that uses same
events.
For example if you have "Lookup Wizard" addin from Microsoft - af... more >>
VSTO 3.0, Outook 2007 and Publish
Posted by M O J O at 11/22/2007 7:26:00 AM
Hi,
I'm using VS2008.
I trying to create an Outlook 2007 add-in.
After making a very small and simple Outlook test add-in, I wan't to try
an publish it, so I use the Publish feature of VS2008.
But when my clients installs the add-in, it is not showing up in Outlook
2007. Hmmmm ... is... more >>
Application inside remote desktop?
Posted by ARTMIC at 11/22/2007 7:07:01 AM
Did anyone ever need to know if your application is being run inside a remote
desktop session?
I have an application written in .Net 2.0
And I need to know if that application was started inside of a remote
desktop session.
Are there any win API calls I can call to find out if this is the cas... more >>
BM_GETCHECK and BM_SETCHECK and .NET controls
Posted by ME at 11/20/2007 7:39:58 PM
I have googled this quite a bit and I just can't find the answer. I need to
read the state of a radio button in another process. Not much is known
about the other process, other than the fact that it was created with .NET
controls. I have read on various forums that SendMessage(conrolhandle... more >>
ICustomeMarshaler and ref p/invoke
Posted by Peter at 11/19/2007 3:47:11 PM
I'm using C# in VS2005 and having a problem when I implement a custom
marshaler and I call a reference type by ref.
Any help greatly appriciated.
I'm using ICustomMarshaler because of the structure contents I'm trying to
marshal. The sample code that follows doesn't show that structure, b... more >>
Returning a multidimensional array to VBScript
Posted by Marc Vangrieken at 11/16/2007 6:13:42 AM
Hi,
I need to write a ComVisible object in C# and there are some methods
that must return a multidimensional array of strings. I created a .NET
assembly, marked it COM visible, created a TLD via regasm and added
it to the GAC. I can now create instances and execute code, but I'm
not able to ... more >>
How can I translate a DWORD to a .NET object?
Posted by ssg31415926 at 11/15/2007 1:10:56 AM
I have a byte array and I'm trying to translate a DWORD in that array
into an integer so that I can use it as an offset into a later part of
the array. Once I get the offset, I've successfully worked out how to
translate the offset part into a string but I can't work out how to
translate the of... more >>
.NET events crash VB6 app
Posted by ScottP at 11/12/2007 2:49:09 PM
Hi there,
I've been fighting a tough problem for the last week. I have an
application with a VB6 client and a .NET server. On the developer
machine, the application works as expected.
However when I installed our software at our first beta site, the VB6
application now crashes when it ... more >>
How to Create an object of VB6 component in C#
Posted by Andrew HUANG at 11/9/2007 6:22:01 AM
In our MTS server, there are some component coded by VB6. Now I just try to
verify all component working fine, so I create an object for each component.
Using Type.GetTypeFromCLSID and Activator.CreateInstance (in C#) can create
object ONLY for .NET component.
My question is: How to Create an... more >>
VB6 event handler not firing when .net form shown modally
Posted by JimL at 11/9/2007 2:35:49 AM
I am taking a few first steps in adding some .net operability to an
existing (huge) VB6 app. (I am not a VB6 programmer).
I have used the Interop Forms Toolkit (V2.0) to create a .net test
form, and I am instantiating that form from the VB6 app.
The .net form raises an event, which is handl... more >>
ExecutionEngineException in dotnet 2.0 application doing interop with VB6 legacy code
Posted by Willy Van den Driessche at 11/9/2007 12:37:02 AM
We are porting a huge VB6 application to dotnet 2.0. The full application
has 800KLOC of VB6 code. The old application was basically as small shell
application that loaded optional plugins (nearly 100 of them for a complete
installation). Because it is impossible to rewrite all existing code at... more >>
DsoFramer - Microsoft.Office.Interop.PowerPoint
Posted by Mathias at 11/8/2007 11:52:41 PM
Hi,
I try to control a PowerPoint Slideshow with c#.
I have a dsoFramer Control (axFramerControl) and can load and view a
powerpoint presentation within my form. When I try to control the
presentation using Microsoft.Office.Interop.PowerPoint I get a Cast
Exception.
Here is some code to ... more >>
80131534 error trying to instantiate interop com from asp
Posted by Mark at 11/8/2007 11:47:02 AM
Hi...
One of my colleagues is have a problem that's driving him crazy.
We have a number of assemblies that expose some C# objects as COM. One
particular one is throwing an 80131534 error on instantiation from an ASP
page. The error message doesn't really say diddly about what it doesn't... more >>
Web Service calls Queued Component
Posted by BillGatesFan at 11/7/2007 1:28:56 PM
I have a web service which calls a .NET queued serviced component in
COM+. I turned statistics on for the component. I call the component
10 times, 10 objects get created but they do not go away. I'm calling
Marshal.ReleaseComObject after I make each call.
[WebMethod]
public NotifyRes... more >>
Accessing VB6 associative array from C#
Posted by at 11/7/2007 9:37:32 AM
I have a legacy VB6 DLL that I'm calling from a C# program. I'm using
the "Add Reference" functionality in VS 2005 to accomplish this.
One of the classes that are implemented in the DLL has a member which
is an associative array (indexed by strings.)
If I call into the DLL from VB.NET, I ca... more >>
tlbimp importing COM interface params as if they were locally defi
Posted by Sean Hokanson at 11/6/2007 10:46:06 AM
I have an .idl file that defines an interface with a method that takes
another (externally-defined) interface pointer as a parameter (see example
tmp.idl file below, where ITmp::DOM takes an IXMLDOMDocument pointer). When I
run midl.exe to generate the .tlb, then run tlbimp.exe on that .tlb, t... more >>
Automate mappoint - save map as gif
Posted by M O J O at 11/2/2007 12:00:00 AM
Hi,
I'm automating MapPoint from vb.net. When I save as webpage...
mapApp.ActiveMap.SaveAs(My.Settings.MapPointTempFilnavn,
MapPoint.GeoSaveFormat.geoFormatHTMLMapAndDirections)
.... the map is saved with the current MapPoint application width/height.
How can I from vb.net set the heig... more >>
exposing .net methods through interfaces?
Posted by Andrew Brook at 11/1/2007 2:40:55 PM
Hi Everyone,
I have a .NET 2.0 set of classes that i've recently attempted to call from
an MFC application using regasm to generate and register a type library. I
didn't author my classes with the intention that they would be called from
an unmanaged application and i've run into a few prob... more >>
|