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 2005 > threads for august 8 - 14, 2005

Filter by week: 1 2 3 4 5

Variant size in WIN32 and WIN64 ?
Posted by Roberto at 8/14/2005 12:11:02 AM
Hello, I must use an array of variants to pass to a COM method. So i create an IntPtr and i use GetNativeVariantForObject() which works well for the first variant because i created a very large buffer. I do not know the size of a Variant, so i can't copy the others variant. What is the ...more >>


Interop assmblies on different computers
Posted by Bernd at 8/14/2005 12:00:00 AM
Hi, I am developing COM addins for Word and Excel. To work with these office applications my project has references to the corresponding COM objects (Microsoft Word 11.0 Object Library, for instance). Recently I started using a second computer for development. After having copied my proj...more >>

Member Variable Values Are Reset After Transaction Completes.
Posted by Mike Malter at 8/13/2005 6:48:25 PM
Here is the overview: I have a presentation layer (it can be an web page or a windows form), a Business Layer where business rules are enforced and a Data Layer which knows about the physical data store. The business layer does not know anything about the physical data store, and all it wa...more >>

fixing (pinning) class struct
Posted by antoine at 8/12/2005 7:25:16 PM
Hello, so I have an unmanaged dll c++ , which need a persistent pointer to a struct defined outside the dll , the dll keeps this pointer all along the life of the application. I use the c++ dll in a managed c# application where I initailize the struct, and where I pin its memory to pre...more >>

Crossing Managed/Unmanaged Boundary
Posted by Brian R. at 8/12/2005 8:35:14 AM
As I understand, there are ways to 'hook' into the CLR to aid in resolving assembly locations and other features. In a similar vain, is there a way to 'hook' into the CLR to be involved in Exceptions/Errors being returned to the unmanaged world from a .NET component being used through the...more >>

Array to pointer
Posted by Marco Filippini at 8/11/2005 11:49:03 PM
Hi, I'm developing an Managed C++ class library on top of a C++ static library. The managed C++ library will be used as a wrapper by others C# apps. How can I convert a managed array of bytes (Byte xxx[]) to an UCHAR* pointer inside the managed C++ class? Thank u in advance, Marco ...more >>

Write PDF Report ?
Posted by WJ at 8/11/2005 10:05:25 PM
I am planning to use PDF as a final report so that users can save what they have entered in the asp.aspx form to their own hard disk. Is there a component or control that will handle this ? I donot wish to use Crystal Report nor SQL Report. All I need is: when the use presses the "Print" bu...more >>

need help regarding debug unmanaged code
Posted by kiran at 8/11/2005 12:00:00 AM
Hi I wrote a Cshartp windows applicaiton which will use Win 32 dll by platform invoke. I want to debug the C# application when ever it is calling unmanaged functions i want to step into the function and debug the unamnaged code. I have the Win32 dll source code How can I step into the unman...more >>



baffled by avicap32 interop
Posted by Workgroups at 8/10/2005 7:10:55 PM
I've got a vb.net application that's using: Private Declare Function capGetDriverDescriptionA Lib "avicap32.dll" (ByVal wDriver As Short, _ ByVal lpszName As String, ByVal cbName As Integer, ByVal lpszVer As String, _ ByVal cbVer As Integer) As Boolean and... P...more >>

GetQueueStatus(QS_ALLEVENTS)
Posted by gv at 8/10/2005 5:18:41 PM
Hi all, Once in the below sub and gets to the do loop, it seems this line If (GetQueueStatus(QS_ALLEVENTS)) Then does not work? I'm pressing keys but nothing. please help Private Declare Function GetQueueStatus Lib "user32" (ByVal fuFlags As Long) As Long Private Const QS_HOTKEY ...more >>

Class exported from DLL
Posted by Gene Daniel at 8/10/2005 4:37:48 PM
Hi, I have a DLL that has a C++ class exported. Is there any way that I can use this class in a C# program? I know about the COM interop but this class isn't a COM class. I also know about accessing functions in DLLs using the DllImport attribute but I don't think that imports classes (or ...more >>

C# Win32 Interop - LVM_GETITEMTEXT does not work
Posted by janhavib NO[at]SPAM yahoo.com at 8/10/2005 3:45:43 AM
Hi, I'm trying to access listview control in a VB application from C# application. Follwoing is my code StructLayoutAttribute(LayoutKind.Sequential)] public struct LV_ITEM { public UInt32 mask; public Int32 iItem; public Int32 iSubItem; public UInt32 state; public UInt32 stateMask; pub...more >>

Marshaling array of a string in a managed callback called from unmanaged code
Posted by antoine at 8/10/2005 12:00:00 AM
Hi, i have a "c# call back" called by c++ code. this call back has an array of string as parameter, how do i do the marshalling ? i try this but it does'nt work !!! thanks for answers. c++ code (MYLIBDLL.dll) : ---------------------------------------------------------------- extern "C" {...more >>

Excel Interop issues with a new spreadsheet
Posted by PromisedOyster at 8/9/2005 11:16:07 PM
We have a C# application that is using the Excel object model via Interop. The code below works fine for an existing workbook, ie one that you have opened up (or saved), but if you open up Excel, click the New button, enter some data and then run the program below, an Exception is thrown: ...more >>

Excellent!
Posted by Juan Dent at 8/9/2005 10:00:04 AM
Hi, I wanted to thank Mattias and Peter for their continued quality and fast response! I truly appreciate their work! -- Thanks in advance, Juan Dent, M.Sc....more >>

Backward compatibility Word 2000/2002 and PIAs
Posted by Morten at 8/9/2005 12:00:00 AM
Hi. I am developing a solution in Visual Basic .NET for creating tables on the fly in Word documents. The development is done on a machine with XP and Word 2002. The code is supposed to run on a Win 2000 Server with Word 2000. The problem is that it works on my machine but not on the server...more >>

Dll function trace
Posted by Federico G. Babelis at 8/8/2005 10:40:50 PM
Hi: I need a trace tool to see what functions are being called from my program to a dll, I know that FlexTrace does that but I don't want to write the symbols trace file, and I don't have all the Dll functions. There out there a tool that can hepl me to see what functions in a dll is bei...more >>

Common Language Runtime Internal error: 0x801311ca
Posted by Candi Suriano at 8/8/2005 1:55:02 PM
Help! I have a VB.Net dll that must be exposed to COM. The VB.Net program calls a C++ With managed extensions dll. When I try to reference the VB.Net dll from another VB.net program I get the following error message: Unable to emit assembly: Error emitting 'System.Runtime.InteropServ...more >>

Memory Leak in MS Article about enum printerjobs
Posted by Philip Wagenaar at 8/8/2005 5:46:10 AM
I am using the article http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B821769 for basis of program to change the owner of a printjob. However when I use this Microsoft supplied step by step sample my application has a memory leak, the application keeps on consuming more and more ...more >>


DevelopmentNow Blog