Forum Discussion

madhavisri01's avatar
madhavisri01
Contributor
14 years ago

Windows Function

How to use GetPrivateProfileString(Kernel32) in Test Complete.Please guide.



Thanks,

Madhavisri

3 Replies

  • Hi,



    You can find information on calling functions from DLLs in the "Calling Functions From DLLs" help topic.
  • Hello Jared,



    I have tried using the DLL.Load but it is not working.I am trying to use getprivateprofilestring(reads ini file)  function from kernel 32.I am not sure how to pass parameters to this function.Could you please help me with the code.



    Thanks,

    Madhavisri
  • Hi,



    Before trying to call a function, you need to define it in your script first. There's a step-by-step instruction along with code samples in the "How to Call a DLL Routine From Your Script" help topic.