Re: [Harbour] Different Behavior of BCC and Mingw

2009-05-31 Thread Sudip Bhattacharyya
Hello Pritpal, Xavi, Thanks a lot! :-) wvt_getopenfilename() and wvt_getsavefilename() runs fine. And I prefer to use them rather than low level c functions :-) My academic query is also satisfied. With best regards. Sudip -- View this message in context: http://www.nabble.com/Different-Beh

Re: [Harbour] Different Behavior of BCC and Mingw

2009-05-31 Thread Sudip Bhattacharyya
Sorry Pritpal, I just skipped your message. Thanks a lot for your mail. Regards. Sudip Pritpal Bedi wrote: > > Hello Sudip > > > Sudip Bhattacharyya wrote: >> >> I use following code for Common Dialog boxes. When I call the functon >> CSaveFile() or COpenFile() compiled with BCC, it give

Re: [Harbour] Different Behavior of BCC and Mingw

2009-05-31 Thread Sudip Bhattacharyya
Hello Pritpal and Xavi, I didn't want to re-invent the wheel :) Actually, I didn't know those functions. Thanks a lot for this help. Again for curiosity, do you have any idea about the differences between BCC and Mingw? This is purely for academic interest only :) Regards. Sudip Pritpal Bedi

Re: [Harbour] Different Behavior of BCC and Mingw

2009-05-31 Thread Pritpal Bedi
Hello Sudip Sudip Bhattacharyya wrote: > > I use following code for Common Dialog boxes. When I call the functon > CSaveFile() or COpenFile() compiled with BCC, it gives run-time system > error, but runs fine when compiled with Mingw compiler. > Why to reinvent the wheel. If it is GTWVG then

Re: [Harbour] Different Behavior of BCC and Mingw

2009-05-31 Thread Xavi
Sudip, Change .- #pragma BEGINDUMP #include "windows.h" #include "hbapi.h" HB_FUNC( CSAVEFILE ) { OPENFILENAME ofn; char File[ MAX_PATH ] = ""; char Filter[ MAX_PATH ] = ""; if ( ISCHAR( 1 ) ) lstrcpy( File, hb_parc( 1 ) ); if ( ISCHAR( 2 ) ) lstrcpy( Filt

Re: [Harbour] Different Behavior of BCC and Mingw

2009-05-31 Thread Sudip Bhattacharyya
Hello Xavi, Thanks for the "joke". I am not a very experienced user. I don't know how to use the open or save file common dialog box. So, I wrote 2 C functions from the code I received from xHarvour forum. My xHarbour+gtwvw program runs OK. Now, I am in a process to transfer xHarbour+gtwvw cod

Re: [Harbour] Different Behavior of BCC and Mingw

2009-05-31 Thread Xavi
Sudip, What ?...@#... is this? :) ofn.lStructSize = 76; In BCC and in MinGW !!! .- OPENFILENAME ofn; ZeroMemory(&ofn, sizeof(OPENFILENAME)); ofn.lStructSize = sizeof(OPENFILENAME); Sorry, it's a joke, remember that C don't initialize anything eg nil. -- Xavi Sudip Bhattacharyya escri

[Harbour] Different Behavior of BCC and Mingw

2009-05-30 Thread Sudip Bhattacharyya
Hi All, I use following code for Common Dialog boxes. When I call the functon CSaveFile() or COpenFile() compiled with BCC, it gives error, but runs fine when compiled with Mingw compiler. #pragma BEGINDUMP #include "windows.h" #include "hbapi.h" HB_FUNC( CSAVEFILE ) { OPENFILENAME ofn;