473,473 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

[local] method

Hi,

I am defining a COM interface in C#. The interface has the following method:
[local] HRESULT CopyContentToFileEx(
[in] PFIO_CONTEXT pFIOCopy,
[in] BOOL fDotStuffed,[in,unique] IMailMsgNotify *pNotify);

MSDN says: This method is marked with the [local] IDL attribute. This means
no proxy/stub code is generated for the header file, and the method can only
be called on an interface in the same apartment (i.e. no marshalling can
occur).

My question is, how do I mark this method as [local] in C#?

Thanks
Dec 21 '06 #1
2 1435
Hi Chris i'm by no way advanced at C# as many regular in the forum will
know but I have googled your problem - and it would appear that this
may help you, as there is no local IDL attribute in C#

http://msdn.microsoft.com/library/de...opassembly.asp

HTH

Gary-

Chris Carter wrote:
Hi,

I am defining a COM interface in C#. The interface has the following method:
[local] HRESULT CopyContentToFileEx(
[in] PFIO_CONTEXT pFIOCopy,
[in] BOOL fDotStuffed,[in,unique] IMailMsgNotify *pNotify);

MSDN says: This method is marked with the [local] IDL attribute. This means
no proxy/stub code is generated for the header file, and the method can only
be called on an interface in the same apartment (i.e. no marshalling can
occur).

My question is, how do I mark this method as [local] in C#?

Thanks
Dec 21 '06 #2
Chris,
>My question is, how do I mark this method as [local] in C#?
You can't and don't have to. Since this is a predefined system
interface you shouldn't include it in a typelib of your own anyway (be
sure to mark it as ComImport).
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Dec 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steffen | last post by:
Hi! I'm trying to access a EntityBean from a servlet via the bean's local home interface. The EJB and the Servlet are together in one .ear file and I'm using JBoss 3.2.3. I think the...
3
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore...
9
by: cppaddict | last post by:
I have a method that uses a fairly large object. The choice is between having a local object in the method or a static member object that the method uses. ------CHOICE 1--------- int...
2
by: Hazzard | last post by:
I have a method which takes a Token object as an argument in GetPassword below. Token.cs is a custom class in another assembly/namespace. Do I need to add a reference to the assembly containing...
5
by: Michal Kwiatkowski | last post by:
Hi! I'm building a class that most of methods have similar intro, something like this: def method(self): var_one = self.attr_one var_two = self.attr_two.another_attr empty_list =
3
by: enilno | last post by:
I'm working on a C# app., and I need to programmatically add a local user to a local group on the computer on which the app. is running. When end-users run this app., they will be logged on as...
7
bvdet
by: bvdet | last post by:
I provide shop drawings to structural steel fabricators with SDS/2 software (http://sds2.com) by Design Data (DD). I am not a programmer by education or trade and started writing scripts about 5...
11
by: cj | last post by:
Perhaps someone knows how to do this. When I open a new ASP.NET web service application in VS 2008, it opens with a simple Hello World web service already written. I want to see this work. ...
28
by: cpluslearn | last post by:
Hi, I have a local class inside a function template. I am able to wrap any type in my local class. Is it legal C++? What type of class is Local? Is it a class template or regular class? Thanks...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.