Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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


all groups > dotnet interop > july 2003

Filter by week: 1 2 3 4 5

Loading up COM at runtime
Posted by kokwooi NO[at]SPAM rocketmail.com at 7/31/2003 7:13:43 PM
Hi all, I'm a beginner at COM and .NET. Jus wondering can I dynamically load a COM object at runtime without adding reference during design-time (eg. maybe using ProgID?)? KW...more >>

IPC is very bad in framework
Posted by Ville Pirhonen at 7/31/2003 3:02:48 PM
I have been reading this newsgroup quite often, and quite many are stuck with problem of proper IPC in Framework. This is my humble opinion: It is very very bad that there is no proper IPC tools in .NET environment. If I have got things right, the CLR is in the way of IPC. There is no imp...more >>

Opening Excel workbook from ASP.NET Page
Posted by Michael at 7/31/2003 3:05:10 AM
I have an Excel Object control on my ASP.NET page. How can force a specific Excel workbook ( say "c:\myfile.xls") in this object when my page opens. Alternatively, how can I open a specific exccel file in my ASP.NET Page....more >>

ADODB.Stream Open() in c#
Posted by David Sandor at 7/30/2003 9:36:13 PM
Question: This is what I want to do... ADODB.Stream Stream =3D new ADODB.StreamClass(); Stream.Open(); There are 5 arguments for a Stream.Open() however they are all optional. = You can not pass nulls to the arguments as it will not compile. = Someone posted a solution some time ago that i...more >>

Dude this is doin mah head in. (OOP Com)
Posted by David Nelson at 7/30/2003 2:41:31 PM
Hi, I want to implement what would be an out of process server in vb6. I'm sure i'm not the first to have this prob, but i can't find anything substantial aboot it. i can create a single use class library which always returns the same instance, so i was going to put this in a .net...more >>

COM/.Net interop 0xC0000005: Access violation reading location 0xcccccccc
Posted by Lars at 7/30/2003 2:24:31 AM
Hi, I have a problem when an unmanaged C++ client gets a COM object from a C# server, which it in turn has got from a COM server. It works 75% of the time, but sometimes it crashes. The COM .exe server's idl looks something like: [ object, uuid(F534D8C9-033A-4E17-B73A-440B6BE7B5E...more >>

How do you structure a .net component to be used in VB6 environment?
Posted by Patrick Blackman at 7/29/2003 9:29:03 PM
Can anyone tell me how to properly structure a .net component to be used in VB6 . I have a small component which I want to export to a tlb file but when ever I do the export, all the events are not available in VB6. Any help would be appreciated. ...more >>

Public functions in class not available to COM
Posted by mtr at 7/29/2003 7:11:15 PM
Hi, I've packaged a .NET assembly for COM according to the instructions, just working from examples as I had problems with my actual code. But the problem persists. Code as follows: using System; using System.Runtime.InteropServices; namespace CenturaTest { public class CenturaTestCla...more >>



unmanaged_interface_pointer_from_System.__ComObject
Posted by Artem Kliatchkine at 7/29/2003 5:10:29 PM
Hi All, I need to retrieve unmanaged pointer to an interface from System.__ComObject for further processing in C++ written dll. Does someone know how I can get it? Thanks, Artem ...more >>

Calling .NET Shared Functions from ASP
Posted by Christopher Pragash at 7/29/2003 4:32:27 PM
Hello all, I'm in the process of migrating a set of business objects from VB to VB.NET. These business objects are actually used by ASP. Question: If I had a shared method in one of the business objects that returned the instance of the object, can I call it from ASP? Something like the fo...more >>

What is wrong with the code to access .NET Assembly from ASP page?
Posted by Lidong Cheng at 7/29/2003 4:01:43 PM
Hi,Everybody Can somebody help me find out what 's wrong with the code? Can I pass a .NET type as a parameter to another .NET type's method? or how? see below: ================================================= ..NET Server C# code: namespace XYZ.BusinessLogic { public class Document ...more >>

Enumerating the running applications
Posted by Pete Wright at 7/29/2003 2:47:26 PM
When I hit Ctrl-Alt-Delete I am able to select tabs that show both the running processes, and the running applications. How would I programmatically build the running applications list in my own application using P/Invoke? Thanks, Pete ...more >>

DllImport / Call a Sub that is in a Class
Posted by Johannes Hammersen at 7/29/2003 1:43:59 PM
Hi, I'm trying to access a Sub that is in a Class of an Dll: TheClass.TheSub() But I can not figure out how to tell DllImport that the Sub is inside the class: <DllImport("C:\Programme\I_R_DLL\I_R_RecipeDllPrj.dll", EntryPoint:="TheSub")> Public Shared Sub TheSubTest() Will not work, it...more >>

