cGetFile function different version

Post Reply
User avatar
richard-service
Posts: 868
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

cGetFile function different version

Post by richard-service »

Dear Antonio,

I use this code within Old FWH version and New FWH version
I found New FWH version File Name show Empty. Look Left side.
Old FWH version can show it and no problem.

LOCAL cFile := "HpSA"+ALLTRIM(pcSysDate)+'_'+SUBS(pcSysDate,1,5)+'.csv'
LOCAL cINJDAT := ""


Code: Select all | Expand

       cINJDAT = cGetFile( cFile, "選擇存入目錄" )

This Old FWH version and Working.
Image

This New FWH version and not show File name.
Image

Best Regards,

Richard

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit
MySQL v8.0
Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: cGetFile function different version

Post by Antonio Linares »

Dear Richard,

It is a side effect bug due to the recent unicode support modifications.

Please modify this in source/winapi/getfile.c

Please replace this:
pFile = fw_parWideLen( 8, wLen * 2 ); //512 );

with this:
pFile = fw_parWideLen( IF( hb_pcount() > 7 && HB_ISCHAR( 8 ), 8, 1 ), wLen * 2 );

bug detected and solved by Antigravity :wink:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply