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 > august 2003 > threads for august 22 - 28, 2003

Filter by week: 1 2 3 4 5

CCW and method parameters being classes?????
Posted by José Joye at 8/28/2003 5:31:11 PM
Hello, I'm having a problem with CCW and method parameters. Some of the parameters are classes. It seems that these classes (or at least the properties inside the class) are not seen from my VB client Do I have to declare an interface for these classes (eg. TransModes)? If yes, does anyone k...more >>


PInvoke and GetPrivateProfileString
Posted by Daniel F. Devine at 8/28/2003 2:52:21 PM
Hi - The following snippet of code: class Class1 { [DllImport("kernel32")] public static extern ulong GetPrivateProfileString([MarshalAs(UnmanagedType.LPStr)]string app, [MarshalAs(UnmanagedType.LPStr)]string key, [MarshalAs(UnmanagedType.LPStr)]string def, StringBuilder r...more >>

GetObject and C#
Posted by Magne Ryholt at 8/28/2003 11:09:23 AM
I have a .exe application which exposes several COM In VB 6.0 I can instantiate a class by using Set myClass = GetObject(path, progid) where path is the path on harddisk to a file (actually a .INI file in this case) and progid is the progid in registry. The .exe was not running, but was started ...more >>

problems with CCW
Posted by Perecli Manole at 8/28/2003 1:28:33 AM
I have several problems with COM Callable Wrappers implementation. Please answer any of the ones you know: 1. Can't get the ProgIdAttribute("Name") to work. I use ComClassAttribute(guid,guid,guid) for all my exposed classes so I was wondering if there is a conflict between these two Attributes...more >>

Syntax of DllImport's EntryPoint field
Posted by Wu YiFei at 8/28/2003 12:43:24 AM
Hi, I try to call c function in C#,What is the syntax of DllImport's EntryPoint field? Why some of extern method need to point out this field while some of them do not need? In my project, A C function defination is //**************** __declspec(dllexport) SbVec2s SoWinFullVwrGetVie...more >>

ActiveX control disappears from Windows form in VS.NET
Posted by Severino at 8/28/2003 12:42:58 AM
Hello, I've developed a MFC based ActiveX control using VC++ 6. In the last days I've tested the control compatibility with the various language of Visual Studio.NET and it seemed to work correctly. Today I was forced to change the control version stored inside the .odl file from 7.3 to 7.4 a...more >>

Automating Excel WorkBook Suppress Excel Message Boxes Possible?
Posted by unemotionalhumanoid at 8/27/2003 11:45:01 PM
I am writing an application that gets data from excel worksheets, it works fine for most workbooks but when I open some by using the following line of code: _xlApp = new Excel.ApplicationClass(); Excel.Workbook WorkBook1 = _xlApp.Workbooks.Open(FilePath,0,true, 5,"", "", true, Excel...more >>

Can I access a remote com server with only cusotm interfaces from c#?
Posted by Howard Swope at 8/27/2003 2:46:14 PM
I am try to access a remote com server from my c# app. The server has no dispatch interfaces. Is this possible? -- Howard Swope Software Engineer Spitz, Inc [http://www.spitzinc.com] ...more >>



P/Invoke: Use StringBuilder for LPVOID type
Posted by John Ting at 8/27/2003 11:37:04 AM
Hi, I wrote a C# wrapper for the ReadConsole Win32API as following: (Original unmanaged signature) BOOL ReadConsole( HANDLE hConsoleInput, LPVOID lpBuffer, DWORD nNumberOfCharsToRead, LPDWORD lpNumberOfCharsRead, LPVOID lpReserved ); (Managed signature) [DllImport(KERNEL32...more >>

VB Late Binding Vs ASP - Using Interop Services
Posted by Christopher Pragash at 8/26/2003 11:04:17 PM
Hello All, I have a problem with ASP & VB 6 using an Interop Assembly . I marshal an array in VB.NET, mark it as <MarshalAsAttribute(UnmanagedType.LPArray)>, and I am able to retrieve the correct values in VB6 using Late Binding, not predefining specific datatypes for the array. But ASP seems ...more >>

MarshalAsAttribute(UnManagedType.LPArray)
Posted by Christopher Pragash at 8/26/2003 7:48:15 PM
Hello, I am trying to Marshal an Array consisting of custom Objects from VB.NET to VB6. The function signature in VB.NET is like the following: Public Function GetItemArrary (Byval ItemCode as String) as <MarshalAsAttribute(UnmanagedType.LPArray)> Array End Function When I use "Regasm...more >>

MIDI in -NET
Posted by Lars Lundstedt at 8/26/2003 5:30:09 PM
Has anyone tried using the Win32 low level MIDI functions in .NET/C#? What I'm trying to do is send and receive sysex-messages but I just can't figure out how to declare and use the midi* APIs. I've successfully declared and used the APIs for getting device caps and opening and sending shor...more >>

modules
Posted by Perecli Manole at 8/26/2003 2:48:01 PM
How can I expose VB.NET modules (shared classes) through a COM callable wrapper? This works with classes but not with modules: <ProgId("Loconet_caca"), ComClass("383F5F0D-ABFE-414C-B71C-E2369AA8BCCD", "BE00CB07-54ED-4322-8075-125F3F0D2EF2", "6444E0EF-91C5-4C4A-992A-3CE8325F1528")> Public ...more >>

Access Denied Exception thrown from Activator.CreateInstance(Type)
Posted by Howard Swope at 8/26/2003 2:04:07 PM
I am trying to get a reference to an ATL COM singleton object running on a Windows CE 4.1 (w/DCOM) device from a C# client. I have no problem accessing it from a Win32 client. The code that I am using to instanciate the object is: Type t = Type.GetTypeFromCLSID(guid,"machinename",true); obj...more >>

MQAX200.DLL - Very Technical question!
Posted by farah_roberto NO[at]SPAM hotmail.com at 8/26/2003 11:06:00 AM
Hi everybody, I have a customer using Win2K, MQSeries 5.2 and MQAX200.DLL from VB.NET using interop. I could get some crash dumps and see that MQAX200.DLL is raising exceptions from DLLUnregisterServer function. During analysis I could see that File Version from MQAX200 is 1.0.0.1 whe...more >>

COM Interop & HTTP Binary Remoting
Posted by Christopher Pragash at 8/25/2003 8:53:19 PM
Hello All, I am in the process of migrating the business layer of a web application into VB.NET and also implementing HTTP Binary Remoting between the Business Object Server and the Web Server (IIS) from where ASP pages call the business objects. I have a very strange problem. The ASP and ....more >>

Marshalling Nested Structures
Posted by news.microsoft.com at 8/25/2003 5:04:41 PM
Hi there, I have a wiered scenario. I have two structures defined this way in unmanaged dll. struct A{ char * name; int ID; }; struct B{ struct A* record; }; Then I have a function in the dll that consumes a pointer to struct B. like this. int InitRecord(st...more >>

Substitute for marshalling interfaces
Posted by Daniel Weber at 8/25/2003 1:38:55 PM
Hi there. A method of my implementation of a COM interface takes an interface as parameter, which I never use. I could save the code for the definition of that interface, but what would be a substitute for that parameter ?? Maybe IntPtr ?? Thanks Daniel ...more >>

Using UxTheme.dll with C#..
Posted by Kieron Lanning at 8/25/2003 11:38:00 AM
Hi, Does anyone know of any tutorials of using the UxTheme.dll functions from within a C# app...i seem to be having a serious 'brain fade' with this...can't draw the correct fonts etc...any help would be appreciated. Cheers Kieron ...more >>

using GetThemeColor from C#...
Posted by Kieron Lanning at 8/23/2003 2:28:11 PM
Hi, I've been trying use the GetThemeColor function from the uxTheme.dll in a C# app...but i can't seen to get a valid result? Could someone tell me what I'm doing wrong here?? [DllImport("uxTheme.dll", EntryPoint="GetThemeColor", SetLastError=true, CharSet = CharSet.Auto, ExactSpelling = tr...more >>

Translate COM interface
Posted by Franz at 8/22/2003 11:06:16 PM
Actually I want to access the IHtmlDocument2Ptr interface, but I find that I can't add mshtml.dll as a reference. Therefore I think I have to translate the COM interface(which is inside mshtml.h) to C#. But it is very complicate to translate, because it contains other inferfaces and many methods a...more >>

using Marshal.ReallocHGlobal
Posted by news.microsoft.com at 8/22/2003 12:03:16 PM
Hi there, I am trying to use marshal.ReallocHGlobal function. My unmanaged dll requires call back functions that the unmanaged routine can use to allocate, reallocate and free memory. For allocating and freeing memory I can use the Marshal.AllocHGlobal and Marshal.FreeHGlobal functions. ...more >>


DevelopmentNow Blog