| Thread | Last Post | Replies |
|
| Use C lib file in C# | 29 Mar 2005 10:46 GMT | 3 |
I got two library files (*.lib) and some header files which is written by ANSI C from a third party. Inside the header files, there are many struct, variables and methods declare inside. I am now want to use them in C#. I have been looking for a solution for a long time. I think ...
|
| Marshal C# -> C DLL: Automatic or explicit? | 29 Mar 2005 04:30 GMT | 2 |
I have a C struct and a DLL with a single function. I've used the MarshalAsAttribute, ref, DLllImport, StructLayout, UnmanagedType, etc... declarations and I'm not having any luck. I'm not really clear on when you can use the special declarations for
|
| DllImport works in Visual Studio but not standalone | 29 Mar 2005 00:37 GMT | 1 |
This is a little different than the other DllImport problems I've seen. I'm calling a DLL from C# and it works great when I run inside Visual Studio .NET. But when I try to run my application from the same .EXE file that the
|
| How I use VC++ dll by C# | 28 Mar 2005 07:21 GMT | 2 |
I have a library(.dll). It's develop by VC++ 6.0. I would like to know how C# can used my library? When I add reference at C# project it will show my dll is not a valid assembly or COM component. How I fix this problem. I don't want rewrite my dll because it's very big project ...
|
| Problem: Calling Indesign from a Windows Service | 27 Mar 2005 21:02 GMT | 2 |
Abstract: A watched folder is monitored for XML files, once the event Created is raised, an Indesign.Application should be created And should process the XML, this works fine using a windows form
|
| Getting structs from gdi32 | 25 Mar 2005 20:36 GMT | 2 |
[partly a cross-post with win32.gdi, but noone answers questions there] I'm working on a C# project where we need to get glyph vertices from fonts. There are several examples on how to do this in C++, but interop not being my strongest side, I have some questions:
|
| Future support of ActiveX wrapper of .NET user controls? | 24 Mar 2005 17:53 GMT | 2 |
This seemed to be a popular topic a while back and I haven't seen any recent posts on it, so I'm going to ask: It is currently unsupported to create a UserControl in .NET and do the interop wrappers to make it function _properly_ when used as an ActiveX
|
| Why do cross process QI calls fail | 24 Mar 2005 17:51 GMT | 2 |
I'm creating an VB.NET class the implements 2 COM interfaces, call them IFoo and IBar. If I create an object in my local process, I can call IFoo->QI and get back the IBar interface, but if the object is hosted in a different process, the QI fails. Any ideas how I can get this ...
|
| Managed/Unmanaged : Threading code on which side? | 24 Mar 2005 15:56 GMT | 1 |
I'm working on a project that entails calling into a legacy C DLL. The original unmanaged test code (ancient C++) works OK, but after generating managed C++ shells for calling the DLL via C#, performance has taken a hit. I can't explain it--Smaller scale
|
| function pointer | 24 Mar 2005 08:50 GMT | 2 |
I have a struct in C with a function ptr in a dll called Image.dll: The functionptr is initialized and called in the C-code The application completes the above operation and then terminates with an exception of System.OutOfMemoryException
|
| CreateProcessWithLogonW problem with XP SP2 | 24 Mar 2005 08:18 GMT | 1 |
I'm trying to run an application under another user within a winform app writen in C#. I have tried a number of different things, but it seems that the CreateProcessWithLogonW function should work to do what I need to do. This appears to work just fine in Windows 2000 and XP
|
| .Net and DTC | 23 Mar 2005 17:45 GMT | 4 |
Is it possible to access the statistics of a remote DTC via .Net (C#) at all? Cheers Ollie Riches
|
| ASP and overloaded methods | 23 Mar 2005 11:29 GMT | 2 |
I'm sure this question have been asked before, but I cannot seem to find it in here. I've have a classlibrary written in .net that's exposed to com via interop (registered in the GAC and so on).
|
| HOWTO: properly call methods asynchronously??? | 22 Mar 2005 15:43 GMT | 1 |
I have a component im using in my application. When I call a method myComponent.slowMethod() my entire application hangs until slowMethod() completes. I have tried using the .net threading model to trigger the slowMethod inside a thread wrapper class but I still have the same ...
|
| FormatMessage 1812 | 22 Mar 2005 04:44 GMT | 1 |
Hi, I was wondering if anyone could explain why my c# code is not working as expected. See the inline comment for my particular problem, which occurs immediately after the call to FormatMessage: /// <summary> /// Gets the last error that occured on the calling thread. If the last ...
|