Re: API declare not allow
Is dll located in app.path? Did you save your project? If you didn't, App.Path equals VB's path.
Re: API declare not allow
Do it like this and as long as the DLL is with the EXE or in the Search Path you should be set!
Private Declare Sub Principal Lib "myfunction.dll" (ByVal value As String)
Re: API declare not allow
Correct me if im worng... but if you register the dll in windows, the path should not be needed
Re: API declare not allow
Not all DLL's can be registered, right?
But as long as it is in the Search Path, where the .EXE is, or as Gavio states in the IDE it would need to be with VB6.EXE.
Re: API declare not allow
Re: API declare not allow
Quote:
Originally Posted by tward_biteme1
Not all DLL's can be registered, right?
But as long as it is in the Search Path, where the .EXE is, or as Gavio states in the IDE it would need to be with VB6.EXE.
that is correct ;)
Re: API declare not allow
Place the dll in App.Path and try just,
VB Code:
Private Declare Sub Principal Lib "myfunction.dll" (ByVal value As String)
@Static, AFAIK, if the dll is a standard windows dll (not ActiveX dll), it doesn't (and can't be) need to be registered.
By default, Windows first searches App.Path for the dll. If it is not found in App.Path, then it searches the System dir. If it is missing in system dir too, then Windows displayes the Dll not found error message.