| Thread | Last Post | Replies |
|
| Unable to successfully return data from dllimport function (C#) | 31 Dec 2004 16:46 GMT | 1 |
I am having difficulty figuring out which datatypes to use for return values in a particular DLL import function (C#). I am trying to use the CryptGetKeyParam function from the ADVAPI32.dll API call to return certificate information. I am able to successfully call
|
| COM Interop 429-error | 30 Dec 2004 16:59 GMT | 6 |
I've made a simple .NET .dll assembly which I deployed to another computer through a Setup-project (.msi-file). I opened Visual Studio Basic 6.0 and referenced the assembly. When I run the program it gives me: "Runtime Error 429 ActiveX Component can't Create Object". Doesn't the ...
|
| Marshalling COM components between threads in dotnet | 30 Dec 2004 16:36 GMT | 1 |
I'm hoping someone can help here. In C++, if you create a com object in a thread running as an STA, & then want to use it on another thread running either as an STA or MTA, then the interface needs to be explicitly marshalled using, for
|
| GetHdevmode, GetHdevnames and PtrToStructure | 30 Dec 2004 15:59 GMT | 4 |
Answering my question may require some familiarity with printer drivers in addition to interop. I'm trying to implement some interop code between a C# application and our UniDriver printer driver. I'm having two problems really:
|
| Casting Manged Array To Unmanged type | 30 Dec 2004 05:51 GMT | 1 |
If you have something like this: Byte myArray[] = new Byte[someSize]; And you pass that to a Win32 function using P/Invoke, is it possible to then cast that array to the "real" unmanged type that is contained within that
|
| Terminal Server API | 29 Dec 2004 12:57 GMT | 4 |
I am makeing an app which uses WTS API function. I have done most of it, except a little part where I should marshal a structure from pointer. I have found some code in newsgroups, but it is in C# and I use VB .NET.
|
| Get text from Web Browser control | 29 Dec 2004 09:33 GMT | 4 |
Is there any way to 'scrape' the ascii text from an AxSHDocView:AxWebBrowser control? IOW, I'd like to get the text as it is displayed by the browser. Somewhat like selecting all text in IE and doing a capture to
|
| Union in VB.NET | 28 Dec 2004 16:18 GMT | 3 |
I am trying to port a C stucture with union 's inside to VB.NET. I know there is no UNION keyword in VB.NEt, but how can i solve this in VB.NEt ? kind regards
|
| C# to C++ | 28 Dec 2004 00:11 GMT | 4 |
What would be the analogous c++ statement for this C# code ComInterface ci = (ComInterfaceClass)Marshal.CreateWrapperOfType( GenericType, typeof(ComInterfaceClass)); or
|
| Memory Allication (Managed VC++ to Unmanaged DLL) | 28 Dec 2004 00:05 GMT | 2 |
Simple question on memory allocation. I have a "Unmanaged" Client DLL that I'm creating a Managed wrapper to be used in Visual Basic .Net and C#.. Current in on the client side of the application, There are points where I
|
| Making a PIA from an imported typelib | 28 Dec 2004 00:02 GMT | 4 |
I have a very custom case where a typelib relies on another typelib that does not have a PIA. We want to make our interop for our typelib a PIA. We cannot change our typelib at all (interfaces are cemented), so the decision was to modify the interop assembly created from our ...
|
| Problem with WinAPI | 27 Dec 2004 23:57 GMT | 1 |
I use some of Windows Terminal Services APIs in my app. The is an API function which enumerates sessions on a terminal server. It uses a pointer from another API function to know on which exactly server to operate.
|
| null reference exception on DLL call in C# | 27 Dec 2004 23:45 GMT | 1 |
I'm trying to implement calls to an existing C-based DLL within a C# program. It sounds straightforward enough, but any calls to the extern functions produce a NullReferenceException. My code looks like this: [DllImport( @"e:\jbhexe\sscam.dll", EntryPoint="BAM_calcs" )] public ...
|
| Returning char* as string | 27 Dec 2004 23:31 GMT | 1 |
As I understood, when returning System.String with interop, .NET tries to delete it with CoTaskMemFree(). But, this char* points to permanent part of memory, and should not be deleted. Is it possible to disable this behaviour (with some marshal attribute maybe)? I know I can return
|
| RAM used goes crazy with Dllimport ? | 27 Dec 2004 11:52 GMT | 2 |
I have a native, C++ console app that uses ~26MB of RAM when it runs. It uses quite a lot of RAM to make some math but will never xceed 26MB. Now I've made a dll out of this code and use it with DllImport in a C# console application.
|