I have been asked to try and get my access database to "speak" with an external third party application, ProjectWise.
This involves using a dll, that comes with projectwise, dmactrl.dll.
However its not one I can simply register as a reference and use, but I can use with the following syntax:
My problem is the following: When I try to use(run) the aaApi_MessageBo x function i get an error:
If I try to the dll as a reference by Tools->References and browse for it, i get the error (When adding ref):
The odd part is that if I run my code now, it will work without the previously mentioned error 53.
I have no experience working with external dlls, and I really have no idea why one is working and why one isn't, and even worse, I have no idea how to be able to fix it into a version I can actually present to the client, I.E. a solution that does not involve having to try and fail to register the dll each time.
Can anyone shed some light on the behavior explained, and hopefully on how to proceed from here?
This involves using a dll, that comes with projectwise, dmactrl.dll.
However its not one I can simply register as a reference and use, but I can use with the following syntax:
Code:
Public Declare Function aaApi_MessageBox _
Lib "dmactrl.dll" ( _
ByVal strText As String, _
ByVal lPRojectID As Long) _
As Long
Run Time Error 53
File Not Found: dmactrl.dll
File Not Found: dmactrl.dll
Can't add a reference to the specified file
I have no experience working with external dlls, and I really have no idea why one is working and why one isn't, and even worse, I have no idea how to be able to fix it into a version I can actually present to the client, I.E. a solution that does not involve having to try and fail to register the dll each time.
Can anyone shed some light on the behavior explained, and hopefully on how to proceed from here?
Comment