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 > january 2007 > threads for january 22 - 28, 2007

Filter by week: 1 2 3 4 5

casting void * or IntPtr to managemed object
Posted by James Whetstone at 1/27/2007 5:20:33 PM
Hello, I've got a DLL function that return a void * pointer very similar to malloc(), and I need to cast it to a managed type. For this example, I'd be happy to cast it to a string type. Can anyone shed some light on how to do this in C#? Thanks! JW ...more >>

Marshalling DEV_BROADCAST_PORT: C# P/Invoke declaration?
Posted by Whitney Kew at 1/26/2007 12:08:37 PM
Hello, I have some VS 2005 code in which I am setting up a C# declaration of the Platform SDK header DEV_BROADCAST_PORT. That structure is declared in the Platform SDK header file dbt.h as follows: typedef struct _DEV_BROADCAST_PORT_A { DWORD dbcp_size; DWORD dbcp_de...more >>

COM InterOp - Interface ?s (Great COM InterOp Links within)
Posted by JerryWEC at 1/26/2007 11:54:22 AM
Hi all, below is most of my code for my COM InterOp object (For those = following previous posts - I'm not using Inheritance any longer). My class Logging is implementing ILogging and exposing LogToFile() and = LogToScreen(). In the VB6 project the properties are showing up under = the ILogg...more >>

Using COM objects in ASP.NET and postback problems
Posted by Alain Sienaert at 1/26/2007 1:00:40 AM
Hi, I'm currently investigating the possibility of upgrading an existing website (ISAPI written in Delphi) to an ASP.NET 2.0 application (Visual Studio 2005 - C#). The website itself communicates with an executable (ColPro.exe) that support COM+. The idea is that for every user (ASP.NET se...more >>

Unable to debug
Posted by L-E Eriksson at 1/25/2007 5:04:13 PM
Hello! I have a vb.NET dll that I use from Excel. From Excel the functions in the dll is called. This works and has done so for a long time. But what has stopped working is debugging. After changing computer I can't debug calls from Excel to the component. Of course I have in the property...more >>

OLE/COM Object Viewer (oleview.exe) Errors
Posted by JerryWEC at 1/25/2007 3:00:30 PM
Hi everyone, I'm getting the following messages while trying to open a .tlb file I'm generating from VS2005... Msg1: MkParseDisplayName(... ""I:\DEV\CLA_Logging\CLA_Logging\bin\Release\CLA_Logging.tlb""...) failed. Invalid syntax MK_E_SYNTAX($800401E4) Msg2: The command line ("I:\...more >>

Typical C++ string to C# dll question
Posted by Kyle Szklenski at 1/25/2007 9:09:18 AM
Hi. I suppose I'm not the first to ask this, especially given that I searched and found a few similar things posted here. None of them, however, answered my question. My question is this: I'm trying to pass a normal std::string from VC++ 6.0 to a C# DLL. My .cpp file for my VC++ console applic...more >>

Using reflection on Interop activex-dll object?
Posted by cit42 NO[at]SPAM web.de at 1/25/2007 2:12:58 AM
Hello, I want to write a unittest that compares the property-values of a managed-object with the property-values of an object instantiated via interop. Background is: I have a vb6-class with many public properties. The properties will be filled by a Read-method from a file and can be written...more >>



Excel always running
Posted by KaNos at 1/24/2007 10:32:31 PM
Hello, I'm programming an C# application which uses Automation. The problem is when I quit the application a ghost of excel is always running (Can be seen in all processes with th task manager). What is the solution ? Thanks...more >>

Receiving a phone call using TAPI3
Posted by Deepak Nawathe at 1/24/2007 8:55:23 PM
I am developing an application which uses TAPI3 and a data modem. I want to receive a call using this application and then the caller will be able to hear some TTS in reponse. I could receive a call using TAPI3 APIS. but i couldn't answer the call. To be specific I could get the IBasicCall...more >>

COM Interop - Interface Questions
Posted by JerryWEC at 1/24/2007 6:26:20 PM
Hey guys, I'm trying to get Com Interop to work for my class library I have wrote. It works fairly good for .net clients as is. So now I'm trying to add a COM Wrapper for it to expose it to a VB6 client. I have discover the best way to do this is to use the following attribute and an Inte...more >>

Windows Communication Framework
Posted by Gaurav Vaish (MasterGaurav) at 1/23/2007 1:16:22 PM
Hi, I have recently published an article on WCF at CodeProject http://www.codeproject.com/useritems/edujini_wcf_scart_01.asp It would be great the experts can provide a feedback on the same. Please note that this is my first article in the series. I have submitted Part-2 t...more >>

COM Wrapper ?s
Posted by JerryWEC at 1/23/2007 12:16:24 PM
Hi All, I'm getting the following message in VB2005... "Warning 2 'Microsoft.VisualBasic.ComClassAttribute' is specified for class 'ComLogging' but 'ComLogging' has no public members that can be exposed to COM; therefore, no COM interfaces are generated. I:\DEV\CLA_Logging\CLA_Logging\Co...more >>

Intellisense in VC6 from C# tlb
Posted by escristian NO[at]SPAM gmail.com at 1/23/2007 8:35:42 AM
I have a project written in C#, which I then create a TLB from. In VC6 I import this .tlb which in turns generates a tlh file. Intellisense gets it's information from this .thl file ( I tested it). The only problem is that in the method declarations it always puts pRetVal as the name of the ar...more >>

error 800401f9 when retrieving the com class factory
Posted by Gary at 1/23/2007 7:05:21 AM
I am writing a program to interface with ACT (a crm database ((version 6))) I had this done a year ago. I can't figure out what I did. I have found my old code and it's no longer working. I dont know why. I have since reinstalled the machine, so am not sure if the dll's are the same anymore. ...more >>

CreateInstance -> UnauthorizedAccessException
Posted by Benjamin at 1/23/2007 3:01:04 AM
Hi! I have a problem with my development machine. The "VB6Object.ClassName" is a VB6 dll component that I have started in the background. Dim objectType As Type Dim obj As New Object objectType = Type.GetTypeFromProgID("VB6Object.ClassName") obj = Activator...more >>

Register Assembly Error ?
Posted by JerryWEC at 1/22/2007 5:29:46 PM
Hi All, I'm getting the following error message while trying to re-build my solution (to create the .dll and .tlb files)... "Error 1 Cannot register assembly "I:\DEV\CLA_Logging\CLA_Logging\bin\Release\CLA_Logging.dll" - access denied. Access is denied. (Exception from HRESULT: 0x80070005 ...more >>

can I call non-exported unmanaged functions from managed code?
Posted by brad at 1/22/2007 4:49:50 PM
I'm writing test automation for a native dll using manage code. I know that I can use Platform Invoke to call exported, native functions from my managed code. What if the native function isn't exported? Can I still call it using P/Invoke? In this particular case, I DO have access to the s...more >>

Topmost visible window
Posted by pigeonrandle at 1/22/2007 11:27:37 AM
Hi, I am building an application that is similar to spy++. I want the user to be able to click on a 'window' (textbox/combo/etc) and have it highlighted. BUT... the window they click on may share common coordinates with another window, so how do i find the topmost visible window, given a top...more >>


DevelopmentNow Blog