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 > december 2003 > threads for december 8 - 14, 2003

Filter by week: 1 2 3 4 5

GetProcAddress in .NET
Posted by Eugene at 12/14/2003 1:05:29 AM
Hello Do anybody knows a method to call a dll function from .NET using address from GetProcAddress, imported by [DllImport("kernel32.lib")] without creating a new dynamic assembly and emitting code? The task is using multiple dll's with fixed exported functions (as plugins) in .NET, so i have...more >>


.Net Array of Class in VB6
Posted by Jeffrey Cristine at 12/12/2003 10:55:15 PM
Why can't I use this class in VB6 with data? I can't Redim it, etc. You will see that I have an array of class Y as ITEM() in class X. <ClassInterface(ClassInterfaceType.AutoDual)> _ Public Class X Public ITEM() As Y End Class <ClassInterface(ClassInterfaceType.AutoDual)> _ Public Cl...more >>

Problems with MIDL tool - cant get .tbl files for fruther processing with tlbimp tool.
Posted by Jacek at 12/12/2003 8:11:53 PM
Hi Everyone! MIDL compiler is very effective in getting IDL files compiled into TBL files which further can be used for generetion of interoperation assemblies with TLBIMP tool. Unfortunately I got stuck when MIDLing some idl files supplied with Platform SDK - UrlHist.idl and Urlmon.idl. I got...more >>

Type Mismatch calling VT_UNKNOWN
Posted by dnoel NO[at]SPAM shore.net at 12/12/2003 1:41:49 PM
have a C++ application that declares an Automation method using the following signature: DISP_FUNCTION(apauto, "DMIToSectionComponent", DMIToSectionComponent, VT_BOOL, VTS_I4 VTS_UNKNOWN) I would assume that I can use the following method signature to pass an object into my C++ code ...more >>

QueryInterface failed for interface
Posted by Vito P. Jokubaitis at 12/11/2003 5:48:06 PM
I created a ServicedComponent that implements an interface that declares a single method that returns an int and that takes no parameters. I've put GUIDs on everything that needs them (interface, component class, ApplicationID, and assembly). If I register the component with COM+ service...more >>

WM_SETICON
Posted by David McConnell at 12/11/2003 3:57:33 PM
Hi, I have come across a puzzling problem with regard to sending the WM_SETICON message to set the big and small icons associated with a Windows Forms Application. My code works exactly as expected when running the application under Windows XP but does not work when running the same applicatio...more >>

Early binding do interop assembly with specific PROGID
Posted by Onno Ceelen at 12/11/2003 10:26:37 AM
Hi, I am migrating some of my COM components to .NET. During the process, the COM objects have to talk with the .NET components. One desire I have is that I don't have to change my COM code but still want to take the full advantage of setting up the assemblies as I want. The problem I encou...more >>

Interop C# to VB6 with Date
Posted by Eric Johannsen at 12/10/2003 8:15:16 PM
Hi, I need to populate a struct in C# and pass it into VB6. It works fine for almost all data types, but for some reason dates don't get passed through correctly. The example provided is quite simplified. In the real code, many different data types including fixed-length strings are marshal...more >>



Dealing with **void pointers using PInvoke
Posted by M at 12/10/2003 7:19:50 PM
Hi Folks, If you have got an unmanaged C++ API call such as: bool foo(LPTSTR lpszMyOutString); which returns a pointer to a pointer. How do you marchal the pointer in C# to return the string?? Cheers, Martin ...more >>

Converting transparent bitmaps to IPictureDisp
Posted by Chris Morrison at 12/10/2003 4:25:02 PM
Hi all, I am writing an Add-In for Visual Studio.NET using C#. My Add-In adds items to the Edit menu and creates it's own toolbar. Each command has it's own bitmap icon. I have given each bitmap a magenta background and I am creating the images in my code using: System.Drawing.Bitmap M...more >>

COM Newbie in trouble
Posted by Kent Ogletree at 12/10/2003 4:17:51 PM
I am writing a Reports add-on to an existing application in VB 6. Everything is working up to the point I try to authenticate users against the app's user data base. The vendor uses a custom hash algorithm to encrypt the passwords. The encryption is done in a COM DLL and I am having a problem co...more >>

XP PIA's with Word -- Can't even get a Doc added without troubles
Posted by JunkMailOnly95 NO[at]SPAM yahoo.com at 12/10/2003 2:33:08 PM
Hello, I'm at my wits end trying to figure out the best way (or at least a way that doesn't crash) to use interop with Word for spellchecking. I've boiled my code down to its simplest form - trying only to open Word and close it, and I still get exceptions. I'm using VS 2003 and have the Of...more >>

How to marshal complex structure with embeded structure array
Posted by Simon at 12/10/2003 11:13:51 AM
Thanks in advance. Simon ...more >>

Bizarre GetActiveObject problem in setup project!?!
Posted by Bradley Plett at 12/10/2003 12:46:10 AM
I have a simple utility program that relies on the user having their MS-Outlook running before my program runs. This is obviously very simple using Runtime.InteropServices.Marshal.GetActiveObject("Outlook.Application"). The utility program works like a charm when run by itself. However, if I ...more >>

alloct some memory to aBuffer in the C#
Posted by james ou at 12/9/2003 11:21:02 PM
hi, everybody, I declare aBuffer like this : byte *aBuffer; How can I alloct some memory to aBuffer in the C#? thanks...more >>

Access VB6 codebase from .NET
Posted by Matt F at 12/9/2003 11:15:06 PM
Hi all I am currently developing an ASP.NET app which has to use VB6 DLLs for it's business logic. With ASP, we used to be able to have the VB6 code running, and the ASP script would access the code when it created an object from the VB6 classes. This enabled me to test the ASP front end...more >>

Prevent COM addin from running during Automation.
Posted by Tim Marsden at 12/9/2003 6:49:38 PM
Hi, I have written a Excel Addin in VB.NET. When I open Excel normally I want the Addin to run. However if I open Excel via automation I don't want the Addin to run. For example the addin prompts the user for some info. I use automation to get some data from a Workbook, but I don't what to ...more >>

ActiveX Object is different type in Web and Windows applications
Posted by Derek Iovieno at 12/9/2003 1:17:14 PM
I have an ActiveX Component that can either be used as a control on a form, or it can be instantiated in code to work as an automation server. The project I am working on contains three solutions, a Windows Application, a Web Application and a solution containing common code for accessing...more >>

Multi-threaded apartment model in C# COM objects
Posted by Sharanga Dayananda at 12/8/2003 4:27:28 PM
Hi I have a COM object written in C#, which I'm having trouble with. It is a database access library which is being called from unmanaged C++. Unfortunately, I don't seem to be able to call multiple instances of the object from within a multi-threaded C++ app. Only one thread appears t...more >>

Calling out-of-proc COM object from ASP.NET
Posted by Martin Knopp at 12/8/2003 1:28:34 PM
Anybody here can shed some light on this issue? Is it at all possible to call out-of-proc COM objects from ASP.NET? If yes, what configuration settings are required? I played around many hours already trying to get all security settings done (as I did not find specific informations I follo...more >>

A little stuck
Posted by Lars Olsson at 12/8/2003 5:54:14 AM
I'm wrapping a call to the netapi32 function NetDfsGetClientInfo. I'm a bit stuck when it comes to the parameter LPDFS_STORAGE_INFO which is in the DFS_INFO_3 and DFS_INFO_4 structs. MSDN says that LPDFS_STORAGE_INFO is a pointer to an array of DFS_STORAGE_INFO structs. Generally, how does one ...more >>


DevelopmentNow Blog