• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

Dosyalarda yaşanan genel problemler nasıl çözülür

Katılım
11 Ocak 2008
Mesajlar
1,395
Excel Vers. ve Dili
Office 365 (Türkçe)
Malum 32 ve 64 bitlik sürümler dosyalarda problemler çıkarabilmektedir. Genelde bu kodda problem çıkarıyor. Bahsi geçen satırlar kırmızı oluyor.
Kod:
Public Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long

Public Declare Function GetClipboardData Lib "user32" (ByVal wFormat As Integer) As Long

Public Declare Function CloseClipboard Lib "user32" () As Long

Public Declare Function OleCreatePictureIndirect Lib "olepro32.dll" _
(PicDesc As uPicDesc, RefIID As GUID, ByVal fPictureOwnsHandle As Long, _
IPic As IPicture) As Long
 

Ekli dosyalar

. . .

Kod:
'''
#If VBA7 And Win64 Then
    Public Declare PtrSafe Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
#Else
    Public Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
#End If

'''
#If VBA7 And Win64 Then
    Public Declare PtrSafe Function GetClipboardData Lib "user32" (ByVal wFormat As Integer) As Long
#Else
    Public Declare Function GetClipboardData Lib "user32" (ByVal wFormat As Integer) As Long
#End If

'''
#If VBA7 And Win64 Then
    Public Declare PtrSafe Function CloseClipboard Lib "user32" () As Long
#Else
    Public Declare Function CloseClipboard Lib "user32" () As Long
#End If

'''
#If VBA7 And Win64 Then
    Public Declare PtrSafe Function OleCreatePictureIndirect Lib "olepro32.dll" _
    (PicDesc As uPicDesc, RefIID As GUID, ByVal fPictureOwnsHandle As Long, _
    IPic As IPicture) As Long
#Else
    Public Declare Function OleCreatePictureIndirect Lib "olepro32.dll" _
    (PicDesc As uPicDesc, RefIID As GUID, ByVal fPictureOwnsHandle As Long, _
    IPic As IPicture) As Long
#End If
'''

. . .
 
hata verdi.
 

Ekli dosyalar

  • hata2.jpg
    hata2.jpg
    20.2 KB · Görüntüleme: 1
Geri
Üst