[問題] 請問dll與win32 console application的問題
Dear all:
請問各位高手,小弟寫了一個read csv的程式,
原本是在win32 console application下執行ok後,
const int MAX=80;
char buffer[MAX];
double aa;
double bb=186.0;
unsigned short i=0;
unsigned short result=0;
//=====
ifstream infile("C1.csv");
while(infile){
i++;
// read data from CSV
infile.getline(buffer,MAX);
aa=atof(buffer);
if(bb==aa)
{
result=i;
break;
}
}
我把相同的程式碼(如上)放到dll project裡,結果我的dll
在執行 read csv那段程式有問題,其他的有執行也正常呀...
請問我的dll需要做什麼設定嗎..?
tks..
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.137.148.1
→
08/11 16:19, , 1F
08/11 16:19, 1F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章