R
roidy
I`m importing a function from a dll using the following code:-
Declare Function MP4Read Lib "e:\libmp4v2.dll" (ByVal filename As String,
ByVal verbosity As UInteger) As UIntPtr
filehandle = MP4Read("test.mp4", 0)
This works perfectly in WinXP but when I move my project over to Windows 7
RC to test it I keep getting the following exception:-
DllNotFoundException was unhandled
Unable to load DLL 'e:\libmp4v2.dll': The application has failed to start
because its side-by-side configuration is incorrect. Please see the
application event log or use the command-line sxstrace.exe tool for more
detail. (Exception from HRESULT: 0x800736B1)
Now if I place the dll file in the same folder as the exacutable and use:-
Declare Function MP4Read Lib "libmp4v2.dll" (ByVal filename As String, ByVal
verbosity As UInteger) As UIntPtr
Then I get the following exception:-
DllNotFoundException was unhandled
Unable to load DLL 'libmp4v2.dll': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
It`s driving me crazy, both versions work fine in WinXp but not in Windows 7
RC.
Help please
Rob
Declare Function MP4Read Lib "e:\libmp4v2.dll" (ByVal filename As String,
ByVal verbosity As UInteger) As UIntPtr
filehandle = MP4Read("test.mp4", 0)
This works perfectly in WinXP but when I move my project over to Windows 7
RC to test it I keep getting the following exception:-
DllNotFoundException was unhandled
Unable to load DLL 'e:\libmp4v2.dll': The application has failed to start
because its side-by-side configuration is incorrect. Please see the
application event log or use the command-line sxstrace.exe tool for more
detail. (Exception from HRESULT: 0x800736B1)
Now if I place the dll file in the same folder as the exacutable and use:-
Declare Function MP4Read Lib "libmp4v2.dll" (ByVal filename As String, ByVal
verbosity As UInteger) As UIntPtr
Then I get the following exception:-
DllNotFoundException was unhandled
Unable to load DLL 'libmp4v2.dll': The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
It`s driving me crazy, both versions work fine in WinXp but not in Windows 7
RC.
Help please
Rob