Search found 49 matches: retc

Return to advanced search

returning a wchar_t variable back to harbour function

Hello everyone! Inside a harbour wrapper function I need to declared a variable as wchar_t or HB_WCHAR but I don't know how to return that variable back to calling harbour function. I tried using hb_retc as with any other string but that won't return wide strings. Is there another vm return function...
by reinaldocrespo
Wed May 24, 2023 12:08 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: returning a wchar_t variable back to harbour function
Replies: 4
Views: 263

HMG 64 Bit Constante -> FiveWin ?

hi,

HMG use Prefix "HMG_" for 64 Bit compatible Way
HMG_parnl
HMG_parvc
HMG_parc

HMG_arrayGetCPtr

HMG_retc
HMG_retnl
HMG_storc
HMG_storvnl
HMG_storvc

did FiveWin have a Prefix for 64 Bit ( fw_ ) :?:
by Jimmy
Wed Oct 19, 2022 6:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: HMG 64 Bit Constante -> FiveWin ?
Replies: 23
Views: 1247

problemas al linkear

Hola. usando harbour y Fwh la ultima. Me arroja estos errores: [1]:iLink32.Exe -Gn -q -aa -Tpe -x @testMaria.bcl Error: Unresolved external 'WinMain' referenced from X:\HARB\BCC7\LIB\C0W32.OBJ Error: Unresolved external '_hb_vmProcessSymbols' referenced from X:\PROYECTOS\TEST\MARIA\OBJ\MARIA.OBJ Err...
by goosfancito
Thu Feb 04, 2021 9:56 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: problemas al linkear
Replies: 6
Views: 439

Tambien Saber Ip LOCAL

/* File : iplocal.cpp Autor : Albeiro Valencia Fecha : 30/07/2018 Todos los derechos reservados albeiroval@gmail.com Se llama asi.. IpLocal =:IPLOCAL() */ #include <Windows.h> #include <WinSock.h> #include <hbapi.h> HB_FUNC( IPLOCAL ) { WSADATA wsa_Data; WSAStartup( 0x101, &wsa...
by Busmatic_wpb
Fri Dec 07, 2018 2:15 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Ip Publico
Replies: 1
Views: 607

Saber Ip Publico

Estimados compadres, saludes a la distancia y apeticion de una listero publicamos la rutina en C para saber cual en el IP Externo.\ el Señor Alberto Valencia de Venezuela nos autorizo a su publicacion. /* Autor : Albeiro Valencia : IP externo Fecha : 30/07/2018 Todos los derechos reservados albeirov...
by Busmatic_wpb
Fri Dec 07, 2018 2:12 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Saber Ip Publico
Replies: 1
Views: 607

Re: MSVC 2017 Try

5.

Cambia esta línea:

hb_retc( mensaje );

así:

hb_retc( ( const char * ) mensaje );
by Antonio Linares
Fri Apr 14, 2017 7:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MSVC 2017 Try
Replies: 67
Views: 7707

Re: MSVC 2017 Try

1.- error (warning): internet.prg(441): warning C4302: 'conversi¢n de tipo': truncamiento de 'HINTERNET' a 'LONG' internet.prg(446): warning C4312: 'conversi¢n de tipo': conversi¢n de 'long' a 'HINTERNET' de mayor tama¤o Code: line 441:      hb_retnl( ( LONG ) FtpFindFirs...
by Verhoven
Fri Apr 14, 2017 5:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MSVC 2017 Try
Replies: 67
Views: 7707

Re: Looking for cliparse.zip / Buscando cliparse.zip

https://groups.google.com/forum/#!searchin/comp.lang.clipper/antonio$20pcode%7Csort:relevance/comp.lang.clipper/LWSLdJx1MA0/Gk6XB0XFjWcJ FIVE 1.0 Index: a.. Overview of Five 1.0. b.. The Clipper virtual Machine (CVM). c.. The compiler. d.. The Run Time Library. a.. O...
by Antonio Linares
Mon Oct 24, 2016 7:50 am
 
Forum: Off Topic / Otros temas
Topic: Looking for cliparse.zip / Buscando cliparse.zip
Replies: 6
Views: 2291

Re: create a harbour dll containing functions to be executed

> We can implement it in the function HBDLLENTRY() itself

void pascal __export HBDLLENTRY1( char * cProcName, PHB_ITEM pParam1 )
{
hb_itemDoC( cProcName, 1, pParam1 );

if( HB_ISBYREF( pParam1 ) )
hb_itemPutC( pParam1, hb_retc( -1 ) ); // -1 mean the value returned from cProcName
}
by Antonio Linares
Wed Aug 31, 2016 7:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: create a harbour dll containing functions to be executed
Replies: 23
Views: 4254

Re: Declarar função DLL

resolvido! :) #pragma BEGINDUMP #include <windows.h> #include "hbapi.h" #include "hbapierr.h" static HINSTANCE handleLeitura; HB_FUNC(LOADDLLFISCNET){ handleLeitura = LoadLibrary( "GERSAT.dll" ); } HB_FUNC(FREEDLLFISCNET){ FreeLibrary( handleLeitura ); } typedef c...
by MGA
Tue Mar 08, 2016 7:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Declarar função DLL - SOLUCIONADO
Replies: 2
Views: 675

WinUser() or another way to get Windows User

I try to use the WinUser() but I get : Error: Unresolved external '_HB_FUN_WINUSER' referenced from OBJ\MAIN.OBJ http://wiki.fivetechsoft.com/doku.php?id=fivewin_function_winuser If I include the SOURCE\WINAPI\MSGBOX.C I get: C:\Compiladores\FWH(10.6)\source\winapi\msgbox.c: Warning W8065 C:\Compila...
by sambomb
Fri Jan 23, 2015 4:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: WinUser() or another way to get Windows User
Replies: 4
Views: 1544

Re: StringFromCLSID

This seems to be the right fix:

hb_retc( psz = hb_oleWideToAnsi( pOleStr ) );
by Antonio Linares
Tue Sep 16, 2014 1:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: StringFromCLSID
Replies: 15
Views: 2956

Re: Bug harbour_3.2_32bits_MSVC2013_20142906

Antonio,

Muchas gracias,

Mis conocimientos de C se quedan bastante cortos.

El motivo de cambiarlo a CHAR es porque al compilar muestra un error de que hb_retc(---) no puede convertir el valor
by fgondi
Wed Jul 02, 2014 7:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bug harbour_3.2_32bits_MSVC2013_20142906
Replies: 42
Views: 7662

Re: Tftp - Directory no retorna la hora - Funciona a Medias

El problema de la hora en los ficheros que se listan vía FTP es la "resolución". Según parece el protocolo FTP no tiene un estandard único al respecto y parece que según funcione el servidor la hora de actualización que te devuelve el servidor tiene una resolución u otra. Por ejemplo, dos ...
by Verhoven
Mon Jun 24, 2013 5:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Tftp - Directory no retorna la hora - Funciona a Medias
Replies: 5
Views: 1414

Re: Pedir autorización de administrador de windows

Disculpa Antonio, pero mi ignorancia de C es mayor de lo que cualquiera puede imaginar, pero se me hizo facil hacer lo siguiente: Pegarla debajo de otra función que también tengo en C en el mismo programa cambiando la primera lína y agregando la linea hb_retc( b ); casi al final //BOOL IsUserAdmin(V...
by quique
Wed Apr 17, 2013 6:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Pedir autorización de administrador de windows
Replies: 3
Views: 697
Next

Return to advanced search