FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error Compiling Fivedit.prg
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Error Compiling Fivedit.prg
Posted: Mon Mar 05, 2007 06:31 AM

Error Compiling Fivedit.prg

Unresolved External _HB_FUN_MAPISendDocument
Unresolved External _HB_FUN_WNetDisconnect

Can anyone help?

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Error Compiling Fivedit.prg
Posted: Mon Mar 05, 2007 10:57 AM
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
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Error Compiling Fivedit.prg
Posted: Mon Mar 05, 2007 11:08 AM

Thanks it worked.

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Error Compiling Fivedit.prg
Posted: Mon Mar 05, 2007 11:18 AM

But it hangs when I choose "Send..." from the file menu.

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Error Compiling Fivedit.prg
Posted: Mon Mar 05, 2007 11:20 AM

That's because the calling syntax is not correct. Please look at the docs for MAPISendDocuments().

EMG

Posts: 233
Joined: Sat Dec 30, 2006 06:10 AM
Error Compiling Fivedit.prg
Posted: Mon Mar 05, 2007 11:33 AM

Thanks Enrico,

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

Many thanks

Ollie.



Using:

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)

Borland C++ 5.5.1

FWH 9.04 (2009 Apr)
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Error Compiling Fivedit.prg
Posted: Mon Mar 05, 2007 11:49 AM
   CLIPPER MAPISENDDOCUMENTS( PARAMS ) // CUMENTS( nUiParam, cDelimiters, cFilePaths,
                        //      cFileNames, nReserved ) --> nResult


EMG
Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
Error Compiling Fivedit.prg
Posted: Mon Mar 05, 2007 10:15 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error Compiling Fivedit.prg
Posted: Mon Mar 05, 2007 11:22 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 334
Joined: Fri Oct 14, 2005 01:54 PM
Error Compiling Fivedit.prg
Posted: Tue Mar 06, 2007 03:21 PM

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)

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Error Compiling Fivedit.prg
Posted: Wed Mar 07, 2007 08:08 AM
Ehab,

In samples\Fivedit.prg change this function:
function PrgSave()

   oTxtEdit:SaveToFile()
   oTxtEdit:SetFocus()

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion