Results 1 to 3 of 3

Thread: Er....API calls replacement

  1. #1
    Jethro
    Guest

    Question Er....API calls replacement

    With exactly what, am still trying to work out where ther have hidden this little gem. The MS contact claims it's there but even he can't pin point it

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    same way pretty much with some notes.

    If you would use Long for a parameter or return value of the call, it must be changed to integer

    The ByVal's and ByRefs are required.

    You can specify whehter to return Ansi or Unicode..most generally you will use Ansi

    Public Declare Ansi Function BitBlt .......

    Passing structure/types is differnt now and I really dont have the knowledge to go in depth about it..may need to look it up.

    I heared ther are some .NET security permissions required since using API's makes it unmanaged code.

    Just make sure that if you need to use an API, that there is not a .NET namespace available for the operation. Things like BitBlt should be obsolete with .NET and you shouldnt need them.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Jethro
    Guest
    Thanks Cander, will look into it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width