Link to home
Start Free TrialLog in
Avatar of Lachlan MacColl
Lachlan MacCollFlag for Australia

asked on

Problem with an old windows function.

I am having a problem with an old function I used to use about 20 years ago.
I am using Embarcadero RAD 8.3

I have added windows.h to my include list
AnsiString name;
GetPrivateProfileString(_T("Section 1"), _T("Key 1"), _T("") , name, 32, _T("C:\\test.ini"));

Open in new window

This is the error I am getting when I try to compile

[bcc32c Error] Unit2.cpp(53): no matching function for call to 'GetPrivateProfileStringW'

I find this most confusing.
ASKER CERTIFIED SOLUTION
Avatar of evilrix
evilrix
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 Lachlan MacColl

ASKER

Hey evilrex,

You were spot on the money with your answer TY for your help !.

MusicBuddha
No worries. Glad you got it resolved.