all groups > dotnet interop > march 2005 > threads for march 22 - 28, 2005
Filter by week: 1 2 3 4 5
Memory leak?
Posted by Steven Kilby at 3/26/2005 12:13:55 AM
Hi,
I'm not sure, but I may have found a memory leak between vb6 and .net. Of
course, it is possible that I just don't understand something correctly or I
did something wrong. In any event, what I've done is create a C# class
library that exposes an interface through COM. If I instantiat... more >>
Getting structs from gdi32
Posted by Peder Y at 3/25/2005 2:32:43 PM
Hi!
[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:
1) Most gdi functi... more >>
Interop COM in C# - can't get the object released
Posted by Alan at 3/25/2005 11:09:03 AM
I am trying to develop an ATL COM object together with a C# web
application that will host it. I am following the COM Interop Part 1: C#
Client Tutorial, Example 2, The C# Code Approach from the April 2004
MSDN library exactly. But the client will not release the COM object.
The COM object is ... more >>
Use C lib file in C#
Posted by Kenneth at 3/25/2005 10:02:04 AM
Hi all,
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 th... more >>
Marshal C# -> C DLL: Automatic or explicit?
Posted by TedSharp at 3/24/2005 6:35:02 PM
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
automatic marshalling or when (or how) ... more >>
Managed/Unmanaged : Threading code on which side?
Posted by _R at 3/24/2005 6:36:10 AM
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
tests run OK, but stressing the code cau... more >>
CreateProcessWithLogonW problem with XP SP2
Posted by jerry at 3/23/2005 7:23:25 PM
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
with service pack ... more >>
Future support of ActiveX wrapper of .NET user controls?
Posted by Mike Jansen at 3/23/2005 5:02:53 PM
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
control. Is there support for this plan... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Callback method parameters shift
Posted by Bill B at 3/23/2005 3:21:02 PM
I am calling a method from C# to an unmanaged dll that includes two callback
methods, one for reading from a buffer and one for writing to a buffer. The
callback methods have 3 parameters, all IntPtrs. The first callback to each
method works fine, but the second time the read callback is cal... more >>
.Net and DTC
Posted by Ollie Riches at 3/23/2005 12:51:57 PM
Is it possible to access the statistics of a remote DTC via .Net (C#) at
all?
Cheers
Ollie Riches
http://www.phoneanalyser.net
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just ... more >>
Why do cross process QI calls fail
Posted by Bill Rust at 3/23/2005 10:53:08 AM
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 working?... more >>
How I use VC++ dll by C#
Posted by modx at 3/23/2005 10:12:01 AM
Hi All,
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.
... more >>
ASP and overloaded methods
Posted by Johan Karlsson at 3/23/2005 9:02:25 AM
Hi!
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).
Is there anyway to call overloaded functions from a script environment?
Example:
Pub... more >>
function pointer
Posted by shirsoft NO[at]SPAM gmail.com at 3/23/2005 2:06:50 AM
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
//------------C-Code---------------//
typedef struct... more >>
Using calling .NET dll from VB6
Posted by Michael--J at 3/22/2005 11:13:02 PM
Hi,
We have a legacy application (which is quite complex and large) written in
VB6. We are currently upgrading it and enhancing its functionalities. We have
also adopted .NET as our new development evironment. As a result of this, the
upgraded version of our application contains code which ... more >>
Finding COM Interfaces
Posted by David Jessee at 3/22/2005 8:59:03 AM
I'm getting a COM Object, but I'm not totally sure which COM Interface(s) it
implements.
How can I find this out?... more >>
How to kill an COM instance in a thread??
Posted by Kevin Yu at 3/22/2005 8:46:34 AM
hi all
running into C# COM interop issue here. we are using a COM+ component to
send email through the *wonderful* lotus notes server. since the COM instant
might crash/hang, so we use a thread to do the sendmail process, when the
COM object hangs or reach timeout. we will killing the thread t... more >>
HOWTO: properly call methods asynchronously???
Posted by Alex Glass at 3/22/2005 7:50:20 AM
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 behavior.
Is ... more >>
tooltips_class32 addtool returns true (no tool added)
Posted by Dave at 3/22/2005 12:42:06 AM
Hello,
I'm attempting to write a tooltip class that uses NativeWindow so I can get the InfoTip effect, but I'm having troubles right off
the bat. I've included alot of the code to help out those who feel they might have some insite.
I do NOT want someone elses project or control. I'm doing... more >>
|