More Group Sites
Education Books
School Rankings
Jobless Net
Better Home
Enviro++
更好教育论坛
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post Go to first unread
hong  
#1 Posted : Friday, November 6, 2009 1:03:10 PM(UTC)
hong

Rank: Administration

Reputation:

Groups: AcademicCoachingSchool, admin, Administration, BookSeller, CatholicSchool, CoachingAdult, CoachingProfessional, CoachingSports, ExtraCurriculumCoaching, IndependentSchool, Moderator, MusicTeacher, PrivateSchool, PublicSchool, SelectiveSchool, tutor
Joined: 11/23/2008(UTC)
Posts: 522

Can I specify multiple static entry points from the same or different unmanaged DLLs?

Yes. Just use multiple 'DllImport' attributes. For example,
Code:
        [DllImport("decrypt.dll", EntryPoint = "_GetSerialRegData"/*, ExactSpelling = false*/, SetLastError=true)]
        static extern void GetSerialRegData(...);
        [DllImport("decrypt.dll", EntryPoint = "_GetActivationCode"/*, ExactSpelling = false*/, SetLastError = true)]
        static extern void GetActivationCode(...);

Refer to Duplicate 'DllImport' attribute.

Edited by user Friday, November 6, 2009 1:05:34 PM(UTC)  | Reason: Not specified

Sponsor
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.