Inclusión archivos de cabecera

quim
Mensajes: 31
Registered for: 3 years 4 months
Andorra

Mensaje 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 ...

Avatar de Usuario
charly
Mensajes: 145
Registered for: 3 years 6 months

Mensaje 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.
Salutacions, saludos, regards.
Charly

"...programar es fácil, hacer programas es difícil..."

https://httpd2.blogspot.com/
https://forum.modharbour.app

quim
Mensajes: 31
Registered for: 3 years 4 months
Andorra

Mensaje por quim »

Gracias Charly, funciona perfecto !!

Salutacions

Responder