A
AirSupply
Unregistered / Unconfirmed
GUEST, unregistred user!
本来很简单的,但就是在BC45下调不过!在Delphi下用同样的API函数
倒可以,但我必须要用C,谁能帮我看看是咋回事?非常感谢!!
//a.ini
[section1]
key1=accca1
key2=accca2
key3=accca3
...
//C code
//修改于bc45/examples/owl/owlapps/hello/helloapp.cpp
#include <owl/owlpch.h>
#include <owl/applicat.h>
int
OwlMain(int /*argc*/, char* /*argv*/ [])
{
char temp[1024];
GetPrivateProfileString("section1", "key1", "Eror! This is a
default string..",temp, sizeof(temp), "a.ini");
return TApplication(temp).Run();
}
读出来的总是缺省值,为什么?
倒可以,但我必须要用C,谁能帮我看看是咋回事?非常感谢!!
//a.ini
[section1]
key1=accca1
key2=accca2
key3=accca3
...
//C code
//修改于bc45/examples/owl/owlapps/hello/helloapp.cpp
#include <owl/owlpch.h>
#include <owl/applicat.h>
int
OwlMain(int /*argc*/, char* /*argv*/ [])
{
char temp[1024];
GetPrivateProfileString("section1", "key1", "Eror! This is a
default string..",temp, sizeof(temp), "a.ini");
return TApplication(temp).Run();
}
读出来的总是缺省值,为什么?