Search found 249 matches: enddump

Return to advanced search

C wrapper help

... 2 ); aProvider.nRegionCode = hb_parnl( 1, 3 ); aProvider.nMessageLength = hb_parnl( 1, 4 ); hb_retnl( SMSGETPROVIDER(&aProvider) ); } #pragma ENDDUMP Here is the .DEF contents if it helps. LIBRARY "CSTXTAV8.DLL" EXPORTS SmsInitializeA @1 SmsInitializeW @2 SmsUninitialize @3 SmsEnableTraceA ...
by Randal
Tue Oct 18, 2016 3:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: C wrapper help
Replies: 16
Views: 3233

Re: create a harbour dll containing functions to be executed

... 0 ); break; case DLL_PROCESS_DETACH: MessageBox( 0, "DLL unloaded", "DLL exit", 0 ); break; } return TRUE; } #pragma ENDDUMP //----------------------------------------------------------------------------//
by rkurian
Thu Sep 08, 2016 8:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create a harbour dll containing functions to be executed
Replies: 23
Views: 4285

Re: create a harbour dll containing functions to be executed

Romeo,

Please include the code that I posted here inside #pragma BEGINDUMP ... ENDDUMP

viewtopic.php?p=193644#p193644
by Antonio Linares
Wed Sep 07, 2016 2:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create a harbour dll containing functions to be executed
Replies: 23
Views: 4285

Re: FWH 16.03 32 BIT

Hakan,

Yes. Look for a C function defined in #pragma BEGINDUMP ... ENDDUMP section, and place the breakpoint there

Thats a way to do it
by Antonio Linares
Wed May 11, 2016 5:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 16.03 32 BIT
Replies: 118
Views: 25442

DLL32 type object...

... char szEPC[MF_MICR_CHAR_MAX]; char szTransitNumber[MF_MICR_CHAR_MAX]; long lCheckType; long lCountryCode; } MF_MICR; #pragma ENDDUMP Bueno...espero que alguien pueda ayudarme... Muchas Gracias...
by Tatoo
Tue Apr 12, 2016 7:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLL32 type object...
Replies: 1
Views: 505

Re: FWH 16.03 32 BIT

This may work:

#pragma BEGINDUMP

#include <Windows.h>

extern "C" {
FILE * _iob[] = { stdin, stdout, stderr };

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}
}

#pragma ENDDUMP
by Antonio Linares
Sun Apr 10, 2016 11:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 16.03 32 BIT
Replies: 118
Views: 25442

Re: FWH 16.03 32 BIT

This seems the right version:

#pragma BEGINDUMP

#include <Windows.h>

FILE * _iob[] = { stdin, stdout, stderr };

FILE * __iob_func( void )
{
return ( FILE * ) _iob;
}

#pragma ENDDUMP
by Antonio Linares
Sun Apr 10, 2016 11:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 16.03 32 BIT
Replies: 118
Views: 25442

Re: FWH 16.03 32 BIT

Hakan,

Please try to add this code to your main PRG:

#pragma BEGINDUMP

#include <Windows.h>

FILE * __iob_func( void )
{
return { * stdin, * stdout, * stderr };
}

#pragma ENDDUMP
by Antonio Linares
Sun Apr 10, 2016 10:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 16.03 32 BIT
Replies: 118
Views: 25442

Re: C-function in FWH

Mr. Rao, from Antonio above:
Using Borland we can not use C++ code in #pragma BEGINDUMP ... ENDDUMP as we compile in C mode
by byte-one
Sat Apr 09, 2016 1:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: C-function in FWH
Replies: 16
Views: 4604

Re: C-function in FWH

We need to use BEGINDUMP and ENDDUMP only in PRG files.

When we compile *.cpp any compiler automatically switches to c++ mode and there is no point using BEGINDUP,ENDDUMP inside a cpp or c file.

So I am not clear of what you are saying
by nageswaragunupudi
Sat Apr 09, 2016 11:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: C-function in FWH
Replies: 16
Views: 4604

Re: C-function in FWH

Using Borland we can not use C++ code in #pragma BEGINDUMP ... ENDDUMP as we compile in C mode Antonio, i only tested with FWH64 and Borland and #pragma BEGINDUMP ... ENDDUMP. It is functioning when i make with Harbour a file with extension "CPP". ...
by byte-one
Sat Apr 09, 2016 11:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: C-function in FWH
Replies: 16
Views: 4604

Re: C-function in FWH

Marc,

As such code uses C++ we need to create a .cpp file or use VSC2015 as we use C++ mode with it

Using Borland we can not use C++ code in #pragma BEGINDUMP ... ENDDUMP as we compile in C mode
by Antonio Linares
Sat Apr 09, 2016 9:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: C-function in FWH
Replies: 16
Views: 4604

Re: Experiences from convert to 64Bit BCC

I found, that for prgs the Harbour-compiler should not make c-files. Unstead the files has to be cpp!
Many errors if using #pragma begindump and #pragma enddump contains cpp-code are gone!
by byte-one
Thu Mar 31, 2016 4:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Experiences from convert to 64Bit BCC
Replies: 7
Views: 926

Re: Setting a title on a CONSOLE window.

yourprg.prg

... your code ... // SetConsoleTitle( "test" )

#pragma BEGINDUMP

#include <windows.h>
#include <hbapi.h>

HB_FUNC( SETCONSOLETITLE )
{
   hb_retl( SetConsoleTitle( ( char * ) hb_parc( 1 ) ) );
}

#pragma ENDDUMP
by Antonio Linares
Wed Mar 30, 2016 7:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Setting a title on a CONSOLE window.
Replies: 4
Views: 515

Re: GetAdaptersInfo ¿DLL32 FUNCION o BEGINDUMP/ENDDUMP?

El comienzo de la estructura IP_ADAPTER_INFO en 32bits son dos variables de 4+4 = 8 bytes y en 64bits 8+4 = 12 bytes cBuffer en 32bts      cBuffer en 64bts  12345678              123456789012--------------------------------------- ........{3C195B8      ..>.........{3C1 8-0DDC-49CE-8BB9 ...
by JmGarcia
Fri Mar 25, 2016 12:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: GetAdaptersInfo ¿DLL32 FUNCION o BEGINDUMP/ENDDUMP?
Replies: 12
Views: 2175
PreviousNext

Return to advanced search