Error While trying to use ActiveX control

Error While trying to use ActiveX control

Postby Milan Mehta » Thu Mar 30, 2006 12:32 pm

Hello All,

While trying to use ActiveX control, I get folllowing Error :

Error: Unresolved external '_hb_dynsymSymbol' referenced from C:\FWH\LIB\FIVEHC.LIB|HARBOURC

My code is as follows :
----------------------------------------Cut---------------------------------
#include "FiveWin.ch"

function Main()

local oWnd, oActiveX, cSeed
local cEvents := ""

DEFINE WINDOW oWnd TITLE "GSN Testing"

oActiveX = TActiveX():New( oWnd, "GSN.GSNCtrl.1" )
oActiveX:nWidth = 0
oActiveX:nHeight = 0

oActiveX:bOnEvent = { | event, aParams | cEvents += EventInfo( event, aParams ) }

ACTIVATE WINDOW oWnd ;
VALID ( MemoEdit( cEvents ), .t. )

return nil

function EventInfo( event, aParams )

local cMsg := "Event: " + cValToChar( event ) + CRLF
local n

cMsg += "Params: "

for n = 1 to Len( aParams )
cMsg += cValToChar( aParams[ n ] ) + CRLF
next

return cMsg + CRLF

-----------------------Paste------------------------------------------
Milan.
Milan Mehta
 
Posts: 115
Joined: Mon Oct 17, 2005 4:42 am
Location: India

Postby Antonio Linares » Thu Mar 30, 2006 1:49 pm

Milan,

You have to add this code to your app:
Code: Select all  Expand view  RUN
#pragma BEGINDUMP

#include "hbapi.h"
#include "hbapiitm.h"

PHB_SYMB hb_dynsymSymbol( PHB_DYNS pDynSym )
{
   return pDynSym->pSymbol;
}

#pragma ENDDUMP
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests