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

Filter by week: 1 2 3 4 5

Calling a VB.NET com+ component from a vb 6.0 com+ component
Posted by Kent at 6/30/2004 6:28:02 PM
Need help!!! This works on my development machine (of course). I have 2 com+ components installed on a win2k server. 1 is a vb 6.0 dll and 1 is a vb.net dll. Here is the scenerio: I installed both on the server by exporting .MSI packages from my development machine and running the package on...more >>


delegate for C library callback function with retval param
Posted by Rua Haszard Morris at 6/30/2004 4:02:01 PM
I'm trying to use a callback with the following signature from C# code. DWORD CALLBACK YourStreamProc( HSTREAM handle, void *buffer, DWORD length, DWORD user ); This callback is invoked from a library (in C; the library is BASS www.un4seen.com). The buffer parameter poin...more >>

Remoted .NET object and COM Interop : QueryInterface needed?
Posted by Eric St-Onge at 6/30/2004 10:53:07 AM
Hi, We are using .NET MarshalByRef remoted object that we use in a COM Interop scenario. When we try to access a member of the remoted object from COM returned by a remoting method call, we get the following error: <VSNET Debugger runtime error> "Run-Time check failure #0 : The value of E...more >>

Interface inheritance when using .NET assembly through COM Interop
Posted by Eric St-Onge at 6/30/2004 10:52:27 AM
Hi, We have .NET dlls containing interfaces that we want to use from COM. Each interface has a Guid Attribute specifying its Interface ID. We use regasm in order to generate the tlb and then use the DLL as COM #import statement in a C++ project . For some reason, when the tlb is generated, ...more >>

Delegate Problem.
Posted by gaurav_bamania NO[at]SPAM yahoo.co.uk at 6/30/2004 4:32:27 AM
Dear all, I am using a Delegate to callback from a C dll which takes in input a function pointer. The Delegate is called back and the struct is filled properly, but just after the delegate function finishes, the application crashes. "Memory cannot be written" The application referenced memor...more >>

Office XP PIAs are they badly built or am I doing something wrong?
Posted by Soulman at 6/30/2004 3:44:01 AM
I've been having all sorts of trouble with automating Office XP from .NET, the PIAs just seem to be unusable! I just hope that it’s just that I’m doing something silly, please could someone point out to me! I’ve had problems trying to make calls as advertised in documentation (see my post â€...more >>

Calling C# COM from ASP script code
Posted by Patrick Ruhnow at 6/29/2004 2:48:23 PM
Hi, i have a managed COM component with an array as parameter like this: public byte[] ProcessPdfDocument(string reportPath, string identifier, string boType, string userName, bool storeDocument, string[] parameters) Now i want to call this method out of an ASP Page (JScript) : var bo = ...more >>

OWCMDX: No such interface supported
Posted by ann_srikar NO[at]SPAM hotmail.com at 6/29/2004 8:33:29 AM
I am trying to use the OWCMDX.dll (an unsupported DLL that ships with SQL Server 2000) in order to assign MDX queries directly to PivotTables (Microsoft XP Office Web Components). I imported the dll into a .NET Windows Forms application using Visual Studio's Interop support. When I attempt to ex...more >>



Default property not called using late binding in VB
Posted by Ken Kolda at 6/28/2004 10:48:03 AM
I have some .NET classes which I intend for possible use with VB 6 (or other COM-compliant language). On some of my objects I have defined a default property which takes an argument, e.g. Dim fols as Folders Dim s as String Set fols = New Folders s = fols("SomeFolder").Name In this exampl...more >>

CryptRetrieveObjectByUrl pt. 2
Posted by Jon G at 6/28/2004 9:33:05 AM
Hi, I'm having trouble calling the function CryptRetrieveObjectByUrl (found in Wincrypt.h). I posted to this forum earlier and I got an answer which I now have tried without success. The declaration looks like this: [DllImport("cryptnet.dll", SetLastError=true)] protected static extern boo...more >>

How to call a Win32 dll ?
Posted by Dotnetjunky at 6/28/2004 1:37:02 AM
Hi experts, Can anyone show me how to call a function defined in a normal Win32.dll ? Thanks in advance Kinh Luan...more >>

new statement
Posted by Fabrizio Camagna at 6/27/2004 4:10:36 PM
When i create an ATL object and i try to use new statement the compiler say me Impossible to create an abstract object Why? ...more >>

help in visual basic .net
Posted by sdeepayamini NO[at]SPAM yahoo.co.in at 6/25/2004 3:55:33 PM
I have a fortran exe (asos.exe), which outputs a text file in the same directory as that of the exe. When this exe is invoked individually, it outputs a text file. I tried to invoke it from .net form, using shell command / system.dagnostics.process.start, but it writes to the console and not to ...more >>

Microsoft Publisher 2003 Interop -- Does anyone do this?
Posted by skeezen1 NO[at]SPAM gmail.com at 6/25/2004 11:31:51 AM
I'm in the middle of a project creating a MS Publisher document via C# and Office interop. The error messages that are returned are less than desirable. For example. I create a textbox, set its text and then set its AutoFit to BestFit so that the text fits correctly. On some occaisions I ...more >>

What COM-object is my Interop using?
Posted by Joakim Olesen at 6/25/2004 11:07:49 AM
I have an Interop class that works properly. However, I don't know wich COM-object it calls (I'm not the one that created the Interop class). How can I find out? I've tried to look at the code generated by ildasm.exe and remotesoft salamander, but I can't find the call to the COM-object. All I...more >>

Interop events leak memory (again)
Posted by spammy at 6/25/2004 10:34:43 AM
Hi all, Ive done the searches etc, and although Ive read many interesting articles and posts, Im not sure they were relevant to my case: I am using a simple ActiveX control (the Bloomberg Data Control to be specific). I use application.Run to execute a method where I create an instance of t...more >>

Using a callback interface between managed/unmanaged code
Posted by Tony A. at 6/24/2004 7:49:24 PM
I have an application that is split into two parts--the user-interface portion, written in C#, and a C++ DLL that contains both managed and unmanaged code, where the unmanaged code is core processing that needs to be as fast as possible. Now, during the course of one of these long unmanaged...more >>

distributing .NET dll used in COM
Posted by Daniel Wilson at 6/24/2004 11:13:21 AM
I have a VB6 application that now uses a C++ .NET DLL via COM. The .NET dll was developed on one computer, and to move it to mine, I simply copied it and its tlb file over, ran RegAsm <full Path>\MyNet.dll then dragged it into c:\windows\assembly. On another computer here that has the .NET Fr...more >>

COM-enabled assembly
Posted by Joe H at 6/23/2004 8:56:06 AM
i have created a DLL in vb.net which exposes its functionality to COM clients. the vb.net DLL has an app.config file because it has URLBehavior = Dynamic for a number of web references it uses. now, if the VB6 client that uses the assembly, the assembly itself, and the app.config file are a...more >>

Losing Interop information on postback?
Posted by millarjason NO[at]SPAM hotmail.com at 6/23/2004 8:25:08 AM
Hi folks; I'm working on an ASP.NET 1.1 app, and one of my classes is a managed class that has a private member typed through COM Interop. During the initial page load Interop appears to be functioning correctly, however for various reasons I need to stuff the object into Session and then de...more >>

Returning variable length string from eVC++ 4 to .Net CF
Posted by dumbledad NO[at]SPAM gmail.com at 6/23/2004 5:43:48 AM
Hi All, I'm trying to pass a variable length string from unmanaged code to managed code. It's actually from a DLL written for the Pocket PC 2003 in embedded Visual C++ 4 to an app written for the Pocket PC 2003 using the .Net Compact Framework in Visual Studio .Net. What I'm trying to do is...more >>

OPC .net, COM interop problems: Server execution failed (80080005)
Posted by vlzu NO[at]SPAM hotmail.com at 6/23/2004 5:36:19 AM
Hi, I'm developing an OPC Client application with C# (VS.NET 2003) on a computer running WinXP. Im connecting locally to Matrikon OPC Simulation Server. Everything works fine in my computer, but when try to run the application on another computer, which has Win2000 and Matrikon, problems ari...more >>

Microsoft.Office.Interop.OWC - Unspecified error
Posted by Reinfried at 6/23/2004 12:53:01 AM
I want to work with Office XP Primary Interop Assemlies (Office XP PIA) with Visual Studio.Net 2003. I want to build an OLAP Reporting Application in ASP.NET Using SQL Server 2000 Analysis Services and Office XP OWC (PivotTables and Charts). I have create a new project with Visual Studio.Net ...more >>

