all groups > dotnet interop > march 2007 > threads for march 1 - 7, 2007
Filter by week: 1 2 3 4 5
Variant array of Structs by Ref
Posted by sbparsons at 3/7/2007 1:57:07 AM
I'm using interop between .Net and C++ (COM) and am attempting to retrieve an
array of structs from the COM server.
I realise that having VT_RECORD type data in variants is not supported.
Is the only way to accessing these types of returns via custom marshalling?
A book that I am reading (pr... more >>
Using GetOutlineTextMetrics GDI API from C#
Posted by Kristofor at 3/6/2007 1:29:25 PM
Hi,
I am working on a project that includes creating a PDF file by hand using a
predefined font. The PDF reference requires certain font metrics be
included. Using the FontFamily class, I have access to a few, but the
majority of them aren't available. Therefore I'm attempting to use PIn... more >>
Native DLL and callback in C++
Posted by Erik_Wikstr=F6m at 3/6/2007 7:40:04 AM
I'm trying to figure out how some stuff can be done when calling
functions in a native DLL from managed C++ and the called functions
have callbacks. What I want is to be able to use an opaque type as a
handle for the user of the DLL, in this case it's called Test and the
user can create/delete i... more >>
Help me - ATL dll in vb.net
Posted by Nicol at 3/6/2007 7:01:35 AM
Hi,
I created ATL dll in vc++. One of the function has datatype as WCHAR*.
I am rferring this dll in .net, .net automatically converts this to interop
dll and the signature for the method WCHAR* is changed to ushort.
I actually have a string in WCHAR* variable. since it is ushort in .net ... more >>
Creating Journal Record Hook gives error 1400 (Invalid Window Hand
Posted by mihi at 3/3/2007 5:37:00 AM
I am trying to create a journal record hook in C#. According to
http://www.codeproject.com/tools/winmacro.asp
I do not need a DLL for it. Creating a Journal Playback hook works (although
I don't have anything to play back yet), and creating the Local Message Hook
for getting the WM_CANCELJOUR... more >>
Equivalent of void*
Posted by Bumbala at 3/2/2007 7:42:06 AM
Hello,
What is the equivalent of "void*" in managed C++ ?
Thanks.
... more >>
P/Invoke OutOfMemoryException in .NET Compact Framework 2.0
Posted by Pedro Mota at 3/1/2007 9:35:22 AM
Hello,
I'm getting an OutOfMemoryException when calling a native method.
The same program and library are working on the big .NET Framework 2.0 but
not on the Windows CE 4.2 that I have.
The exception is thrown at the level of P/Invoke because it's when I call
the function in managed code... more >>
GetWindowTextLength hangs in .NET
Posted by ME at 3/1/2007 9:11:17 AM
I have a application that reads another application's text box. I use
GetWindowText and GetWindowTextLength to read the text into my C#
application. From time to time the call to GetWindowTextLength 'stalls' and
never returns. It is not that it does not return a value, but rather the
call... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Marshalling CComBstr to System.String
Posted by akumaramar NO[at]SPAM gmail.com at 3/1/2007 5:32:25 AM
Hi,
I have below declaration in C#
void
UpdateSpousePayrollDetails([MarshalAs(UnmanagedType.IUnknown)]Object
termlf, [MarshalAs(UnmanagedType.IUnknown)]Object dpyCdh,
[MarshalAs(UnmanagedType.BStr)]String SD04);
and want to call this function from C++. The code to call this
function is
... more >>
Marshalling complex types between a .NET CCW and VBScript
Posted by GregB at 3/1/2007 3:44:14 AM
We want to determine whether it's possible to develop a .NET COM-
callable wrapper (CCW) which exposes complex types that are accessible
to a VBScript client. We have found that VBS has no problem accessing
'simple' types like integer, String, Boolean. On the other hand, we
are seeking advice ... more >>
|