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 > june 2004 > threads for june 8 - 14, 2004

Filter by week: 1 2 3 4 5

Marshalling problems
Posted by Daniel at 6/14/2004 6:09:02 PM
Hi, I'm having trouble converting a C++ structure to C#. This is the definition of the C++ structure: struct PLUGIN_PUBLISH_LIST { int nCount; char sName[50][128]; char sValue[50][128]; char sHelp[50][256]; }; So basicly its a array of 50 strings for each, with a 128/256 ch...more >>


C# unable to ByRef a variant parameter where VB.NET can
Posted by Nate at 6/14/2004 4:32:53 PM
Hello, I am using an ActiveX control in a C# (vs 2003) forms based application. There is one particular method that I can't use in C#, but strangely I am able to use with VB.Net. The method (actually a function that returns a Long) is called "WriteMultiVariables" and takes 3 parameters: (i...more >>

TypeLibTypeAttribute is not exported to TLB when using tlbexp!
Posted by Hani Atassi at 6/14/2004 2:50:01 PM
When using the tool tlbimp, it uses the attribute TypeLibTypeAttribute where applicable to set additional flags on types. I was wondering why when specifying TypeLibTypeAttribute on my classes then generating the TLB using the tool tlbexp, the attribute is ignored? Is this a bug in tlbexp or ...more >>

How do I deploy my RTD Server (Registered for COM Interop)?
Posted by mburkhart NO[at]SPAM mail.com at 6/14/2004 1:41:58 PM
What's nice about RTD (vs. DDE) is that excel can start the RTD/COM server just by typing "=RTD("myserver",...)" into a cell. I've written an RTD server in C# that runs great on my development machine, but I'm having a heck of a time figuring out how to register it correctly for COM interop on...more >>

transforming lparm to a Rectangle structure
Posted by kurotsuke at 6/13/2004 5:05:40 PM
Hi, I'm working with C# and I'm overriding the WindowProcedure the catch the WM_MOVING message. How can I convert the lParam object passed by the Message to a Rectangle so that I can change its dimensions and pass it back to lParam? Any help will be appreciated. Thanks. Andrea...more >>

Differences in ways to wrap .NET objects for use in COM
Posted by Everett Conrad at 6/13/2004 4:33:01 PM
I am curoius about the different ways to create .NET components for use in COM (in particular, VB6). What is the difference between using the IDE template to create a COM-compatible class (example below): ' BEGIN CODE <ComClass(TestCOMClass.ClassId, TestCOMClass.InterfaceId, TestCOMClass.Even...more >>

Automation Server in .NET?
Posted by Max Samookha at 6/12/2004 1:32:12 PM
Can anybody tell a newbie how to create in a .NET language an Automation Server, so that it's running instance could be accessed from VB with GetObject(, "MyServer.Application") like an Office application. Maybe any docs on this topic? Thanks ...more >>

Retrieving URLEcho from IE using C#?
Posted by Dave Gustafson at 6/12/2004 12:02:24 PM
Is there a preferred way of monitoring activity in IE from a .NET based application? It used to be possible to register for URLEcho events with a DDE server. Since DDE isn't directly supported by .NET, it seems that there should be some relatively straightforward way to do this, but I can't fin...more >>



MAPI and P/Invoke
Posted by David B. Bitton at 6/11/2004 7:48:59 PM
I am coding an Outlook 2003 plugin in C#. It has become apparent that the only way to get at the data that comprises an email attachment without saving it to disk first is to use the MAPI. The call to MAPIInitialize is no problem and returns with an S_OK. What I'm not quite sure how to do is ...more >>

Static Methods in Interop
Posted by Chandru R at 6/11/2004 1:33:06 PM
Hi, Is it possible to access static methods / properties of a .NET object using COM Interop? If so how would I access these methods in VB? Thanks Chandru ...more >>

'Class is not licensed for use' COM Interop Exception
Posted by Sameer Motwani at 6/11/2004 12:31:34 PM
Hi, I have written a .Net Application in C# which does database replication for Access 97 databases. In the app I used COM Interop to use the ActiveX DLL Dao350.dll. I tested application on both Windows 2000 and XP and it was doing fine. I even deployed the application on one of our client mac...more >>

RegAsm warning
Posted by Ram Kumar via .NET 247 at 6/11/2004 4:32:09 AM
-------------------------------- From: Ram Kumar Hi All, I am getting the following error when I am trying to register a= =2Edll file=2E "RegAsm warning: Registering an unsigned assembly with /codebase= can cause your assembly to interfere with other applications= that may be install...more >>

Second CoCreateInstance for .NET component failing
Posted by Sandeep Limaye at 6/10/2004 10:31:14 PM
Hi, I have created a .NET assembly using C# and converted it to a dll for COM interop (by setting the option for COM interop to true in the IDE project properties window). It has got registered, and I am able to CoCreate the component from a VC6 client as well. But, the problem arises when ...more >>