Marshal.AllocHGlobal question?
Posted by Howard Weiss at 6/22/2004 8:55:23 PM
Does Marshal.AllocHGlobal lock the memory it allocates (e.g. GlobalLock)? Howard Weiss ...more >>

Passing dot net objref via COM?
Posted by Larry Heller at 6/22/2004 8:30:30 PM
[Sorry for cross-posting, but this topic equally relates to remoting and interop!] I am extending a legacy app which uses DCOM to implement a networked client-server architecture. As some more recent parts of the app are written in .NET, I would like to use it for my new extensions. I have bee...more >>

How do I run a batch file from within vb.net?
Posted by JDupont at 6/22/2004 4:57:01 PM
How do I run a batch file from within vb.net?...more >>

Word Development Mixed Office Environment
Posted by Joel Rumerman at 6/21/2004 12:05:04 PM
Hi! I'm trying to develop some MS Word automation from within a VB.NET WinForm application. My user base has either Office XP or Office 2003 installed. I currently have Office 2003 installed. Two questions: 1. Is it possible for me to develop against the COM V10 without installing Office XP...more >>

FoxPro public variable problem in multithreaded VB.NET app
Posted by blevita NO[at]SPAM hotmail.com at 6/21/2004 11:05:51 AM
Hello, I am building a VB.NET form interface for a legacy Visual FoxPro 7.0 (VFP) DLL (which contains our business logic). Basically, the form instantiates multiple instances of the VFP object (via COM interop) in separate threads. I would like each VFP object to be completely independent ...more >>

Boxing/Deboxing Bitmaps Problem
Posted by Andrew Cook at 6/20/2004 4:00:02 PM
I am using Microsoft Visual Basic .net 2002 Standard. I am coding an application which loads in data from a compressed file. One of the items in the file is a raw RGB565 bitmap, at 800x600 pixels. In a previous version of my app, I used Bitmap.SetPixel() but performance got to be an issue as it took...more >>

LookupSecurityDescriptorParts declaration
Posted by Matias Owsianik at 6/18/2004 8:54:20 AM
Hi! I'm trying to get DACL and SACL flags for a given object (file, registry key, etc.) using C#. I'm using GetNamedSecurityInfo to get a pointer to the security descriptor of the object. After that, and here is my problem, I want to use LookupSecurityDescriptorParts to get the entri...more >>

How to Marshal a struct array embeded in another struct
Posted by chaor at 6/17/2004 3:35:23 PM
Hi Folks: I have difficult to marshal a sturct array in another struct. Both my managed and unmanaged codes are listed below. I appreciate anyone help me out! Thanks! chaor In unmanaged code: typedef struct { int z; char c; } A; typedef struct { int y; A a[3]; } B; In manage...more >>

InvalidCastException in ReleaseComObject
Posted by news.microsoft.com at 6/17/2004 10:33:02 AM
I don't understand why i get an InvalidCastException when calling Marshall:ReleaseComObject() in this code : RCW -----> CCW ----> .NET Control p1 p2 p3 void Proc( IUnknown* p2 ) { Object* p1 = Marshal::GetObjectForIUnknown(p2); // p2 is a CCW on...more >>

System::Guid and REFCLSID
Posted by news.microsoft.com at 6/17/2004 10:15:37 AM
Does this managed C++ code always work? another solution? void Function( System::Guid clsid ) { Guid* __pin * pClsid = &clsid; REFCLSID refClsid = (REFCLSID) *pClsid; UseRefClsid(refClsid); } void UseRefClsid( REFCLSID clsid ) { ... } ...more >>

a question about calling unmanged code from managed code
Posted by chaor at 6/17/2004 4:23:00 AM
hi, how to convert the following strut into safe struct in c#? struct in C++: typedef struct { char m_username[USER_LEN]; char m_password[8]; char m_userIP[16]; }USERPARA,*PUSERPARA; typedef struct{ char m_starthour; char m_startmin; char m_stophour; char m_sto...more >>

