Error Compiling Fivedit.prg

Post Reply
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Error Compiling Fivedit.prg

Post by Ollie »

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)
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Error Compiling Fivedit.prg

Post 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
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Post by Ollie »

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)
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Post by Ollie »

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)
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

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

EMG
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Post by Ollie »

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)
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

Code: Select all

   CLIPPER MAPISENDDOCUMENTS( PARAMS ) // CUMENTS( nUiParam, cDelimiters, cFilePaths,
                        //      cFileNames, nReserved ) --> nResult
EMG
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Ehab Samir Aziz
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Post 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)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ehab,

In samples\Fivedit.prg change this function:

Code: Select all

function PrgSave()

   oTxtEdit:SaveToFile()
   oTxtEdit:SetFocus()

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply