Files
harbour-core/harbour/contrib/hbwin/tests/testmapi.prg
Viktor Szakats 97abb02ed9 2010-01-17 20:34 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbwin/win_reg.prg
  * contrib/hbwin/win_os.prg
  * contrib/hbwin/win_tprn.prg
  * contrib/hbwin/wapi_winbase.c
  * contrib/hbwin/hbwin.h
  * contrib/hbwin/hbwin.ch
  * contrib/hbwin/tests/testprn.prg
  * contrib/hbwin/tests/testcom1.prg
  * contrib/hbwin/tests/testcom2.prg
  * contrib/hbwin/tests/testreg.prg
  * contrib/hbwin/tests/testmapi.prg
  * contrib/hbwin/win_com.c
  * contrib/hbwin/win_prn1.c
    * MM_TO_INCH macro moved from hbwin.ch to win_tprn.prg.
      (INCOMPATIBLE is someone happened to use this in app code)
    + Prefixed all Windows constants with WIN_ in hbwin.ch.
    + Prefixed all hbwin specific constants with HB_ in hbwin.ch.
    + Retained all old legacy / deprecated hbwin.ch constants
      for compatibility. Users are encourages to use the new
      ones, as the old ones will be deleted in the future.
    * Changed WIN_MULDIV() to use hb_retni() (instead of hb_retnl())
    * WIN_MULDIV() renamed to WAPI_MULDIV() and moved
      to wapi source. (INCOMPATIBLE, although it's unlikely anyone
      is using WIN_MULDIV() so I didn't keep it.)
    + Added some additional printing related Windows constants.
    + Added comments to hbwin.ch saying which constant is used
      in which WIN_*() function.
    * HB_WIN_MAPI_* constants renamed to WIN_MAPI_*.
      (I haven't dealt with compatibility as this is brand new
      functions with not much users yet)
    + Marked all hbwin.ch deprecated macros with HB_LEGACY_LEVEL3
    ! Fixed to use hbwin.ch constants in few remaining places in testprn.prg
    ; Now it's possible to include hbwin.ch in .c files.
    ; QUESTION: Why RGB_* color constants aren't using pure colors?
                If there is no special reason, I think it should be
                changed to pure ones (with 0xFF components).

  * src/compiler/hbgenerr.c
    * Formatting.
2010-01-17 19:43:19 +00:00

44 lines
1.8 KiB
Plaintext

/*
* $Id$
*/
#include "hbwin.ch"
PROCEDURE Main()
LOCAL cSubject := "Test subject"
LOCAL cBody := "Test body"
LOCAL lMailConf := .F.
LOCAL lFromUser := .T.
LOCAL aSender := { "test from", "from@test.com" }
LOCAL aDest := { { "test to", "to@test.com", WIN_MAPI_TO } }
LOCAL aFiles := { { "testmapi.prg", "testmapi" } }
? win_MAPISendMail( cSubject, ; // subject
cBody, ; // menssage
NIL, ; // type of message
DToS( Date() ) + " " + Time(), ; // send date
"", ; // conversation ID
lMailConf, ; // acknowledgment
lFromUser, ; // user intervention
aSender, ; // sender
aDest, ; // destinators
aFiles ; // attach
)
// simple format
? win_MAPISendMail( cSubject, ; // subject
cBody, ; // menssage
NIL, ; // type of message
DToS( Date() ) + " " + Time(), ; // send date
"", ; // conversation ID
lMailConf, ; // acknowledgment
lFromUser, ; // user intervention
"from@test.com", ; // sender
{ "to@test.com" }, ; // destinators
{ "testmapi.prg" } ; // attach
)
RETURN