COM+ application hang..
Posted by pdabak NO[at]SPAM yahoo.com at 6/17/2004 12:41:04 AM
Hello, I have a COM+ component (ServicedComponent) running as a service control manager service on Windows 2003. I am using JITA and the component is configured not to use transactions. The client (.aspx page running on the same server) instantiates the object and makes a method call (refer...more >>

Interop dll failure
Posted by Ravikumar at 6/16/2004 8:41:01 PM
Hi, I have a VB COM dll (which is set to binary compatibility). I created a interop dll and using it in a ASPX page. This is working fine. I rebuilt my VB dll and my aspx page stopped working. I generated another interop dll, now it is working. Should i have to generate ineterop dll, when ever i re...more >>

Assembly Interop.SHDocvw.dll or one of its dependencies not found Problem
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 6/16/2004 7:07:18 PM
I added a reference to the COM object SHDOCVW.dll. It of course created the Interop.shdocvw.dll file. As I understand it this is for the Runtime Callable Wrapper, so .NET can call on the COM object with interoperability. Now, my problem is that it says when I try and load the design of the ...more >>

Marshal.PtrToStructure - how to make it allocate on stack?
Posted by AlexS at 6/16/2004 1:12:57 PM
Hi, CLR profiler shows me that all my calls to Marshal.PtrToStructure(IntPtr, Type) are allocating on heap. I tried to use overload with (IntPtr, object) signature, but because my structure is value (?) calls are causing cordbg to start. Structure is like public struct MyStruct { int ...more >>

Having CLR trouble with a callback function
Posted by Joe Kaplan (MVP - ADSI) at 6/16/2004 10:35:12 AM
Hi all, I'm having problems with a delegate used as a function pointer in a = pinvoke method that takes a callback function. When I supply a = delegate, the CLR seems to just die on me. By die, the symptom is that = during my NUnit test, NUnit simply stops running and disappears. No = catc...more >>

aspnet_wp reboot required regularly
Posted by Akoni at 6/15/2004 10:35:40 PM
Hello, I have written a ASP.NET (C#) front-end that connects to an unmanaged win32 c++ dll. A few problems occur: -I am unable to use the IO stream (write to an event log) from the dll. Although I can successfully use an IO stream when calling the dll from a regular .net Windows Form. -T...more >>

deployment questions
Posted by Norvin Laudon at 6/15/2004 4:09:51 PM
Hi, I've written a managed DLL in c#. To use it in my VB6 program, I've set the "Register for COM interop" setting in the project properties to True. The VB6 program contains a reference to the DLL, and everything works fine on the development machine. Now how do I deploy it on another ma...more >>

VBA Primary Interop Assembly?
Posted by Hani Atassi at 6/15/2004 1:02:01 PM
I wonder if Microsoft provides a Primary Interop Assembly for the COM (Visual Basic For Applications [msvbvm60.dll])? I have EXE ActiveX that references the previous VBA file. When I use tlbimp to generate the Interop, it also creates an interop for msvbvm60 and calls it VBA.dll. I wants to cr...more >>

COM interop CCW access violation
Posted by blade_boris NO[at]SPAM hotmail.com at 6/15/2004 6:58:36 AM
I've been fighting with a bug for some time now, and I can't figure out what's causing it. It shows up in different contexts but the top of the call stack is always the same: mscorwks.dll!SafeRelease() + 0x58 mscorwks.dll!IUnkEntry::Free() + 0x59 mscorwks.dll!ComPlusWrapper::ReleaseAllIn...more >>

Font Object is not shown in VB5...
Posted by Jochen Kalmbach at 6/15/2004 1:16:24 AM
Hello, I am building an C# UserControl wich will be used in VB5 as ActiveX- Control. This works fine; only one problem: The "Font" Proptery is not shown in the VB5 designer !? So what could I do ? -- Greetings Jochen Do you need a memory-leak finder ? http://www.codeprojec...more >>

Receiving Events from MS Access from Custom Toolbar in VB.NET
Posted by Alain Hogue at 6/15/2004 1:09:57 AM
Hi everyone! I have created a toolbar to use in MS Access 2000, 2002, 2003. I would like to be notified when the user select a new database or close the current one. Also I would like my toolbar to remain available even if no database is opened. I am presently using Interop from a VB.NET Ad...more >>

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 >>


DevelopmentNow Blog