Page 1 of 1
stupid question
Posted: Wed Aug 20, 2014 9:07 am
by BruceN
i want to use dc_dbfile to get the whole path of a work area (not sure it's writing to right place). i get unresolved external when i do. i assume that means i don't have the right header file listed in the includes.
i have dcdialog.ch, what header file should i add?
thanks
Re: stupid question
Posted: Wed Aug 20, 2014 1:03 pm
by rdonnay
You would use DC_DbfName().
It's in DCLIP1.DLL.
Put this at the top of your program:
#Pragma Library("dclip1.lib")
Re: stupid question
Posted: Wed Aug 20, 2014 1:23 pm
by BruceN
thanks... i learned programmi ng (the little i know) from trial and error and looking at code. still don't understand what a 'pragma' is. i'll try it, thanks.
Re: stupid question
Posted: Thu Aug 21, 2014 6:01 am
by BruceN
when i add the pragma statement it compiles and runs... but when i put in the line:
t1:= dc_dbfname()
i get this error:
oError:args :
-> VALTYPE: C VALUE: CDXDBE
-> VALTYPE: L VALUE: .T.
oError:canDefault : Y
oError:canRetry : N
oError:canSubstitute: N
oError:cargo : NIL
oError:description : Invalid DLL name for DBE
oError:filename :
oError:genCode : 52
oError:operation : DbeLoad
oError:osCode : 0
oError:severity : 2
oError:subCode : 8009
oError:subSystem : BASE
oError:thread : 1
oError:tries : 0
does dc_dbfname require ntx indexes for some reason or what ?
thanks
Re: stupid question
Posted: Sun Aug 24, 2014 8:05 am
by rdonnay
Send me a sample program that creates this error.