标题:无法在 DLL“gdi32”中找到名为“Bitblt”的入口点。(求指点)
取消只看楼主
floor1234
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2011-4-2
结帖率:0
 问题点数:0 回复次数:0 
无法在 DLL“gdi32”中找到名为“Bitblt”的入口点。(求指点)
Public Class Form1
    Const NOTSRCCOPY = &H33008
    Const NOTSRCERASE = &H1100A6
    Private Const SRCAND = &H8800C6
    Const SRCCOPY = &HCC0020
    Private Const SRCERASE = &H440328
    Private Const SRECINVERT = &HEE0086
    Private Declare Sub sleep Lib "kernel32" (ByVal dwmilliseconds As Long)
    'API函数初始化
    Private Declare Function Bitblt Lib "gdi32" (ByVal hDestDC As IntPtr, ByVal x As Integer, ByVal y As Integer, _
                                                 ByVal nwidth As Integer, ByVal nheight As Integer, ByVal hSrcDC As IntPtr, ByVal xSrc As Integer, _
                                                 ByVal ySrc As Integer, ByVal dwPop As Integer) As Integer
    Dim k, i, j, w, h As Integer

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim hdc2 As IntPtr
        Dim hdc1 As IntPtr
        hdc2 = Me.PictureBox2.CreateGraphics.GetHdc
        hdc1 = Me.PictureBox1.CreateGraphics.GetHdc
        w = Me.PictureBox1.Size.Width
        h = Me.PictureBox1.Size.Height
        For i = 0 To w Step 1
            Call Bitblt(hdc2, 0, 0, i, h, hdc1, w - i, 0, SRCCOPY)
            sleep(10)
        Next
    End Sub
End Class
该程序为将picturebox1中的图像分批复制到picturebox2中,实现图像飞入效果,可程序执行到Call Bitblt(hdc2, 0, 0, i, h, hdc1, w - i, 0, SRCCOPY)
出现《无法在 DLL“gdi32”中找到名为“Bitblt”的入口点》错误,求指点!!!!!
搜索更多相关主题的帖子: sleep 
2011-04-04 19:52



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-335627-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.364791 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved