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
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
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
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
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
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
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
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;