3545Re: [libertybasic] Help with dll call
- Mar 1, 2002It works when you use the Alias name.
> I'm trying to put together a program that uses the registry. I've
> tried to convert the VB syntax into LB but I keep getting a 'Dynamic
> Link Library Call Error'. Any suggestions on what I did wrong.
> The original Visual Basic syntax:
> Declare Function RegOpenKeyEx Lib "advapi32.dll"
> Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String,
> ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long)
> As Long
> My Liberty Basic translation:
> Open "Advapi32" for dll as #Advapi32
> CallDll #Advapi32, "RegOpenKeyEx",_
> hKey as Long,_
> lpSubKey$ as ptr,_
> uloptions as long,_
> samDesired as long,_
> phkResult As long,_
> result as long
> For more documentation:
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
- << Previous post in topic Next post in topic >>