Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet interop > november 2005 > threads for november 15 - 21, 2005

Filter by week: 1 2 3 4 5

register COM (not COM+) component under .NET (managed code)
Posted by Lelekács Zoltán at 11/21/2005 6:42:42 PM
Hi, I would like to register a COM ocx under managed code (C#). I cannot use reg-free way, because the code has to run under Win2K. I cannot find any useful site/code. Thanks for any help. lelez ----------------------------------- http://www.lelez.hu http://www.csitcset.hu ICQ: 17...more >>


outlook items "addition time"
Posted by hsuntn NO[at]SPAM gmail.com at 11/21/2005 12:52:48 PM
I am grabbing Outlook MailItems using the Items[] property on my Outlook inbox. When I iterate through them, I notice that they are not ordered in ReceivedTime or CreationTime order. For example, Items[2].ReceivedTime is April 2005 Items[3].ReceivedTime is May 2005 Items[4].ReceivedTime is ...more >>

COM can't call .NET dll
Posted by Barb at 11/21/2005 6:39:06 AM
I'm trying to use COM Interop for the first time, and I can't quite get it all to work on my server. I have a COM Object that needs to call my .NET dll to encrypt a file. Then that file needs to be written to the web server. When I put the .NET dll in the same directory as my COM dll on my ...more >>

Pressing Tab in .NET switches to COM window
Posted by x at 11/20/2005 7:32:35 AM
I am launching a .NET windows form from some vb6 app. When I press the keyboard tab button it switches to display the vb window. Any ideas why? I am compiling the .NET form in Visual Studio with the compile for COM flag set to TRUE. haven't used any strong naming. Thanks ...more >>

Native DLL as a resource? Possible?
Posted by Ian at 11/20/2005 7:11:33 AM
Hello, I have a .NET application that calls functions in a native DLL. In order to ease deployment, and for simplicity's sake, it occurred to me that the best way to distribute this DLL would be as a resource. So I've added the DLL to the project as an embedded resource, and I've confirmed...more >>

Using the PickIconDialog with Windows 2000
Posted by Andrea at 11/19/2005 7:40:01 PM
Hi, I need to open the PickIconDialog window (I'm using C#). [DllImport("shell32.dll",CharSet = CharSet.Auto, CallingConvention = CallingConvention.Winapi)] public static extern int PickIconDlg(IntPtr hwndOwner, System.Text.StringBuilder lpstrFile, int nMaxFile, ref int lpdwIconIndex); ...more >>

Dll parameter: pointer to a unsigned char[] as parameter
Posted by Patrick at 11/18/2005 9:46:56 PM
To people wiser than myself: I'm calling a native dll in C# that takes a frame number and a pointer to an unsigned char to populate with video data. Here's the C++ method Signature: void DirectShowSource::GetFrame(int n, unsigned char* buf) and here is my attempt: [DllImport("vidfram...more >>

Acess the message pump from with in a class
Posted by justengland NO[at]SPAM gmail.com at 11/18/2005 2:53:35 PM
Does anybody have the example of how to use getmessage api? I would like to monitor the pump from with in a class or common dialog. Thanks Justin ...more >>



AxSHDocVw.AxWebBrowser Error (on VB.NET 1.1 Winform)
Posted by webgreginsf at 11/18/2005 11:51:02 AM
I'm having a problem using an axWebBroswer control on a VB.NET 1.1 Winform. When the form first loads, I'm able to call the .Navigate method with a url and everything seems to work fine, as the correct page is displayed. However, if I attempt to use the .Navigate method at a later time to na...more >>

Events from .net DLL not reaching VB6 app
Posted by Todd Beaulieu at 11/18/2005 6:56:37 AM
I have a VB6 app that instantiates a .net DLL class, sinking the events. It never receives the events, however. This very code has been working for almost one year on a number of servers. The problem server is a new box that we're trying to bring up with our applications installed. I get no er...more >>

RegAsm.exe /regfile /codebase
Posted by PFx at 11/18/2005 2:22:01 AM
Hi, Is it allowed to specifiy %windir% in de .reg-file that regasm.exe /codebase /regfile:foo.reg produces? Instead of "CodeBase"="file:///C:/WINDOWS/System32/Concentra.TripleDeal.DLL" I would like "CodeBase"="file:///%windir%/System32/Concentra.TripleDeal.DLL" After manually ...more >>

Ptr Arithmetic w/ Marshaller
Posted by Rich S. at 11/18/2005 2:20:02 AM
Hi, It is especially challenging to do interop marshalling with the Win32 API BackupRead, because it returns a byte array that can be interpreted in several different ways. My specific question is how to use the Marshal functions such as PtrToStructure when the unmanaged structure that I...more >>

At witt's end!!!! QueryInterface for interface xxx failed.
Posted by Todd Beaulieu at 11/17/2005 6:52:25 PM
I have spend ALL DAY on this. I see TONS of references to this error on Google, but NO solution to my problem. The DLLs in questions are all mine and they all work on several machines, but they refuse to work on one machine. I have a COM dll and an interop DLL for it. I have a .net DLL that ...more >>

Function Pointers in a struct
Posted by fvillaf at 11/17/2005 5:45:30 PM
I need to utilize in managed code some security functions from secur32.dll. To do this, i have to call 'InitSecurityInterface' function, which returns a pointer to a 'SecurityFunctions' struct. This struct have pointers to the secure methods. I've defined: [DllImport("secur32.dll")] ...more >>

Marshal array in structure
Posted by Lucvdv at 11/17/2005 9:26:36 AM
I'm trying to interface to InfoZip's Zip32.dll from VB.Net code. The DLL expects a structure with all its input parameters: typedef struct { int argc; // Count of files to zip LPSTR lpszZipFN; // Archive file name char **FNV; // file names to zip...more >>

ActiveX as a Service with events
Posted by TAPIGuruFred at 11/17/2005 8:43:08 AM
Putting this all together in one message to escalate this to managed group support using our MS Partner alias Have an ActiveX created in Delphi 7 and need to run it in a service by dynamically creating the controls at runtime with event handling. Using form based apps in any environment th...more >>

IContextMenu3.HandleMenuMsg VS2005
Posted by Jeff Gaines at 11/17/2005 5:50:27 AM
Having installed VS2005 pro yesterday (MSDN download version) I am gradually moving my VS2003 stuff over. I am having a problem with IContextMenu3.HandleMenuMsg (called when the Explorer Context Menu is shown) although it worked fine in VS2003. I get an error: System.AccessViolationException...more >>

How to get a variant returned from a c++ function in vb.net?
Posted by Thomas W at 11/17/2005 1:39:40 AM
Hello, I'm trying to call a function from a C++ dll which returns a variant: VARIANT DLLEXPORT ExecuteFunction (LPCSTR); This function (which I can't change) executes a SQL query and returns a single value - whatever the query asks for: integer, string, double etc. My declaratio...more >>

interop for string[] array
Posted by Egbert Nierop (MVP for IIS) at 11/17/2005 12:00:00 AM
The P/I function ADsBuildVarArrayStr works. When I look at the IL, no heavy Marshal code is done. I even suspect, that a pointer is passed to the array and that the array even not is pinned. But when it comes to passing a string[] array through a struct, it does not work. Are there any secr...more >>

COM interop - Framework Version
Posted by Nick Hall at 11/17/2005 12:00:00 AM
I've come across a bit of a problem since installing the 2.0 framework. I had created a class library using Visual Studio 2003, with one class configured as a COM object. The project was configured to launch a simple Visual Basic 6.0 project which allowed me to create the object and call som...more >>

MAPISendMail hang
Posted by Clive Dixon at 11/17/2005 12:00:00 AM
I'm calling MAPISendMail from my form with the MAPI_DIALOG flag set. However the resulting (modal) Outlook mail message window 'hangs' until such time as I click on a window of another process and click back again. Any ideas? ...more >>

PIA for Shell32
Posted by Brian R. at 11/16/2005 3:50:07 PM
Does Microsoft have a Primary Interop Assembly for shell32.dll (Windows XP - SP2)? If not, does MS suggest that developers create and sign their own PIA for this component? -- Brian R. ...more >>

How can one enumerate COM object properties exposed via IDispatch in .NET?
Posted by dblock NO[at]SPAM dblock.org at 11/16/2005 12:51:11 PM
I have a COM object implementing IFoo and a property get_Property, put_Property... I can get a CLSID representing an object that implements this and other interfaces, then create it with Activator.CreateInstance and cal object.GetType().InvokeMember for any member on that unmanaged COM object, s...more >>

STAThreadAttribute is ignored in .net Framework 2.0?
Posted by ThomasBechter at 11/16/2005 2:01:03 AM
Hi, i just moved my existing Application to VS2005 and .net 2.0. This application is using COM Interop. I don't changed my main method. [STAThread] static void Main(string[] args) { ... } Now with the 2.0 framework the main thread apartment is MTA although I defined it as STA with the at...more >>

MSProject Error
Posted by Mohamed Zied Nouira at 11/16/2005 1:39:42 AM
Im trying to use the MSProject COM "interop.msproject" but when i create a new object ihave this Error : System.Runtime.InteropServices.COMException: =C9chec de l'ex=E9cution du serveur thanks ...more >>

Unmanaged dll, macro definitions
Posted by Anna at 11/15/2005 8:59:06 PM
I have a third party dll (C++) which I need to call from my c# class. I defined [DllImport("The.dll")] public static extern ... for each function that I want to use. The brief API document for the functions states that the return values from these functions can be H_FAIL and H_SUCCESS...more >>


DevelopmentNow Blog