Page 1 of 1

Error Compiling Fivedit.prg

Posted: Mon Mar 05, 2007 6:31 am
by Ollie
Error Compiling Fivedit.prg

Unresolved External _HB_FUN_MAPISendDocument
Unresolved External _HB_FUN_WNetDisconnect

Can anyone help?

Re: Error Compiling Fivedit.prg

Posted: Mon Mar 05, 2007 10:57 am
by Enrico Maria Giordano
Ollie wrote:Error Compiling Fivedit.prg

Unresolved External _HB_FUN_MAPISendDocument
Change it to MAPISendDocuments() in Fivedit.prg.
Ollie wrote:Unresolved External _HB_FUN_WNetDisconnect
Change it to WNetDisconnectDialog() in Fivedit.prg.

EMG

Posted: Mon Mar 05, 2007 11:08 am
by Ollie
Thanks it worked.

Posted: Mon Mar 05, 2007 11:18 am
by Ollie
But it hangs when I choose "Send..." from the file menu.

Posted: Mon Mar 05, 2007 11:20 am
by Enrico Maria Giordano
That's because the calling syntax is not correct. Please look at the docs for MAPISendDocuments().

EMG

Posted: Mon Mar 05, 2007 11:33 am
by Ollie
Thanks Enrico,

Couldn't find those docs - can you direct me please.

Posted: Mon Mar 05, 2007 11:49 am
by Enrico Maria Giordano

Code: Select all

   CLIPPER MAPISENDDOCUMENTS( PARAMS ) // CUMENTS( nUiParam, cDelimiters, cFilePaths,
                        //      cFileNames, nReserved ) --> nResult
EMG

Posted: Mon Mar 05, 2007 10:15 pm
by Ehab Samir Aziz
What about that error :

Application
===========
Path and name: E:\COMPILER\clipper\FWH\SAMPLES\fivedit.exe (32 bits)
Size: 1,156,608 bytes
Time from start: 0 hours 1 mins 43 secs
Error occurred at: 03/06/07, 00:14:23
Error description: Error BASE/44 Assigned value is wrong class: TTXTEDIT:NTOP
Args:
[ 1] = U

Posted: Mon Mar 05, 2007 11:22 pm
by Antonio Linares
Ehab,

Please remove "AS NUMERIC" from these lines in the Class TTxtEdit:

DATA nRow, nCol AS NUMERIC // Phisical row and col
DATA nLineRow, nLineCol AS NUMERIC // Logical row and col

Posted: Tue Mar 06, 2007 3:21 pm
by Ehab Samir Aziz
No after amending your last post stiil the error appears :
Application
===========
Path and name: E:\COMPILER\clipper\FWH\SAMPLES\fivedit.exe (32 bits)
Size: 1,156,608 bytes
Time from start: 0 hours 0 mins 3 secs
Error occurred at: 03/06/07, 17:23:42
Error description: Error BASE/1004 No exported method: CFILENAME
Args:
[ 1] = U

Stack Calls
===========
Called from: .\source\function\FILENAME.PRG => CFILENAME(0)
Called from: fivedit.prg => (b)MAIN(71)
Called from: => TBTNBMP:CLICK(0)
Called from: => TBTNBMP:LBUTTONUP(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: => TBTNBMP:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(0)
Called from: => WINRUN(0)
Called from: => TMDIFRAME:ACTIVATE(0)
Called from: fivedit.prg => MAIN(94)

Posted: Wed Mar 07, 2007 8:08 am
by Antonio Linares
Ehab,

In samples\Fivedit.prg change this function:

Code: Select all

function PrgSave()

   oTxtEdit:SaveToFile()
   oTxtEdit:SetFocus()

return nil