Cristobal,
OleDefaultArg() is to OLE quite similar to what NIL is to Harbour ![]()
Cristobal,
OleDefaultArg() is to OLE quite similar to what NIL is to Harbour ![]()
And the function picks the right type of parameter?
I get it, so no need to take into account all the parameters of filling functions, no?
Y la funcion recoge el tipo de parámetro adecuado?
Ya entiendo, asi no hay que tener en cuenta rellenar todos los parámetros de las funciones, no?
Cristobal,
I have never needed it but I guess so.
Enrico has been using it for long time so surely he may be able to complete my description ![]()
Antonio Linares wrote:Cristobal,
I have never needed it but I guess so.
Enrico has been using it for long time so surely he may be able to complete my description
oSel:InsertFile( cTmp, OLEDEFAULTARG(), .F. )
oExcel:WorkBooks:Open( cXls, , , OLEDEFAULTARG(), , , , OLEDEFAULTARG(), , , .T., , .T. )Antonio Linares wrote:Cristobal,
I have never needed it but I guess so.
Enrico has been using it for long time so surely he may be able to complete my description
Thanks Enrico, Rao
Anyway the entire discussion started with using C Struct of xHarbour. May be, xHarbour's implementation has some issues.
But FWH also implements C Structures for its own use.
Please refer to struct.ch and tstruct.prg and examples in samples folder.
Using the STRUCT command for C structures for interfacing with Windows API has been working well for FWH.
My be one can use FWH's built in C Struct, instead of xHarbour's C Struct
nageswaragunupudi wrote:Anyway the entire discussion started with using C Struct of xHarbour. May be, xHarbour's implementation has some issues.
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( GETVERSION ) // --> anVersions
{
OSVERSIONINFO vi;
vi.dwOSVersionInfoSize = sizeof( OSVERSIONINFO );
GetVersionEx( &vi );
hb_reta( 5 );
hb_storvnl( ( long ) vi.dwMajorVersion, -1, 1 );
hb_storvnl( ( long ) vi.dwMinorVersion, -1, 2 );
hb_storvnl( ( long ) vi.dwBuildNumber, -1, 3 );
hb_storvnl( ( long ) vi.dwPlatformId, -1, 4 );
hb_storvc( ( char * ) vi.szCSDVersion, -1, 5 );
}
#pragma ENDDUMP