Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Visual J# / January 2004

Tip: Looking for answers? Try searching our database.

DLL Import, please help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MS Public - 20 Jan 2004 14:01 GMT
Hi,

I am getting an error telling me that the 'int' expected an identifier, what
should my statement look like. This is a class member

[DllImport("Gdi32.dll", EntryPoint= "CombineRgn", SetLastError=true,
CharSet=CharSet.Auto)]

static extern int CombineRegion(IntPtr dst, IntPtr src1, IntPtr src2,
CombineRegionOptions options);
MS Public - 20 Jan 2004 15:57 GMT
I Think I found the answer to this one. This seems to do the trick

/** @attribute DllImport("Gdi32.dll", EntryPoint= "CombineRgn",
SetLastError=true, CharSet=CharSet.Auto)] */
public static native int CombineRegion(IntPtr dst, IntPtr src1, IntPtr
src2);

Regards

> Hi,
>
[quoted text clipped - 6 lines]
> static extern int CombineRegion(IntPtr dst, IntPtr src1, IntPtr src2,
> CombineRegionOptions options);
Lars-Inge T?nnessen - 20 Jan 2004 17:32 GMT
Yes,

C# = [...]

J#  = /** @attribute ... */

Signature

Regards,
Lars-Inge Tonnessen
http://emailme.larsinge.com
http://www.larsinge.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.