No funciona, continua el problema.
Estoy trabajando con los ejemplos: testdllp.prg y pcodedll.prg
a testdllp.prg le añadí el código que me indicas y el resultado de la compilación es el siguiente:
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20170513)
Copyright 1999-2017,
http://www.xharbour.org http://www.harbour-project.org/Compiling 'testdllp.prg' and generating preprocessed output to 'testdllp.ppo'...
Generating C source output to 'testdllp.c'...
Done.
Lines 28, Functions/Procedures 1, pCodes 42
Embarcadero C++ 7.30 for Win32 Copyright (c) 1993-2017 Embarcadero Technologies, Inc.
testdllp.c:
Warning W8065 testdllp.prg 35: Call to function 'hb_vmProcAddress' with no prototype in function dll_hb_vmProcAddress
Warning W8069 testdllp.prg 35: Nonportable pointer conversion in function dll_hb_vmProcAddress
Turbo Incremental Link 6.80 Copyright (c) 1997-2017 Embarcadero Technologies, Inc.
Error: Unresolved external '_hb_vmProcAddress' referenced from D:\FWH1606\SAMPLES\TESTDLLP.OBJ
Error: Unable to perform link* Linking errors *
no logra enlazar
_hb_vmProcAddressPor si acaso, cambie:
HB_EXPORT_ATTR PHB_FUNC dll_hb_vmProcAddress( const char * szFuncName )
por
HB_EXPORT PHB_FUNC dll_hb_vmProcAddress( const char * szFuncName )
El problema es con
xHarbour.
En
Harbour existe la libreria: hbmaindllp.lib,
en xHarbour NO. Así que sigo usando maindllp.obj compilado por mi.
Al parecer
_hb_vmProcAddress esta en la libreria
hbvm.lib, que
xHarbour no la tiene en la ultima version.
mmm... encontre hbvm.lib en un instalador de xHarbour antiguo con Bcc58
Donde consigo hbvm.lib para xharbour 1.2.3
Antonio, gracias por responder, disculpa la molestia.