all groups > dotnet interop > july 2007
Filter by week: 1 2 3 4 5
Question about COM & .NET Security
Posted by carl_bevil NO[at]SPAM yahoo.com at 7/31/2007 3:47:12 PM
I am developing a .NET serviced component using EnterpriseServices (in
C#). It interacts with some COM objects, and implements some
interfaces defined in COM code (C++).
I am adding role-based security to the .NET serviced component. What
I'd like to do is restrict access at the interface le... more >>
invoking C# function from C++
Posted by George at 7/30/2007 11:48:01 PM
Hello everyone,
I have developed a COM component using C++. And I need to invoke some
functions in another DLL which is implemented in C#. I am wondering whether
there are any tutorials or samples of how to do this correctly and safely?
I have this question because I noticed that the d... more >>
Accessing com+ object in a different machine from IIS
Posted by ak at 7/30/2007 10:55:50 PM
Hi Guys,
I need some help on the topic.
I am trying to access a com+ object located in a physical machine
(let's say machine A). In another physical machine (machine B), I have
a web application running on IIS that will access the com+ object in
machine A. CreateObject() procedure is called... more >>
Advice on dynamically loading .Net assembly when cscript.exe is the hosting process
Posted by Anthony LaMark at 7/30/2007 7:14:23 PM
Hi All,
I have a .Net Assembly that is COM enabled (COM-Interop) and so is
instantiated and used in vbscript and jscript. I install it into the GAC
(during our installation program). This assembly has dependencies on other
..net assemblies (from another companion product) to run. These d... more >>
howto generate a helpstring in typelib from interop assembly?
Posted by little wizzard at 7/30/2007 1:20:00 AM
hello,
I have created an interop assembly in C#.
But I couldn't find any way to export helpstrings to the generated typelib
for this assembly.
Which ways have I to do this?
Thanks for your time and any suggestions.
Best regards
Detlev... more >>
The reverse way ...
Posted by victor at 7/30/2007 12:00:00 AM
Hello,
Need some help: I want to call a managed dll (C# code) from a C++
module.
Is there a kind of a 'Reverse-P/Invoke'?
How / what to do?
Thanks.
victor.... more >>
Heap Corruption Issue using Manifest Files
Posted by Suds at 7/27/2007 4:39:30 PM
Hi,
I have been using Reg-Free COM to load a .NET assembly using a CPP client
using manifest files. Recently I deployed my .NET assembly, and the loading
of my .NET assembly was leading to heap corruption and eventually the
crashing my application. I was able to develop a sample project that... more >>
Strange tlb-reference problem in VS2005
Posted by Henning Friese at 7/27/2007 5:52:22 AM
Hi NG,
I'm encountering a strange problem with a reference to an activex-tlb
from my C#-VS2005-project. Sometimes when I try to build the project I
get build-errors like "Type or namespace xxx not found..." where xxx
is a namespace within the tlb. The reference-symbol in the solution-
explore... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Showing Modeless Dialog using the CCW?
Posted by herc at 7/26/2007 1:52:12 PM
I have modified my project from the previous post and am not using
exclusively the COM callable wrapper (CCW)...
I have C++ code calling into .Net 1.1 code via the CCW. There is on
call that launches a Managed modeless dialog. Right now the dialog
starts to draw the frame but that is it. Th... more >>
Regasm is for ComVisible .NET Assemblies -AND- PIA's???
Posted by Mike S at 7/24/2007 6:16:01 PM
OK, I used to think I understood what RegAsm was for: if you are
exposing a .NET assembly to COM, you RegAsm the assembly to add all of
the necessary COM entries to the registry so that the COM runtime can
instantiate your ComVisible .NET classes - I thought that was the *one
and only* scenario ... more >>
How to use generics in an interface?
Posted by Juan Dent at 7/23/2007 7:32:01 PM
Hi,
I have an interface that uses generics in its methods:
[ComVisible(false)]
public interface IGenericProperty
{
bool GetProperty<T>(string propName, out T value);
}
I have marked it [ComVisible(false)] because COM can't handle generics.
However the class th... more >>
Newbie COM question about passing arrays
Posted by Brian Jones at 7/21/2007 6:43:44 PM
Hello,
I'm new to COM development. Here's what I want to do:
In unmanaged C++:
1) Create an interface called ITeam
2) Create another interface called IPerson
3) Create a method in ITeam called GetTeamMembers. this will return an array
of IPerson's.
In unmanaged C# or VB.NET:
I want ... more >>
C# Finalize not called by CCW - really true?
Posted by czapkofan NO[at]SPAM gmail.com at 7/20/2007 5:46:15 AM
Is that really true that in an in-proc C# assembly the Finalize
methods are not called when COM objects are destroyed from the caller?
And if so, is there any solution for this problem? Or the only one is
to define a "Cleanup()" method and tell all users to call it and hope
they will?
I'm usi... more >>
Tlbimp: unexpected conversion of SAFEARRAY in structure
Posted by Armin Zingler at 7/19/2007 1:00:30 AM
Hi, (.Net 2.0)
an AX-DLL written in VB6 is imported by tlbimp.
VB6 code:
Public Type SAKomplexRecord
....
End Type
Public Type SAKomplex
Records() As SAKomplexRecord
End Type
IDL: (from original VB6 DLL)
typedef [uuid(.....), version(1.0)]
... more >>
Supprise Com Exception
Posted by at 7/18/2007 3:56:11 PM
Hi
I'm using macromedia flash.ocx version 8.0 I'm developing windows
application with c#
Sometimes
"Attempted to read or write protected memory. This is often an indication
that other memory has been corrupted"
exception occurs in my application.
I think com component cause this
I don't wa... more >>
Problem registering assembly for using it as ActiveX
Posted by Elvian at 7/18/2007 2:25:01 AM
Hello,
I've got a little problem. I used to develop a component with Visual
Studio .NET 2003 (.NET framework 1.1), and registering this assembly
to COM interop with a function only writing keys in the registry
(regedit).
This way, I was able to include my activeX component in a former
Visu... more >>
Walker
Posted by Walker at 7/17/2007 12:19:06 PM
Problems with Automation Add-in for Excel
Posted by Otavio at 7/17/2007 8:22:02 AM
Hi everybody!
I have created an automation add-in in C# using VSTO. When I build, I can go
in Excel, outils, add-in and add the add-in wich appears in the list.
When I make an install of my add-in in another computer, it doesn't work. Why?
Help me please,
Thank you,... more >>
How to free the memory allocated in unmanged code from managed code?
Posted by at 7/17/2007 5:49:42 AM
Hi,
I am using a COM component which provides a function like
GetBitmapData(out BYTE* pData, out long *pLen), in which it allocates
the memory using "new" and returns the pointer and length of memory
block.
i am calling this functon in C# in following way...
int pImageBuffer = 0;
int len ... more >>
invoking .net2.0 dll from .net1.1 exe
Posted by eblaster at 7/15/2007 7:30:27 PM
Is it possible to invoke a .net 2.0 dll (built using VS2005) from a .net 1.1
exe built using vs2003?
Thanks
... more >>
Adding Toolbar or Menu to Word embedded in WinForms via DSOFramer
Posted by Brian at 7/13/2007 7:15:53 PM
Hi!
We have a smart-client WinForms app that uses DSOFramer to embed MS Word as
a panel of our app.
We want to create a few commands that are specific to our app that act on
the Word document. The two most logical approaches for that are:
(1) Add a menu to the menubar for all our commands... more >>
DDE / DdeQueryNextServer
Posted by manfred_kiener NO[at]SPAM web.de at 7/12/2007 11:59:48 PM
Hello,
I have to make a DDE-Connection from dot.net (as a Client).
The DDE-Implementation from Brian Gideon (http://www.ozemail.com.au/
~markhurd/vbnetdde.zip)
works, but I still need a function to list all avaiable DDE-
applications.
I found this example in C:
http://msdn2.microsoft.com/... more >>
Marshal.PtrToStringAnsi() Memory Leak?
Posted by sabys NO[at]SPAM hotmail.com at 7/12/2007 2:38:58 PM
I've been noticing a memory leak with the following sample code
snippet. Can someone please advise.
Have a C# Winforms app with the following code on a button-click
event.
private void button1_Click(object sender, System.EventArgs e)
{
IntPtr p1 = new IntPtr(-1);
string inputStr;
Allo... more >>
Marshalling a complext structure
Posted by Asif Khan at 7/10/2007 6:35:09 PM
Hi All,
I am working with clipboard. It stores data pointed to by using a void
pointer. I have a managed object of a complext structrue containing native
data (e.g. int, long) as well as objects of my own class and arrays of
objects, pointers to objects etc. How to marshal that structure to... more >>
Problems creating DCOM server in C#; urgent...
Posted by czapkofan NO[at]SPAM gmail.com at 7/10/2007 2:52:24 PM
Hello,
I need to create a DCOM server in C# with a friend, to be accessible
for a client application with embedded VBS. We started with a "Hello
world" article at
http://blogs.msdn.com/adioltean/archive/2004/06/18/159479.aspx
but, unfortunately, it seems to work only partially for us, even ... more >>
C# 2 fixed sized buffers and interop
Posted by at 7/10/2007 4:47:26 AM
I've just started looking into fixed sized buffers in C# 2, and I
think I must be missing something. I have no problems when not dealing
with interop, but as soon as I start using interop things go wrong.
I thought I'd try GetTimeZoneInformation as a starting point, partly
as I know I can get ... more >>
Marshal.QueryInterface returning E_NOINTERFACE
Posted by Heath Kelly at 7/9/2007 10:12:07 AM
I use the ReadClassStg API call to find out what application owns a given
storage. In my test case it is Word.
//4) Determine the CLSID of the COM object that owns the IStorage.
Guid clsid = new Guid();
ReadClassStg(storage, ref clsid);
I then create a instance of Word as follows:
//5)... more >>
RegFree COM ClickOnce an PublicNotCreateable VB6 Class
Posted by Willy Van den Driessche at 7/9/2007 1:23:36 AM
Hello,
I found a post in January 2006 by "Scott" titled "Reg-free COM problem".
He describes that RegFree COM doesn't work for a component written in VB6
that uses publicNotCreateable classes.
I have exactly the same problem :
I have created a VB6 testproject with a global multiuse class ... more >>
Calling VB.NET DLL from VC++
Posted by Bhanu Prakash at 7/5/2007 5:11:24 AM
Hi,
I am trying to call VB.NET DLL from withing the VC++ project. It is failing.
Pls let me know how I can do it.
Thanks
Bhanu
... more >>
I can not compile my first C# Interop program without Visual Stud
Posted by Peter at 7/3/2007 7:24:01 AM
Hi folks,
I can not compile my first C# Interop program without Visual Studio:
step 1: I downloaded tha PIA, and verified the assemblies in GAC in my
machine.
step 2: I created a simple C# console program with one line like
using Microsoft.Office.Interop.Excel;
ste... more >>
COM Interop
Posted by kris at 7/2/2007 4:12:14 PM
Hi ,
I am trying to reference a COM dll ( x.dll) from my C# code.
I have to do this programatically at runtime and access its functions.
( Not through Project-->Add Reference->COM-------etc that we do through
visual studio).
Can anyone help me , how i can do this.
Regards
Kris
... more >>
.NET remoting and COM strange behavior
Posted by zabutimaxim NO[at]SPAM gmail.com at 7/2/2007 5:49:18 AM
Hi,
I have following strange problem. I run remote object using .NET
remoting.
This remoting object creates some COM object (STA) and executes some
methods.
The strange behavior is that if I print GetCurrentThreadId inside
remote object I see
that each call run in different thread id, but p... more >>
Using .NET COM object in VBA fails
Posted by tstefany NO[at]SPAM gmx.de at 7/2/2007 1:09:33 AM
I have a problem using .NET assemblies by their COM interface from
VBA. Everything works well on my machine, but on a different PC I
allways get the error message: "Automation error. The system cannot
find the file specified."
Creating the .NET component in VBA fails when it has been built with... more >>
VB6 update procedure with vb.Net
Posted by Paul Lance at 7/1/2007 10:16:01 PM
OK My vb.net (.Net 2.0) code crashes when I update a vb6 dll.
I’m using interop com to communicate to the vb6 dll.
So to start with all is well as in the .Net app is working just fine with
the vb6 dll. But then I update the vb6 dll and the my app crashes.
Update method.
First I regsvr32... more >>
WebBrowser control in .Net 3. Is it possible???
Posted by Levan Jgarkava at 7/1/2007 1:25:51 AM
Hi Everybody!
I just installed .Net 3 Framework on my computer and created new Windows
Application (WPF) in visual studio 2005 sp1. Then tried to find WebBrowser
control in Toolbox but couldn't locate it. I tried to add manually
shdocvw.dll and tried other ways but I just can't find a way t... more >>
|