MITH
06-20-2016, 12:09 PM
Hello guys, :)
I want use the ImageSearchDLL which searches for image on screen. I lack expertise in VC++ but still managed to re-compile this DLL for x64 with Visual C++ 2010 as it was not working on my Windows 8 x64 system. Now the problem I face is the whenever I try to use the export from DLL in Excel VBA it results in application crash. I am using x64 version of Microsoft Office. Could you please help figure out the problem.:help.
Public Declare PtrSafe Function ImageSearch Lib _
"C:\ImageSearchDLL\Debug\ImageSearchDLL.dll" _
(ByVal x1 As Integer, ByVal y1 As Integer, ByVal right As Integer, ByVal bottom As Integer, ByVal findImage As String) As String
Sub test()
Dim result As Long
result = ImageSearch(0, 0, 600, 600, "C:\img.bmp")
Debug.Print result
End Sub
I want use the ImageSearchDLL which searches for image on screen. I lack expertise in VC++ but still managed to re-compile this DLL for x64 with Visual C++ 2010 as it was not working on my Windows 8 x64 system. Now the problem I face is the whenever I try to use the export from DLL in Excel VBA it results in application crash. I am using x64 version of Microsoft Office. Could you please help figure out the problem.:help.
Public Declare PtrSafe Function ImageSearch Lib _
"C:\ImageSearchDLL\Debug\ImageSearchDLL.dll" _
(ByVal x1 As Integer, ByVal y1 As Integer, ByVal right As Integer, ByVal bottom As Integer, ByVal findImage As String) As String
Sub test()
Dim result As Long
result = ImageSearch(0, 0, 600, 600, "C:\img.bmp")
Debug.Print result
End Sub