We help IT Professionals succeed at work.

Upgrading from Office 2013 to Windows 10: API call to 'kernel32'

Frans_Truyens
on
188 Views
Last Modified: 2017-03-21
I want to upgrade an existing Office 2013 32 bit application to Windows 10. But the library 'kernel32' does not exist anymore. How do I upgrade this?


Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" _
        (ByVal lpApplicationName As String, ByVal lpKeyName As Any, _
        ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, _
        ByVal lpFileName As String) As Long
Comment
Watch Question

CERTIFIED EXPERT

Commented:
Can't check here. Imho it should be still there but the API is stone age. Its used to read from an INI file.
I'd change the stuff to store/retrieve the settings from the Windows registry.

i.e. http://vba-corner.livejournal.com/3054.html

Author

Commented:
I have to upgrade. So I can't change the code to something else. Does there exist an alternative for kernel32?
CERTIFIED EXPERT

Commented:
If you can't change the code you're stuck.
Still wonder why this happens .. any chance you're trying to run this under a 64 bit version of Office?
What is it? Access, Excel?
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Thanks. I will try that tomorrow morning.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions