Search found 213 matches
- Fri Sep 29, 2017 11:52 am
- Forum: Coding Questions
- Topic: How to send text to default email client
- Replies: 7
- Views: 8359
Re: How to send text to default email client
Would be worth doing that now - originally it was just going to be a set of functions, but after converting to a module, I didn't move the structures
- Fri Sep 29, 2017 11:21 am
- Forum: Coding Questions
- Topic: How to send text to default email client
- Replies: 7
- Views: 8359
Re: How to send text to default email client
Ah, yes, forgot the structures again (keep them in a resident file) :
Enumeration Mail_Process_Type
#MAIL_INVALID = -1
#MAIL_TO = 0
#MAIL_CC
#MAIL_BCC
#MAIL_SUBJECT
#MAIL_BODY
EndEnumeration
Structure Mail_Receipient_Type
recipient.s
flag.i
EndStructure
Structure Mail_Receipient
List ...
Enumeration Mail_Process_Type
#MAIL_INVALID = -1
#MAIL_TO = 0
#MAIL_CC
#MAIL_BCC
#MAIL_SUBJECT
#MAIL_BODY
EndEnumeration
Structure Mail_Receipient_Type
recipient.s
flag.i
EndStructure
Structure Mail_Receipient
List ...
- Fri Sep 29, 2017 10:16 am
- Forum: Coding Questions
- Topic: How to send text to default email client
- Replies: 7
- Views: 8359
Re: How to send text to default email client
Here is the test program :
XIncludeFile "..\Modules\Mail.sb"
Global.s moduleName="Example"
Global.s procedureName="A Procedure"
Global.i lineNumber=1234
Global.s error="Testing"
If Mail::CreateMail(0, "njk@blurg.com", "Program Error")
Mail::SetMailBody(0,"Error report For module : "+moduleName ...
XIncludeFile "..\Modules\Mail.sb"
Global.s moduleName="Example"
Global.s procedureName="A Procedure"
Global.i lineNumber=1234
Global.s error="Testing"
If Mail::CreateMail(0, "njk@blurg.com", "Program Error")
Mail::SetMailBody(0,"Error report For module : "+moduleName ...
- Tue Sep 26, 2017 3:53 pm
- Forum: Coding Questions
- Topic: How to send text to default email client
- Replies: 7
- Views: 8359
Re: How to send text to default email client
Would this code be useful :
DeclareModule Mail
EnableExplicit
Declare.i AddMailAttachment(mail.i,description$,fileName$,mimeType$="")
Declare.i AddMailAttachmentData(mail.i,description$,*Buffer,BufferLength,mimeType$="")
Declare.i AddMailRecipient(mail.i, address$, flags.i=#PB_UTF8 ...
DeclareModule Mail
EnableExplicit
Declare.i AddMailAttachment(mail.i,description$,fileName$,mimeType$="")
Declare.i AddMailAttachmentData(mail.i,description$,*Buffer,BufferLength,mimeType$="")
Declare.i AddMailRecipient(mail.i, address$, flags.i=#PB_UTF8 ...
- Tue Sep 26, 2017 8:53 am
- Forum: General Discussion
- Topic: SB2.1 Android - where does the resource folder go?
- Replies: 2
- Views: 4543
Re: SB2.1 Android - where does the resource folder go?
It should do - I would think/hope that OpenFileRequester doesn't default to the base of the app directory, and should really only look in the media directory.
- Sun Sep 24, 2017 5:05 pm
- Forum: General Discussion
- Topic: Deployment: Error: unknown host service
- Replies: 2
- Views: 4416
Re: Deployment: Error: unknown host service
Essentially, it looks like the old wait-for-device and wait-for-devices did the same thing, but that isn't the case with your SDK, in which the two do different things...
I'm presuming, of course, ADB is being used to transfer to the Android machine...
I'm presuming, of course, ADB is being used to transfer to the Android machine...
- Mon Sep 18, 2017 6:25 pm
- Forum: Coding Questions
- Topic: [Help] Converting code from PureBasic!
- Replies: 7
- Views: 9113
Re: [Help] Converting code from PureBasic!
Yes, hopefully appropriate amendments will be made to the help file 

- Sun Sep 17, 2017 9:30 pm
- Forum: Coding Questions
- Topic: [Help] Converting code from PureBasic!
- Replies: 7
- Views: 9113
Re: [Help] Converting code from PureBasic!
Try using AllocateStructure instead of AllocateMemory - by the looks of it, the latter is only to be used with Poke and Peek, whilst the former is for structures.
Thus :
DeclareModule CHESS
Declare.i Init(Title.s)
EndDeclareModule
Module CHESS
Structure GUI_STRUCT
Window.i
WindowHandle.i ...
Thus :
DeclareModule CHESS
Declare.i Init(Title.s)
EndDeclareModule
Module CHESS
Structure GUI_STRUCT
Window.i
WindowHandle.i ...
- Fri Sep 15, 2017 10:34 am
- Forum: General Discussion
- Topic: Next update
- Replies: 4
- Views: 5574
- Wed Sep 13, 2017 4:52 pm
- Forum: Feature Requests and Wishlists
- Topic: Deploying App - cannot Abort
- Replies: 6
- Views: 8744
Re: Deploying App - cannot Abort
Indeed - not easy especially if these processors dont bother processing window events...