Página 2 de 2

Re: Inclusión archivos de cabecera

Publicado: Mar May 24, 2022 9:36 am
por quim
Gracias Charly

Afortunadamente, ya nos funciona el #ifdef __MODHARBOUR__ y de esta forma va perfectamente

Código: Seleccionar todo

#ifdef __MODHARBOUR__
	#include "{% hb_getenv( 'PRGPATH' ) + '/include/hbweb.ch' %}"
#else
	#include "hbweb.ch"
#endif
Parece una tonteria que no funcione a nivel hb_SetEnv, pero no hay forma de verlo, a ver si es posible la magia
Si no, la forma anterior tampoco va mal ...

Re: Inclusión archivos de cabecera

Publicado: Mar May 24, 2022 5:52 pm
por charly
Quim,

V2.1 -> 2.1.010
Fixed bug. In V2 it didn't work correctly when we set the HB_INCLUDE variable.
This gave us an error when, for example, using the #include command. By default
it always looks in c:\harbour\include. Now we can put our includes in the folder
we want and set the variable like this

// {% hb_setenv( 'HB_INCLUDE', <path> ) %}

See example in samples/path

Código: Seleccionar todo

//	{% hb_setenv( 'HB_INCLUDE', hb_getenv( 'PRGPATH' ) + '/include' ) %}		

#include "my.ch"

function main()

	MYTIME	

retu nil 
C.

Re: Inclusión archivos de cabecera

Publicado: Mar May 24, 2022 7:25 pm
por quim
Gracias Charly, funciona perfecto !!

Salutacions