gurus! can someone please translate this article?
Posted by Amadelle at 6/10/2004 6:08:33 PM
Hi all and thanks in advance, please bear with me as I will try to explain my problem: I have a .NET dll which I have created (written in C#). which I would like to access through T-SQL's extended procs. I have successfully managed to do this on my local machine which is running SQL 2K + XP ...more >>

CryptRetrieveObjectByUrl parameters?
Posted by Jon G at 6/10/2004 4:44:59 PM
Hi, I´m trying to call the CryptoAPI-function CryptRetrieveObjectByUrl from my C# project. At the moment I´m using a C++ - dll in order to call the function with the following parameters: CryptRetrieveObjectByUrl( My_LDAP , CONTEXT_OID_CRL , dwFlags, 30000 , (LPVOID *)&pMyCRL, NULL , NULL ...more >>

.NET dll works on one server and not another
Posted by Amadelle at 6/10/2004 4:42:21 PM
Hi all, I have a C# assembly which I am trying to access as a COM object through classic asp code. I have achieved this successfully on my own local machine (isn't always like that? "works on my machine!"). However after installing it exactly the same way on another server, the same asp code f...more >>

Retrieving COM Interface
Posted by Jody Gelowitz at 6/10/2004 9:16:45 AM
Has anybody been able to determine the interface of a COM component based on a path? Essentially, what I am looking at doing is passing the path to a COM component into my VB.NET application. The output that I want will contain all public Classes, Methods, and Properties. I understand that t...more >>

ADODB and ADOR interop
Posted by Raghu at 6/10/2004 8:58:45 AM
The ADODB is exposed as .net component in .net framework. However I could not find related .net component for ADOR. Is there a way to get or create this for use with .net framework? Thanks. Raghu/.. ...more >>

Consuming .NET components from VC++ 6.0
Posted by Lee Gillie at 6/10/2004 8:37:14 AM
I've been banging on this for hours, and beginning to think there may be problems in the approach. A class was implemented in VB.NET which performs encryption. It has been tried in both a test harness, and at least one .NET application, and seems solid. I've been told to use this functionality...more >>

Passing strings back from COM server when using late binding
Posted by Jacek Krolikowski at 6/10/2004 6:21:32 AM
Hi, I'm trying to access a COM object that only supports late binding. This is how it works using VB6: 'Create an S_PLUS application object Dim pApp As Object Set pApp = CreateObject("SPLUS.Application"); Dim v1 As Variant, v2 As Variant v1 = CVar("3D") v2 = CVar("3D Line Plot") bSucces...more >>

WinForms component parented as an MDI child in a Win32 app?
Posted by MarkB at 6/9/2004 4:05:48 PM
We have a WinForms component in it's own assembly which is used in our .NET desktop app; the window is set by the app to be an MDI child in the app's MDI window. The component can also be used by other .NET apps that set a ref to our library. Lastly, the component can also be used as a standal...more >>

aximp and delaysign
Posted by Sunny at 6/9/2004 4:03:56 PM
Hi, I'm trying to prepare ActiveX wrapper with delaysign. I use the /delaysign and /publickey: options, but I receive: AxImp Error: The /delay option should be used with /keyfile or /keycontainer. I'm using VS.Net 2003 and framework 1.1 In the docs it is written that I can use delaysign ...more >>

Excel Reference in .NET 2003
Posted by hzgt9b NO[at]SPAM nopost.com at 6/9/2004 2:18:02 PM
In my Project explorer, under my project I have a listing for references. Under references I have one for Excel - when I do a right-click properties I see that the name of the reference is "Microsoft Excel 10.0 Object Library" - which corresponds to Office XP's version of Excel on my machine (right?...more >>

regasm could not load type
Posted by Steven Campbell at 6/9/2004 11:46:04 AM
I have a .NET DLL that has the following inheritance structure (each object inherits from the object above it): BaseObject (VB6 COM DLL) COM Interop DLL (.NET) Abstract BaseObject (.NET) Abstract BaseObject2 (.NET) Concrete Object (.NET) To complicate matters, the Concrete .NET Class nee...more >>

QueryInterface for interface xxxx failed
Posted by Scott at 6/9/2004 11:07:05 AM
I am somewhat new to .net so if this is a stupid question please forgive me. I have a dll that was written in VB6, that I am trying to use with asp.net. I have been developing the site on my local machine, and have deployed to our test environment successfully. Now I am trying to get this to work...more >>

Excel Reference...
Posted by hzgt9b NO[at]SPAM nopost.com at 6/9/2004 6:57:02 AM
In my Project explorer, under my project I have a listing for references. Under references I have one for Excel - when I do a right-click properties I see that the name of the reference is "Microsoft Excel 10.0 Object Library" - which corresponds to Office XP's version of Excel on my machine (right?...more >>

Invoke default method on IDispatch returned from "object" property?
Posted by Robin Tucker at 6/8/2004 2:36:52 PM
Hiya, I'm using the WebBrowser control to embed an OLE object on my VB.NET form. My VB code manages to find the object I'm interested in from the WebBrowser object model via. the IHtmlObjectElement.object property. This, I assume, returns a pointer to an IDispatch interface. How can I invo...more >>

How to interop VARIANT return type in C++ COM client?
Posted by roynorthyork NO[at]SPAM yahoo.com at 6/8/2004 7:08:51 AM
Origional method is: public Object GetAttribute( String attrName ) After interop, the method in TLB is: VARIANT GetAttribute([in] BSTR attrName); but when I try to call this in VC++ COM client app, I met run-time error: Run-Time Check Failure #0 - The value of ESP was not properly saved ...more >>


DevelopmentNow Blog