Re: Newbie Question
- From: "Ignacio Machin \( .NET/ C# MVP \)" <ignacio.machin AT dot.state.fl.us>
- Date: Fri, 14 Oct 2005 08:16:13 -0400
no it's not
It may be a problem but the compiler error clearly stated that he tried to
declare a method where only a class, delegate, enum, interface, or struct is
accepted.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Mark R. Dawson" <MarkRDawson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7D63C04D-C17F-4ABB-A4AA-AF7102B5DD26@xxxxxxxxxxxxxxxx
> Hi Shmuel,
> do you have the type CHARFORMAT2 defined in you code or in a linked DLL,
> if not this might be the source of your problem.
>
> "S Shulman" wrote:
>
>> I added the following declaration withing a namespace but not within a
>> class
>>
>>
>> [DllImport("user32.dll", EntryPoint="SendMessage",
>> CharSet=CharSet.Auto )]
>>
>> public static extern int SendCharFmtMsg( IntPtr hWnd, int Msg, int
>> wParam,
>>
>> ref CHARFORMAT2 cf2 );
>>
>> And UI get the following compiler error
>> C:\Componenets\ABC\ABCColor\Class1.cs(11): Expected class, delegate,
>> enum,
>> interface, or struct
>>
>>
>> Thank you,
>> Shmuel Shulman
>>
>>
>>
>>
>>
.
- References:
- Newbie Question
- From: S Shulman
- Newbie Question
- Prev by Date: Re: Error...
- Next by Date: Re: Question about files
- Previous by thread: Re: Newbie Question
- Next by thread: Re: Question about files
- Index(es):
Relevant Pages
|