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 / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

API declaration in C# to be converted into VB.NET - HELP !!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ahmed Jewahar - 06 Apr 2005 10:19 GMT
Dear All,

Below code I found in a post which bit older. I really appreciate if any
of you could help me out to convert into VB.NET.

Declare the API function.
---------------------------

[System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]
private static extern bool BitBlt(
    IntPtr hdcDest,
    int nXDest,
    int nYDest,
    int nWidth,
    int nHeight,
    IntPtr hdcSrc,
    int nXSrc,
    int nYSrc,
    System.Int32 dwRop)
Herfried K. Wagner [MVP] - 06 Apr 2005 11:08 GMT
"Ahmed Jewahar" <ahmed.jewahar@dhl.com> schrieb:
> Below code I found in a post which bit older. I really appreciate if any
> of you could help me out to convert into VB.NET.
[quoted text clipped - 4 lines]
> [System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]
> private static extern bool BitBlt(

\\\
Private Declare Function BitBlt Lib "Gdi32.dll" ( _
   ByVal hdcDest As IntPtr, _
   ByVal nXDest As Int32, _
   ByVal nYDest As Int32, _
   ByVal nWidth As Int32, _
   ByVal nHeight As Int32, _
   ByVal hdcSrc As IntPtr, _
   ByVal nXSrc As Int32, _
   ByVal nYSrc As Int32, _
   ByVal dwRop As Int32, _
) As Boolean
///

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

Paul - 06 Apr 2005 23:35 GMT
http://www.pinvoke.net/

> Dear All,
>
[quoted text clipped - 17 lines]
>
> *** Sent via Developersdex http://www.developersdex.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.