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 > october 2003 > threads for october 15 - 21, 2003

Filter by week: 1 2 3 4 5

Mixed byVal and byRef parameters in DefinePInvokeMethod
Posted by Matthias Klöpper at 10/21/2003 11:09:12 PM
Hi, I have a little problem with supplying a mixed set of byVal and byRef parameters to a dynamically created PInvoke method. I have the following message signature which works perfectly when created via DllImport: int CT_data(ushort tn, ref byte sad, ref byte dad, ushort cl, byte[] c, ref u...more >>


Implementing asynchronous COM interfaces
Posted by rwalker NO[at]SPAM webplan.com at 10/21/2003 7:52:28 PM
I am trying to implement an asynchronous COM interface in managed C++. I am having trouble with the implementation ICallFactory. When ICallFactory::CreateCall is invoked I am passed the object reference which should be the controlling unknown of my call object. In the unmanaged world I woul...more >>

COM Aggregation in VB.NET
Posted by Mike Hamsa at 10/21/2003 6:41:54 PM
Is it possible to implement true COM aggregation using COM Interop in VB.NET - I'm working with a product that allows for customizations through COM aggregation and was wondering if this was possible using VB.NET. More specifically, the product has core COM components that can be aggregate...more >>

Interop and VB Collections
Posted by Joe Hershman at 10/21/2003 4:35:50 PM
all, i am trying to implement an interface that has a vb collection as the input argument. the interface is defined in a object library written in IDL, so the actual parameter is declared as a variant. the VB class that implements this interface is casting a collection to the variant. if ...more >>

Creating .ocx in .NET(c#)
Posted by roy at 10/21/2003 4:27:05 PM
Hi. Is it possible to create ActiveX in .NET? The steps I took: 1.Created project of type "class library" 2.Compiled it with "Register with COM interop" 3.Use "Regasm" to create .tlb and to register it Then I tried to put this "contol" on a VB form / Access form, but It is impossible. My...more >>

Calling Win32 CopyFileEx.
Posted by Aleksei Guzev at 10/21/2003 3:13:50 PM
Hi, To display the progress of a copy operation I have written the following code (C#) static void Main(string[] args) { bool cancel = false; int var = 0; CopyFileEx( args[0], args[1], new CopyProgressRoutine( CopyProgress ), var, ref cancel, 1 ); GC.KeepAliv...more >>

"Object does not match target type." exception with Word 2003
Posted by Carlos J. Quintero at 10/21/2003 11:35:02 AM
Hi, I have found an exception "Object does not match target type." in the following circumstances: - Using Microsoft Word 2003. It does not happen with Microsoft Word 2002. - Using Reflection to manipulate Word instead of late binding (Option Strict Off) in VB.Net The code to reproduce t...more >>

MS Project COM Exception
Posted by Jonathan Fong at 10/21/2003 10:54:04 AM
Hi, I have some trouble with MS Project COM object. The following C# code segment has given me an "An unexpected error occurred with the method" exception during accessing timeScaleValue.Value after 10 looping in the foreach. However, there is not problem accessing other properties such as...more >>



how to return an array of objects from .net to vb
Posted by erwin NO[at]SPAM richard.net at 10/21/2003 7:31:27 AM
I would like to write a function in c# that returns an array of objects to a client written in VB. The Classbrowser in VB correctly shows the function as returning an array of CollectionItem objects, but I cannot call the function in VB. this is my VB code: Dim srv As New WSClientVB.Login...more >>

Size and Name
Posted by Rajesh Abraham at 10/21/2003 3:41:08 AM
I have a VB6 class, which when made to a DLL is about 60KB and I am referencing that in my C#.net Project. Now I have two questions. 1. The name of the dll when compiled in vb6 is say myclass.dll, I see that .net has mase a dll as Interop.myclass.dll. Is this norma? 2. The size of Interop.myclass....more >>

Excel Interop with C# strange !!!
Posted by Gevik at 10/21/2003 1:43:40 AM
Dear people, I have question regarding accessing Excel with C# in VS.NET 2003. Adding the Excel COM reference goes okay and I can create an Excel.ApplicationClass object without problems. However when Excel.ApplicationClass gets created the XLA addins allready set in Excel do not load. Cou...more >>

Word doc history
Posted by John at 10/21/2003 1:19:59 AM
Hi My vb.net opens a word document from a word template. I am trying to find when the document is saved by the user so I can make a history in my vb.net app. Here is how I think it may work; Open a word doc from vb.net app, pass ref of a vb.net event handler to the word doc, in word, use Fi...more >>

Word options dialogs
Posted by John at 10/21/2003 12:28:17 AM
Hi I am trying to automate word from my vb.net app. The problem I have is how to display the envelopes and labels option dialogs in Word 2000. Anyone knows how to do it from vb.net? Thanks Regards ...more >>

trying to work with WinSCard
Posted by Ray at 10/20/2003 9:35:04 PM
I am having a problem with issuing commands to my smartcard, I converted the call to SCardTransmit as follows: [C#] [DllImport("WinSCard.dll", EntryPoint="SCardTransmit", CharSet=CharSet.Unicode, CallingConvention=CallingConvention.StdCall)] public static extern uint SCardTransmit( [In] ui...more >>

multi byte char * to csharp string
Posted by caviar at 10/20/2003 2:45:35 PM
I'm trying to read in a ref parameter from a native dll, its working in vb if i use the kernel32 functions below transforming the ref param to a vb string: Now, i want to skip this vb dll and use the native dll directly from c# [DllImport("pafutw32.dll")] // CharSet = CharSet.Auto, CallingCo...more >>

Problems with interop sample (assembly or dependency not found)
Posted by John Murray at 10/20/2003 12:55:12 PM
I am having problems debugging an application that is supposed to use a COM server created in C#. In order to limit the possibly problems, I have given up working on my own code, and turned to a sample to diagnose what might be going wrong. I have build (not using the VS.NET IDE) the first...more >>

Problems with DefinePInvokeMethod
Posted by Matthias Klöpper at 10/19/2003 2:27:20 AM
Hi all, i tried to dynamically invoke an APi-function via Reflection.Emit. Everything works fine with calling the function but I seem to be unabled to get the functions return value. The call opens a MessageBox in Abort-Retry-Ignore mode just as expected. But whatever button I click on the retu...more >>

VB.Net calling Excel automation server
Posted by Bob at 10/18/2003 8:15:44 PM
Is there a way to test an Excel application object to see if it is "valid"? Same question for a workbook. Testing for "Nothing" doesn't work, because even after a workbook has been closed or the application quit (by the user) the reference variables still point to "something". However, any ...more >>

Strong naming and COM Interop wrappers
Posted by Stu Carter at 10/17/2003 5:09:30 PM
Hi, ENV: Windows 2003, Visual Studio 2003. I'm in the process of strong naming all our assemblies, however, those that use COM Interop wrappers (such as the ActiveDS type library) that have been generated by Visual Studio will not build because the interop is not "Strong named". Fair enoug...more >>

Interop Problem with a Microsoft DLL for DTS Packages
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 10/17/2003 3:16:12 PM
Hi, I am using the custtask.dll interop in a C# application. This DLL comes from Microsft SQL Server in order to write applications creating and/or managing DTS packages. This DLL is usually used with the dtspkg.dll. Everything is working fine except for two types of DTS tasks: MessageQu...more >>

Framework 1.1 and Word interop
Posted by Vincent LEMAIRE at 10/17/2003 12:21:18 PM
Hi, Since I use Framework 1.1, I have an error when I use Word Interop, error which I did not have with Framework 1.0. When I do this : Word.Application wrdApp = new Word.Application(); I have the error message : System.Runtime.InteropServices.COMException (0x8001010A): Le filtre de ...more >>

Office 2000 Addin
Posted by codex_sinaiticus NO[at]SPAM yahoo.com at 10/17/2003 4:45:13 AM
I've been developing in Windows XP with Office 2002. I have written a set of addins in C#. They work fine in Windows XP machines with Office 2002, but I believe that they are not working when I install the software in Windows 2000 with Office 2000. I downloaded and believe I am using the Offi...more >>

char string
Posted by james ou at 10/17/2003 12:03:20 AM
hi, everybody, When I declare follows in C unsigned char *s; unsigned char **s; How can I declare them in C# ? thanks...more >>

Excel getting hung up during VB .Net app
Posted by Bob at 10/16/2003 11:40:40 PM
Help! I have a VB .Net program that reads data from a piece of hardware every so often (from 250ms to a few minutes) and then writes the data to an Excel file. It generally works, except sometimes Excel gets completely hung up, if you invoke Excel separately outside the application. We nee...more >>

I'm getting "type mismatch" when I return a System.Array in VBS.
Posted by Hasani at 10/16/2003 12:30:07 PM
I created a library in .net and I need it to be com compatible. I've been testing out my com interop using vbs here's a snippet of the code that gives me a problem Set comObj = CreateObject("iCode.Interop.ComInterop") Set item = comObj.ItemFromItemCode("KV35S42") Set info = item.AdditionalInf...more >>

export of COM object to C++?
Posted by Trokey at 10/16/2003 12:02:28 PM
Here's my situation: I have a .NET (C#) dll (COM 1) which contains a reference to another COM library (COM 2). I also have a C++ program which accesses COM 1 via Interop. I want to include a routine in the interface to COM 1 which accesses an interface defined in COM 2. How do I do this?? I have...more >>

when multiple word objects are running
Posted by philipl NO[at]SPAM vistatec.ie at 10/16/2003 10:22:53 AM
hi, I have a program which waits for batches documents to be dropped into a folder, once this happens, a class which activates the word object is instaniated per batchg of docs & a number of things such as spellchecking grammer checking etc are done. When one batch(containing one or more docs...more >>

Interop problem... Entry point not found
Posted by José Joye at 10/16/2003 9:37:45 AM
I know this has been ask many many times... I have one C++ managed dll that consumes another non managed c++ dll. My NON managed dll exports for instance the following: __declspec(dllexport) string GetDataFromImgFile(const string &strFileAndPath, bool bUseStrictValidation ...more >>

please respond: class methods not exposed to COM
Posted by Edward Wilde at 10/16/2003 6:32:27 AM
I am resubmitting this post in the hope that a MSFT employee will repsond. I understand that as an MSDN member I am garanteed a response within 72 hours. My original question is as follows: I'm porting a set of VB6 COM+ business objects to Visual Basic .NET and I wanted to take advantage o...more >>

Early Binding between .NET and VB6
Posted by Thad Sayre at 10/15/2003 8:10:33 PM
I was searching for an answer to this exact question when I ran accross a post in this forum from back in Feb., but was never answered. I am reposting in hopes that someone can now help. The only thing I can add to the original posters comments is that it works fine if I use an AutoDual Cl...more >>

.NET consumption from COM problem
Posted by Richard K Bethell at 10/15/2003 6:26:16 PM
I am trying to consume a .NET project from VB6. And I am at my wits end. I've tried making the thing a global assembly cache object. I've tried just trying to run it locally. I am really not having any luck. The .NET application is a signed assembly. My latest tactic is to set the ClassInter...more >>

Confused??How to use COM callback functions in .NET?
Posted by lily at 10/15/2003 4:17:27 PM
I have a .NET remote server and a C# console client. I want the .NET remote server to wrap COM callback function, so my C# client can use those functions remotely. After I got metadata from COM DLL, I am so confused. (My original COM class is called DumpEx.) There are DumpEx, DumpExClass, IDumpE...more >>

Create COM+ subscriptions programmatically?
Posted by Christoph Wienands at 10/15/2003 3:05:58 PM
Hello everybody, currently I need to implement some kind of messaging framework for processes running on one computer. I guess, I actually have two options, COM+ and .Net Remoting. I successfully ran a test using COM+ (taken from an MS article "Loosely-coupled events" or s.th. like that). F...more >>

Microsoft web browser control in C#
Posted by Judah H. at 10/15/2003 10:04:38 AM
Hi all I'm having a bit of trouble with the Microsoft ActiveX web browser control. I'm trying to create a new instance of my web browser app every time the NewWindow2Event is fired. private void htmlControl_NewWindow2(object sender, AxSHDocVw.DWebBrowserEvents2_NewWindow2Event e) {...more >>

Casting COM Interface from System::Object __gc*
Posted by kartik.shah NO[at]SPAM extendedsystems.com at 10/15/2003 8:53:33 AM
Hello, This seems like a trivial problem, but I can't seem to resolve the issue... - A Managed Type DotNetCustomAssembly written in C# will implement a COM Interface (specified through a typelibrary and using COM Interop). eg. class DotNetCustomAssembly : IDataEvent { String Process (...more >>

Need to access .NET objects in older style C++ code
Posted by Gerald Klein at 10/15/2003 6:13:03 AM
Hi, I have unmananged C++ classes that I would like to access .NET objects from. Can anyone help, point me in the right direction to find out how to mage this access possible. Thanks GKlein ...more >>

VB.NET - How do I execute cmd.exe and control it via a textbox?
Posted by itsphatty NO[at]SPAM flashmail.com at 10/15/2003 6:07:59 AM
Ok.. here is a better explanation.. What I have done so far is execute cmd.exe and have the stdout printed to the textbox2 on my form. But I need to know how to keep the cmd.exe open, and send more commands to it via TextBox1 and receive output from it back into my TextBox2? I have seen an exa...more >>


DevelopmentNow Blog