all groups > dotnet interop > august 2005 > threads for august 15 - 21, 2005
Filter by week: 1 2 3 4 5
c# usercontrol in web page inside axWebBrowser in windows form
Posted by tosch at 8/19/2005 1:46:08 PM
We are hosting the axWebBrowser in a windows form. A web page is loaded that
contains a .net user control. If we have set the UIHandler, the browser
control hangs on dispose. The last call in the stack is this :
system.windows.forms.dll!System.Windows.Forms.Control.ActiveXImpl.SetClientSit... more >>
Extend / Mirror desktop on Multiple Monitors in C#
Posted by mphacker at 8/17/2005 7:18:18 PM
I am looking for the best way to switch Windows video modes. Here is
what I am trying to accomplish:
I have an app that need to initially display the same content on 2
monitors hooked to a Windows XP box (mirror of the primary display).
At a point in time the application needs to switch the ... more >>
Passing interface as method argument
Posted by Danil Shebounin at 8/17/2005 3:52:04 PM
Hello!
I have two com interfaces: IAttrList and IOdsUtil.
IOdsUtil have function IOdsUtil::GetDefaultFolder([in,out] IAttrList **atl)
Both interfaces are imported into .NET producing classes CAttrList and
COdsUtil
Is it a right way to pass one of interfaces as an argument to method of
... more >>
PInvoke - Please Help!!!!
Posted by Luis Fajardo at 8/17/2005 11:09:09 AM
Hello, I'm trying to invoke the following API's using PInvoke from a C#
class, as follows:
C++ API (.h)
// converts an string to unicode
void toUnicode(PJSTR dest, PCZSTR src);
// converts unicode to string
void fromUnicode(char *dest, PCJSTR src);
where....
typedef const JCHAR * PCJS... more >>
Exposing .NET events to VBScript / Outlook forms.
Posted by strawjackal NO[at]SPAM gmail.com at 8/17/2005 9:46:31 AM
I have a .NET component I am trying to expose to COM - specifically
code running in an Outlook form.
This component has an event that I want to catch from my VBScript.
I've tried defining a COM event interface with an event that matches my
control's event signature. When I instantiate the cont... more >>
BITS 2.0
Posted by William Straitt at 8/17/2005 9:05:13 AM
Is there a BackgroundCopyManager.dll created for BITS 2.0 and where could I
get it?
Thanks,
Bill... more >>
Marshalling...problem
Posted by kiran at 8/17/2005 12:00:00 AM
I got the fallowoing exception when i try to marshal the c++ structure
to C# structure.
" System.Runtime.InteropServices.SafeArrayTypeMismatchException:
Mismatch has occurred between the runtime type of the array and the sub
type recorded in the metadata."
C++ structure
-----... more >>
Problem when workaround word application
Posted by SasiKumar at 8/17/2005 12:00:00 AM
Hi,
I have a problem in workaround the word application.
When i doing something like inserting text,inserting values into table in a
word application,which is openend through vb.net.simulateneousely when we
open word application manually,document will open using existing
instance(which is we ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DCOM Remoting
Posted by Joe Shoop at 8/16/2005 10:43:02 PM
I have a COM component on a remote machine. I think, it should be possible to
access it using a .NET client and late binding as follows:
Type type = Type.GetTypeFromProgId("ACOMobject.Test", "MachineName");
Object objTest = Activator.CreateInstance(type);
objTest.foo();
But for some reason... more >>
Office Add-in ... installing on non-dev machine.
Posted by Glass Half Full at 8/16/2005 11:19:59 AM
Are there instructions or special gotta's about creating an Office Addin
installable on a PC other than the dev machine. I have an Addin that works
find on the dev machine I can run the Setup project to install and uninstall
the addin on the dev machine and all works fine. When I move this t... more >>
Question regarding .NET Reflection in VS.NET (revised)
Posted by Ralph Mücke at 8/16/2005 7:43:02 AM
I have defined an attribute class to describe each property of an interface.
Afterwards, I declare a class implementing this interface.
'Attribute Class Declaration
<AttributeUsage(AttributeTargets.Property)> _ Public Class
IPSPropertyAttribute
Inherits Attribute
...
End Class
... more >>
SetEnvironmentVariable in Debug and Release configuration
Posted by denis.greatest NO[at]SPAM gmail.com at 8/16/2005 1:48:40 AM
Hello folks,
I was trying to set some environment variable for a process I create.
(The variables are my own, not system).
I use SetEnvironmentVaraible() from C# code.
In Debug configuration this works fine, but in Release configuration
the action fails.
The return value is TRUE, and no Ex... more >>
memory leak with com interop
Posted by dmalhotr2001 NO[at]SPAM yahoo.com at 8/15/2005 6:13:05 PM
Hi,
I am trying to find out where there is a memory leak in our
application. I have created a test harness in C# to test this.
I'm basically hitting the object (written in c++) really hard by
looping through it
Here is the code in c#:
###################################
for (int i = 0;... more >>
Please help write wrapper to C function
Posted by v.fedoroff NO[at]SPAM gmail.com at 8/15/2005 7:45:30 AM
Hello everyone,
I have in the native DLL next method defined in header file:
VOID _Case(HCASER hCaser,LPSTR pIn,LPSTR pOut);
I tried wrote C# wrapper like:
[DllImport(@"SlDll32.dll",
EntryPoint="_Case",
CharSet=CharSet.Ansi,
ExactSpelling = true,
CallingConventi... more >>
Marshalling a struct with strings from unmanaged C++ to C#
Posted by John Eyles at 8/15/2005 7:41:02 AM
I am attempting to write a C# wrapper to an unmanaged C++ hardware driver and
I am running into difficulty returning strings inside a struct. The C++
function takes a pointer to a struct which it fills with data. The function
returns ok but the managed code fails with an null reference excepti... more >>
CLSIDs on VB6 DLL
Posted by m00nm0nkey at 8/15/2005 7:23:03 AM
I have a VB.Net Console Application which references an ActiveX DLL I have
written in VB6. The problem seems to be that, when I register the ActiveX
DLL, it doesn't seem to necessarily put the DLL in the registry in the same
place as it was on my development machine.
The error states: COM ... more >>
Marshal Structure Containing Array of Enums
Posted by Tyler at 8/15/2005 12:00:00 AM
I am attempting to write an application that will interface with a legacy
API written in C. In one instance, the legacy API is invoking a call-back
and providing a structure that contains an array of enums. The problem is
that I cannot get the marshaller to convert the structure without an e... more >>
|