Loading ...
Sorry, an error occurred while loading the content.

3545Re: [libertybasic] Help with dll call

Expand Messages
  • Cor Massar
    Mar 1, 2002
      It works when you use the Alias name.


      neilrichardcorcoran wrote:

      > 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:
      > http://www.vbapi.com/ref/funcc.html#registry
      > To unsubscribe from this group, send an email to:
      > libertybasic-unsubscribe@egroups.com
      > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    • Show all 6 messages in this topic