Error Compiling Fivedit.prg

Error Compiling Fivedit.prg

Postby Ollie » Mon Mar 05, 2007 6: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)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Re: Error Compiling Fivedit.prg

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

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

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

Postby Enrico Maria Giordano » Mon Mar 05, 2007 11:20 am

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

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

Postby Enrico Maria Giordano » Mon Mar 05, 2007 11:49 am

Code: Select all  Expand view
   CLIPPER MAPISENDDOCUMENTS( PARAMS ) // CUMENTS( nUiParam, cDelimiters, cFilePaths,
                        //      cFileNames, nReserved ) --> nResult


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Ehab Samir Aziz » 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
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

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

Postby Ehab Samir Aziz » Tue Mar 06, 2007 3: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)
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby Antonio Linares » Wed Mar 07, 2007 8:08 am

Ehab,

In samples\Fivedit.prg change this function:
Code: Select all  Expand view
function PrgSave()

   oTxtEdit:SaveToFile()
   oTxtEdit:SetFocus()

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
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 20 guests