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

Filter by week: 1 2 3 4 5

Want my app to dynamically load SpeechLib, possible?
Posted by BCauldwell at 10/21/2004 1:21:02 PM
So I'm developing an application for my company which uses the MS SpeechLib. I want everyone to be able to use it, so that the machines which do not have the speech library installed will still work correctly, but won't be able to have further functionality provided by the speech library. C...more >>


cleaning up IWin32Window
Posted by ebloch NO[at]SPAM phreaker.net at 10/21/2004 10:51:11 AM
First, apologies for cross-posting. I'm writing a Visio add-in using the .NET Framework. The add-in displays a number of windows forms as modal dialog boxes. In order to display properly, I set the parent to the Visio Window. I've done this by creating a class that implements IWin32Window. ...more >>

uninstall/reinstall a .net-built COM-callable DLL ?
Posted by t.hanson NO[at]SPAM faz.de at 10/21/2004 2:41:52 AM
last week i successfully created and installed (with visual studio / ..net 2.0beta and then with the .net 1.1 framework) a DLL i can call from ASP under IIS5 on a machine running the .net 1.1 framework. both development and target machines run w2k and iis5. [c.f. (microsoft.public.dotnet.fra...more >>

Should not automate Office from a worker thread in VB.NET?
Posted by Robin Tucker at 10/20/2004 8:39:27 PM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrconthreadingsupportinoffice.asp This info (above) means to me that I should not automate Word from a thread. I am currently automating Word from a worker thread, not my main process. However, I thought that as I...more >>

Strange problem on runtime
Posted by Tamir Khason at 10/20/2004 7:03:20 PM
See the thread in csharp group. Please try to help us. TNX ---------------------------------- -- Tamir Khason You want dot.NET? Just ask: "Please, www.dotnet.us " ---------------------------------- Yes, I know this. FooCOM.dll (original com) is in the same directory with i...more >>

DllImport, how to dinamically assing the DLL path?
Posted by Luis Fajardo at 10/20/2004 12:51:04 PM
I don't want to put the .DLL in a known OS path folder, I'll like to define or load the .DLL from an specific location at runtime. How should I do it? Thanks in advance...more >>

What's the correct .NET type...
Posted by James at 10/20/2004 11:22:21 AM
when a function wants an MFC CString? TIA....more >>

COM Client and .Net Application
Posted by Michael Lohr at 10/20/2004 9:48:55 AM
Hallo, is it possible to call a remote .Net Application from a local COM Client using .Net interop?? All I have read until now, using remoting requires that you have a Client and a Server writen in managed code so I'm not shure if above scenario can work. Thanks in advance for all hin...more >>



Calling C++ library function from C# ?
Posted by Christophe at 10/20/2004 7:27:05 AM
Hello, I would like to call unmanaged code (C++ Library Code) in C# library. When I Call C++ Function with an "int" parameter. It seems that there is a Marshalling problem; because when I put 88 as parameter, My C++ function receives 1240420 How to keep same parameter value between C# ...more >>

2nd Post - Any Help Here
Posted by DavidS at 10/20/2004 7:13:07 AM
Have Excel document that I attempt to open using Interop Assemblies with ASP.NET. Problem is Excel is opened but is not visible from web app. Code used is as follows: Dim oExcel As New Excel.ApplicationClass() Dim oBooks As Excel.Workbooks oBook.Open( "some excel report"...more >>

Need Help with DocumentProperties & GlobalLock
Posted by Benoit Courchesne at 10/20/2004 2:16:57 AM
Hi, I'm trying to build my custom Printer Dialog box. The following code is supposed to Pop up the printer properties form and edit the PrinterSettings. My problem is that I'm able to show the Printer Properties form but I'm unable to write back the settings to my PrinterSettings It either...more >>

Proposal to extend documentation about interop
Posted by John Allberg at 10/19/2004 11:44:22 PM
Hi! I think the MSDN docs about interop doesn't state clearly enough that there is a character encoding conversion automaticly done from Unicode to the characterset for the computer during interop. This got me really puzzled for a few days. I've got a legacy C-application (dll) that tak...more >>

MarshalDirectiveException only in release mode
Posted by Bill at 10/19/2004 7:05:03 PM
When running our assembly which PInvokes to an unmanaged dll, I am getting the exception System.Runtime.InteropServices.MarshalDirectiveException : Can not marshal parameter #1: Invalid managed/unmanaged type combination (Int/UInt must be paired with I or U). This exception only occurs when ...more >>

How to execute unmanaged exe from .net application...
Posted by CEP921 at 10/19/2004 2:13:04 PM
Hi All, I have a compiled Fortran executable that I must execute from a VB.Net windows application. What is the best way to go about this? In a similar application, developed with VB6, I used the ShellExecute Win API function. Is there a cleaner way in .NET? Best Regards, Chad...more >>

Drag and Drop
Posted by Jeff Gaines at 10/19/2004 1:25:02 PM
In my file manager app I have set up the ability to drag and drop objects (files and folders) between its two ListView panes and also between it and Explorer. I fire off the dragstart event in the ListView: (having set up apipt from the top left of the ListViewItem) JFunc.JCopyFilesToClip...more >>

Static and IJW issues.....Help!!!!
Posted by Luis Fajardo at 10/19/2004 1:19:06 PM
I need to interface an old C application with C#.NET, I created a IJW C++ bridge, here is a sample code ...... #include "stdafx.h" #include "MyCPPClass.Interop.h" #pragma managed #using <mscorlib.dll> #using "MyCSharpAssembly.dll" using namespace System; using namespace System::Runtime...more >>

FindNextPrinterChangeNotification() problem
Posted by anze_hrast NO[at]SPAM hotmail.com at 10/19/2004 1:01:31 PM
I have been trying to use this c++ Windows API function for over a week now, reading MSDN, threads in forums... However, I have made little progres. I used a code example from a thread "http://groups.google.com/groups?hl=en&lr=&threadm= ugy6CyX%24DHA.268%40TK2MSFTNGP10.phx.gbl&rnum=1&prev=/group...more >>

Files required for IE Interop
Posted by news.microsoft.com at 10/19/2004 10:39:22 AM
I have a Windows Forms project that embeds Internet Explorer. On my development machine all that is required for the application to run is the 48KB file AxInterop.SHDocVw.dll and the 124KB Interop.SHDocVw.dll. (Btw, what is the difference between these two? Can I reduce this to just one?). ...more >>

Return array to vbscript as Variant*??
Posted by tale at 10/19/2004 10:30:46 AM
Hello all, I'm beating my head against the wall on this problem. Everything else has been really easy. I need to call a COM object, that is implemented in C#, from vbscript. VBScript only knows Variants, so I need to return an array as a variant from one of my functions. [Guid("10612AA1-...more >>

COM, STA threads and internal threads
Posted by Sunny at 10/19/2004 10:19:42 AM
Hi, as I'm not really a COM knowledgeable, but I have to deal with it :), I have some questions. The background: C# COM addin for Outlook 2000. Framework 1.1 SP1. VS.Net2003. Ok, Outlook works in STA mode with addins. Reading here: http://weblogs.asp.net/larryosterman/archive/2004/10/1...more >>

Visual Studio..NET COM Interop
Posted by BrianS at 10/19/2004 6:59:03 AM
I have two questions: 1. I have written a dotnet assembly and registed it as COM object (using Register as Com Interop in Build). Is there a way to reference this as a COM object in another .Net application? I want to test that COM clients will effectively use this object. 2. When I buil...more >>

Need help with RCW and COM
Posted by Magnus at 10/19/2004 12:07:02 AM
I have an application that start plugin client by loading them runtime with assembly.LoadFile. This works very well in itself, but one plugin runs into some problems the second time I start it. The exception is: System.Runtime.InteropServices.InvalidComObjectException with a subtext ab...more >>

Registry free activation
Posted by sorpor at 10/18/2004 4:58:53 PM
Just wondering if anyone has successfully accomplished what's described in http://msdn2.microsoft.com/library/eew13bza.aspx ? I remembered I went over a similar documentation before but I couldn't get it to work. Just want to check before going it over again. Thanks, sorpor ...more >>

Having problems with winsock interop in C#
Posted by Mario Cobretti at 10/18/2004 4:19:55 PM
I am having problems when a try to convert with interop these functions, any ideas? is correct? Thanks and excuse my poor english. [DllImport ("wsock32.dll")] public static extern int bind (ref long s, SOCKADDR_IRDA name, int namelen); [DllImport ("wsock32.dll")] public static extern int...more >>

This type can not be marshaled as a structure field
Posted by Chakravarthy Bollapalli \(IFIN SCC COM\) at 10/18/2004 3:35:11 PM
Hi, I get the exception ====exception======= An unhandled exception of type 'System.TypeLoadException' occurred in Test.exe Additional information: Can not marshal field si of type ServersOnHost: This type can not be marshaled as a structure field. ====exception======= thrown when...more >>

GetNamedSecurityInfo - Read Owner pt II
Posted by Dave Coate at 10/18/2004 11:15:37 AM
Hello again, I am going to re-post a question. I got some excellent suggestions from Rob and Mattias on this but their ideas did not solve the problem. Here is the original post: ***************************************************** I am looking for a way to 'override' file security...more >>

Can I trap Publisher 2003 mailmerge events from within a VB.NET application??
Posted by Mark at 10/18/2004 11:09:05 AM
I'd like to develop a VB.NET application that creates a Publisher 2003 application object, opens a document and performs a mailmerge. However, I need to update a database for each record that is "mailmerged". Is this possible? Does publisher throw an event for each record that is merged? Or ...more >>

Using MS Word Automation w/ VB.NET
Posted by David McCormick at 10/18/2004 7:03:02 AM
I was looking for some perspectives on implementing an enterprise correspondence solution for custom letters. Currently we use RTF that allows business users to configure the letters with custom text and data elements (pre-defined). We have to jump through some hoops to get the RTF to actual...more >>

Non-modal forms cannot be displayed in this host application
Posted by Wizzarding at 10/18/2004 5:23:02 AM
Hi, I am trying to replicate a VB6 menu application that is compiled as an ActiveX Exe. The menu application uses a series of plug-ins that are ActiveX DLL's. When the user selects a menu option the menu app creates an instance of the appropriate plug-in and calls a standard interface. This...more >>

System.InvalidCastException: QueryInterface for interface
Posted by Khurram Rafiq via .NET 247 at 10/17/2004 3:11:47 AM
( Hi Experts, I am having very Strange problem while developing a VB.net Aplication. My Application uses External .dll FILES(Those are already added into Referances) When I fire a statememnt like this Dim pdbc As New AppForge.MobileVB.Compatibility.PDBLibrary Dim dbhandle As Integer dbhandle...more >>

What permissions do I need to instantiate a COM object from an ASP.NET application?
Posted by Andreas Voellmy via .NET 247 at 10/17/2004 3:06:33 AM
Hi, I have an application that reads some data from an Excel file and= uses the Excel ActiveX object to do this=2E I have written a= function that opens the document and reads a value out=2E This= function works fine in when called from a console application=2E= However, running in an asp...more >>

unable to set a new windows call back procedure
Posted by Danya Samuel via .NET 247 at 10/17/2004 3:06:21 AM
Hi, I am new to vb=2Enet and am try to migrate a screensaver= application written in vb to vb=2Enet=2E To capture the key board= and mouse movements across the screen, i have a hook dll written= in vc++=2E I have a windows call back procedure which used to= process the key board and mouse...more >>

null reference exception on DLL call in C#
Posted by Dan Mehlman via .NET 247 at 10/17/2004 3:03:51 AM
I'm trying to implement calls to an existing C-based DLL within a C# program. It sounds straightforward enough, but any calls to the extern functions produce a NullReferenceException. My code looks like this: [DllImport( @"e:\jbhexe\sscam.dll", EntryPoint="BAM_calcs" )] public static extern ...more >>

How to create an ActiveX object in a .NET console application in C
Posted by Zhiquan at 10/17/2004 12:49:05 AM
I have a console application in C#, which need invoke the functions and get events from a ActiveX object hidden. I can not drag the ActiveX directly from Visual Studio.NET Toolbox, due to there is no form in the console application. The question is, can I dynamic create the form hidden and Ac...more >>

Adding reference to a COM Class adds only interfaces
Posted by Abhishek Singhal at 10/16/2004 8:33:51 PM
Hi All I am adding a reference to the Lotus 123 type library. The problem is that only the interface names appear in the intellisense list where as, as per MS docs, class names should also appear appended with "class". Due to this, I cannot assign object i get using getactiveobject. Also ...more >>

GetNamedSecurityInfo - Read Owner
Posted by Dave Coate at 10/16/2004 11:01:05 AM
Hi everyone, I am looking for a way to 'override' file security and read the Owner of a file to which I have no access. I am a system administrator, as such I have administrative rights to all the computers in the company. Some of my user base has full control rights to their files and hav...more >>

Latebinding of Word COM problem
Posted by Csabi at 10/15/2004 4:19:09 AM
Hi. I have a simple application which isnertes data into word-document tthrough word-bookmarks. The problem is that I want to move the application from early-binding to late-binding. In the early-bounded application this command I use for getting all bookmarks: IEnumerator en = wordApp....more >>


DevelopmentNow Blog