Microsoft Outlook 9.0 Object Library
Posted by Cat Woman at 7/29/2003 12:52:55 PM
Does anyone know if this object can be used with ASP.NET? Everything seems to work fine with a .NET Windows application but with ASP.NET it doesn't seem to work. If you can, plese point me to some sample code with ASP. Thanks....more >>

Invoking C function from C#
Posted by Joe Ross at 7/29/2003 9:46:47 AM
I hope this has a simple solution. I have a C DLL (that I don't have control over) that I need to call from C#. The signature for the method is: int MyFunc( char *in1, char *in2 char out1[], char out2[a][b], char out3[a][b], char out4[2], ...more >>

Problem Using a VB6 DLL in C#
Posted by Vikram at 7/28/2003 9:28:33 PM
Hi, I am trying to use a legacy VB6 Dll in C#. I am able to register for interop in VB.NET and use it, however, when I try to reference it in C#, the Interop Assembly is not being generated and I get an error. Is this because of some of the types in VB6 not being available in C# ?? How do ...more >>

.NET - Keep non COM classes out of the reg with regasm
Posted by Brian Reed at 7/28/2003 3:25:10 PM
I have a COM interop component that I have written in C#. I register the object with regasm to embed its ProgID and such in the registry. All of my normal .NET classes get registered with it and I don't want them to be registered as COM interop objects. Is there an attribute I can apply to th...more >>

Struct with array of strings
Posted by Christoph Schittko [MVP XML] at 7/28/2003 2:36:32 PM
All, I am trying to write a P/invoke wrapper for a method that takes a pointer to a struct that has an array of char* strings. It goes something like this: Unmanaged Method: int unmanaged_foo( Struct1 * s1, const char* class_name, StringSet * instances ) { // ... ...more >>

Java vs MS .net, which one should i use ?
Posted by CY FOK at 7/28/2003 12:43:01 PM
Hi I am planning to open a software company to develop client-server apps and web applications for my client. Now, i am in a difficult situation to determine what is the best platform i should use to develop the application for my end users. Should I use Java or MS.Net technology or should I mi...more >>

Regasm warning: no types were registered
Posted by msnews.microsoft.com at 7/28/2003 12:25:28 PM
Here is my problem. I have access to existing c# code of an assembly that I want to expose to COM clients. The c# code has elaborate class hierarchy and interfaces so there is no particular class I can expose that will follow rules of COM callable class. So here is what I did: 1. Add a new ...more >>

Marshalling a structure to CopyMemory?(VB.NET)
Posted by dferns NO[at]SPAM sympatico.ca at 7/28/2003 8:53:32 AM
Is it possible to marshall a structure to the API function CopyMemory? I keep getting the error: "Can not marshal field Address of type WTS_CLIENT_ADDRESS: This type can not be marshaled as a structure field." If I try to specify the marshalling attribute such as <Runtime.InteropServic...more >>

.net and excel object
Posted by indraneel sengupta at 7/28/2003 7:43:00 AM
Hi, I am trying to open a excel file from .NET application. I have given reference of Microsoft Excel Object Library 9.0. My application is opening excel object and writing into excel file. Everything is working fine if the file is not already open. But if the file is already open then it...more >>

File or assembly name not found for Microsoft.VisualBasic.Compatibility.dll
Posted by Paul at 7/26/2003 10:06:41 AM
I am getting error 53, "File or assembly name Microsoft.VisualBasic.Compatibility, or one of its dependencies, was not found", on a machine where I deployed my application. The application is a .NET DLL which exports COM+ interfaces. The .NET Setup project shows the Microsoft.VisualBasic...more >>

COM component's C++ client works but .net client doesn't?
Posted by Simon LU at 7/26/2003 2:23:23 AM
I have a COM component in ATL, one of its method's IDL define is as the following: HRESULT SetValue(long a, [in] long* b,[in]string* c, [in]VARIANT* d, [out,retval] ConfirmVal e); here ConfirmVal is a Enum define by IDL. The VC++ client has no problem to call it by using smart pointer as the ...more >>

Reflection and enumeration question
Posted by Mark at 7/25/2003 9:13:15 PM
Please forgive the duplicate posts but I am still looking=20 for an answer to this question. How do I instanciate=20 a reflection discovered enum? Thanks=20 Mark ----------------------------------------------------------- Mattias, This is (I think) interop related because the enum I ...more >>

how can i SSL a page
Posted by Mathew George at 7/25/2003 2:40:07 PM
Hello all, How do i set my 2 pages ssl. I call page2 from page1 by doing a server.transfer("page2") As page2 is ssl i get error as the protocol has to be https. Are there any method to do apart from server.transfer(https://myapp/page2.aspx) Help please Regards, Mathew ...more >>

How to deal with HRESULT
Posted by Jeremy Cowles at 7/25/2003 1:41:59 PM
An HRESULT is defined as the following: typedef long HRESULT; But for COM Interop, functions that return Long values cause my system to crash (and show up as an Unsupported type in VB 6 Object Browser). So what is the proper return value for a function that returns an HRESULT? I was loo...more >>

Optional parameter to COM components
Posted by Jinlei Zhang at 7/25/2003 11:01:46 AM
Some functions of COM components have optional parameters. When imported into C#, the generated functions assume all parameters to be present. Is there any way to call COM functions with optional functions? Thanks in advance. - Jinlei. ...more >>

Registry problems with .Net/COM interop
Posted by trumbell NO[at]SPAM mac.com at 7/25/2003 2:13:00 AM
I'm having a recurring problem which renders a .Net dll useless to the COM clients I am distributing the dll to. The .Net dll has been defined in all of the proper ways. At the assmbly level, I hardcode (with attributes) the GUID of the library and the version of the library, as well as speci...more >>

COM - PublicNotCreatable problem..
Posted by Alan at 7/24/2003 6:46:40 PM
Hello, I am using late-binding and I am having problems using a COM object that cannot be publicly created. Can anyone help please ? Many thanks Alan ...more >>

Passing ImageList to Ocx
Posted by Stefano Baldi at 7/24/2003 2:56:36 PM
Hi I'm trying to use an OCX i wrote in VB6 inside .NET The problem is i can't get ImageList work properly Here's my code to pass ImageList '--------------------------------------------------------------------------- ----- 'Get ImageList '-----------------------------------------------------...more >>

Deployment issues with Interop.dll's
Posted by Mike D. at 7/24/2003 12:58:17 PM
I am in the final stages of development of a .net solution for home health care. Here is the scenario: wrote a simple application that uses a custom dll (not written by me, but from the visual studio 6 days) that passes patient data into a database. The development version runs great on t...more >>

Mail Merge through web app
Posted by tim NO[at]SPAM pracctice.com at 7/24/2003 12:42:27 PM
Hello all, We have a document production system based on mail merge documents and related data sources (csv files) from a sql server. This system is to be moved to a asp.net environment. We require the ability to download the templates from the web server, carryout the merge and (if requi...more >>

Accessing COM object from ASP.NET
Posted by cbrunett NO[at]SPAM linetec.com at 7/24/2003 12:42:06 PM
I have a type library file that came with our ERP system that I am referencing in an ASP.NET application. On my develpoment machine, I have been able to access all of the properties and methods in the object. I am deploying my application to my production web servers and am getting errors wh...more >>

Existing COM DLL Upgrade
Posted by Gary Stewart at 7/24/2003 10:23:01 AM
Hi, I have an existing COM dll that I would like to upgrade to vb.net. The problem is that the Com Interop needs to be binary compatible with the existing dll, in effect making any clients compiled against the old DLL start using the new one transparently. If someone could point me in the r...more >>

Determining COM object interface at runtime
Posted by Beat_Nideröst at 7/24/2003 6:28:05 AM
Hello, I've got a COM object that is being returned to me from a=20 COM method invocation. I don't know the type / COM=20 interfaces of the object returned to me, since this=20 varies between invocations. However, I would like to=20 determine the interfaces of the returned COM object, and=20 ...more >>

getting char * from unmanaged code
Posted by hari at 7/24/2003 4:31:11 AM
Hi, I am having a dll with a function the dll function is char *FindName(char *Name) { //Handle some stuf with name . . char *x = new char[10]; strcpy(x,"ABC"); return x; } if I write .Net Code Like [DllImport("my.dll",EntryPoint = "FindName",CharSet=...more >>

Implementing interfaces of a COM server
Posted by Chris Pyman at 7/23/2003 10:54:55 PM
I have a COM component, originally written in VB6, which I would like to = rewrite in VB.NET for performance reasons.=20 I am trying to implement the COM interfaces of the original VB6 = component so that I don't have to change or recompile the clients. = However it appears that VB.NET is unab...more >>

Debug VB6 and .NET
Posted by Bears at 7/23/2003 8:52:15 PM
Hi, I have a VB6 .exe project calling a .NET .dll project. After compiling both projects, the programs work fine. However, when I set the breakpoint in VB6 and .NET projects, and tried to debug, the stepping only in the VB6 project, and not able to step into the .NET project. Could any...more >>

_CrtIsValidHeapPointer assertion after a CObject-derived class throws exception in constructor
Posted by Nick Wightkin at 7/23/2003 6:05:42 PM
Hi all, I'm having trouble wrapping some VC++6 classes in managed classes, and am hoping someone can help me. Here's an example of what I'm trying to do: I have this VC++6 class that derives from CObject, class vc6class : public CObject { public: struct vc6classException {}; vc6...more >>

getting Access Denied error... What is this
Posted by Lucas Sain at 7/23/2003 12:58:56 PM
Hi, I'm using the PIAs. I have a mehod that calls excel that works fine in winForms but the I tried to use it in ASP.NET and I get the error Access Denied right after the following code: Excel.ApplicationClass xlApp = new Excel.ApplicationClass(); Why is this.... What am I doing wrong...more >>

Converting An UDT To A Byte Array In VB.NET?
Posted by grindaz NO[at]SPAM hotmail.com at 7/23/2003 11:38:32 AM
I need to take a User Defined Data Type (UDT) and turn it into a byte array. If I have an UDT defined as: <StructLayout(LayoutKind.Sequential)> _ Public Structure Test_UDT Dim s As String Dim i As Int32 Dim l As Int64 Dim d As Double Dim b A...more >>

System.InvalidOperationException!
Posted by Usman Shami at 7/23/2003 2:28:44 AM
Hie all, I am facing a problem...I downloaded code for CEMAPI applications from MSDN for embedded visual C++...... I created an ATL COM library through the wizard in eVC++, used the tlbimp.exe to create a .NET dll, and included that in a .NET compact framework project....i can even see the...more >>

Why tlbimp.exe not included in dotentfx.exe?
Posted by Evgeny at 7/22/2003 5:04:44 PM
Hi, all! I have already installed .NET Framework CLR on Win 2000, SP4 machine. I installed it from dotnetfx.exe. My .NET application does access to COM and COM+ object and vice versa. All wrapper COM->.NET and .NET->COM should be created during setup process. A problem is , that this pack...more >>

Solved
Posted by Andreas Pircher at 7/22/2003 3:50:59 PM
Thanks alot - after removing the "ref" it worked without problems immediately - and I can see 16 MessageBoxes with German Names for the BlockFormats :) :) Thank you again...more >>

Maintaining GUIDs for CLSID with RegAsm
Posted by Brian Reed at 7/22/2003 1:23:08 PM
I have a class library object that I am using in a COM system. Every time I reregister it with RegAsm I get a new set of CLSIDs for the type library, interface and co class. Is there any way to make these values constant so that they won't change when registered? Any help would be great. ...more >>

Why do I need to recomplie my VB6 app to use a .NET dll
Posted by Trey at 7/22/2003 1:20:03 PM
I have created a VB.NET dll that will be used by a VB6 executable. I can get it to work, but I have to recompile the VB6 executable whenever I close .NET, reopen it an recompile the VB.NET dll. If that is confusing, let me list the steps I can do to reproduce this problem: 1) Open VB6 ...more >>

.Net Assembly wrapper
Posted by Leigh at 7/22/2003 11:09:48 AM
Hi, Can anybody point me in the right direction for obtaining my goal. I have a ..NET assembly which I wish to expose to VB6 through the interop using VB.NET. I have started to do this but it is now become a monotonous task, as not all class and procedures need to be exposed. I would imaging ...more >>

TranslateAccelerator parameters
Posted by RRB at 7/22/2003 7:45:53 AM
Hi, Can someone provide an explanation of the parameters of the following method? I cannot find any documentation for it. void IDocHostUIHandler.TranslateAccelerator(ref tagMSG lpMsg, ref Guid pguidCmdGroup, uint nCmdID) BACKGROUND (for the curious): I have a .NET windows application w...more >>

Problems with MSDASC.DataLinksClass().GetInitializationString
Posted by boris.zagar NO[at]SPAM tietoenator.com at 7/22/2003 5:02:15 AM
Hi ! I have trouble with making a call from C# to the method: MSDASC.IDataInitialize.GetInitializationString(object pDataSource, sbyte fIncludePassword, out string ppwszInitString) My intention is to show the dialog "Data links properties" and to read the connection string that is created...more >>


DevelopmentNow Blog