Re: DllImport
- From: "Simon Hart" <srhartone[no spam]@yahoo.com>
- Date: Mon, 8 May 2006 10:23:28 +0100
How does it make it harder to reuse, change and read?
Sometimes you want to use the entrypoint clause as you might want to name
the method something more meaningful to your application. Or you might want
to make it more unstandable as some old legacy unmanaged API calls are not
very intutive.
I think the final square bracket is a typo.
Simon.
"Gorm Braarvig" <gorm_b@xxxxxxxxxxx> wrote in message
news:%23gR8Z05bGHA.4716@xxxxxxxxxxxxxxxxxxxxxxx
D could have been possible, but C is definitely the better answer since
it tells the compiler which function to use as entry point. Also, it is
more useful if you want to rename the function.
I disagree, since it makes the code harder to maintain.
In my exp saying the same thing twice makes the code harder to reuse,
change and read.
BTW. What is the function of the last closing bracket?
<snippety>
[DllImport("user32.dll")]
public static extern string CallMe (string Name, string
Address, string Phone)];
</snipp>
.
- Follow-Ups:
- Re: DllImport
- From: Gorm Braarvig
- Re: DllImport
- References:
- DllImport
- From: Marek
- Re: DllImport
- From: Marek
- Re: DllImport
- From: Cerebrus
- Re: DllImport
- From: Marek
- Re: DllImport
- From: Simon Hart
- Re: DllImport
- From: Marek
- Re: DllImport
- From: Cerebrus
- Re: DllImport
- From: Gorm Braarvig
- DllImport
- Prev by Date: Re: MCAD core courses
- Next by Date: Re: 70-290 Exam Preparation
- Previous by thread: Re: DllImport
- Next by thread: Re: DllImport
- Index(es):
Relevant Pages
|