Link to home
Start Free TrialLog in
Avatar of 1469
1469

asked on

creating a dll

Hello,

I´m creating a dll in vb to use after in vba. When in VBA I use Private Declare Function name Lib "xx" () as string

It tells me when I call to that function that it doesn´t found the dll.

I have read in some articles made by Ron Petrusha that you can´t do this, that you must change the link.exe and create after a .def file.

I know that I would use the dll importing in references the dll and calling this function. But I don´t want to do this.


Has anyone change the link.exe file ?¿?
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1469
1469

ASKER

Yes but the problem here it´s that I have to registry if I have in a pc the dll in one path and the other in other path ¿?¿? I guess that is easier to have a common dll than this stuff