Index
2010-06-14 14:51Peter Hart : Craig Boyds VFPEXMAPI.fll
2010-06-14 15:03Rafael Copquin : Re: Craig Boyds VFPEXMAPI.fll
2010-06-14 15:07MB Software Solutions, LLC : Re: Craig Boyds VFPEXMAPI.fll
2010-06-14 17:29Rick Schummer : RE: Craig Boyds VFPEXMAPI.fll
2010-06-15 08:28Graham Brown : RE: Craig Boyds VFPEXMAPI.fll
2010-06-15 08:51Stephen Russell : Re: Craig Boyds VFPEXMAPI.fll
2010-06-15 09:18MB Software Solutions, LLC : Re: Craig Boyds VFPEXMAPI.fll
2010-06-15 10:07Alan Bourke : Re: Craig Boyds VFPEXMAPI.fll
2010-06-15 10:20Stephen Russell : Re: Craig Boyds VFPEXMAPI.fll
2010-06-15 10:30Tracy Pearson : RE: Craig Boyds VFPEXMAPI.fll
Back to top
Craig Boyds VFPEXMAPI.fll

Author: Peter Hart

Posted: 2010-06-14 14:51:34   Link

Hi all

I have been using Craig Boyd's MAPI function successfully for a few

years, but now I have bitten the bullet and upgraded to Windows 7 with

Office 2010. Both 64 bit versions.

The fll fails with "There is no email program associated to perform the

requested action." etc. etc. I was also getting this error starting up

Blackberry Desktop Manager.

Googling the error came up with suggestion that many programs which use

the outlook email client are exhibiting this error and the solution is

to uninstall office 2010 64 bit version and install the 32 bit version.

http://social.technet.microsoft.com/Forums/en/outlook/thread/605056ed-9e

58-4920-9e0b-2a68180652f8

I suspect this may cause problems for fellow Profox Members so a reason

to post.

Another problem I am getting is with a line of code I saw on this list

to set the buffer size used by FoxPro.

Sys(3050,1,Val (Sys (3050, 1, 0)) / 3) && Set Visual Foxpro Buffer Size

Any ideas on how to do this with VFP on Windows 7 or in deed if it is

necessary in Win 7

Cheers

Peter

Peter Hart Computers

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/A57FA4CF19531343A2EE11B57DB8E3AF1009C3@server.PeterHartComputers.local

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Peter Hart
Back to top
Re: Craig Boyds VFPEXMAPI.fll

Author: Rafael Copquin

Posted: 2010-06-14 15:03:32   Link

>El 14/06/2010 15:51, Peter Hart escribió:

>Sys(3050,1,Val (Sys (3050, 1, 0)) / 3)&& Set Visual Foxpro Buffer Size

>Any ideas on how to do this with VFP on Windows 7 or in deed if it is

>necessary in Win 7

I have been using Win 7 (32 bit version) for some time now and never saw the need to set the VFP buffer size

Rafael Copquin

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4C167D04.8080907@ciudad.com.ar

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Rafael Copquin
Back to top
Re: Craig Boyds VFPEXMAPI.fll

Author: MB Software Solutions, LLC

Posted: 2010-06-14 15:07:39   Link

Peter Hart wrote:

> Hi all

>

>

>

> I have been using Craig Boyd's MAPI function successfully for a few

> years, but now I have bitten the bullet and upgraded to Windows 7 with

> Office 2010. Both 64 bit versions.

>

>

>

> The fll fails with "There is no email program associated to perform the

> requested action." etc. etc. I was also getting this error starting up

> Blackberry Desktop Manager.

>

>

>

> Googling the error came up with suggestion that many programs which use

> the outlook email client are exhibiting this error and the solution is

> to uninstall office 2010 64 bit version and install the 32 bit version.

>

> http://social.technet.microsoft.com/Forums/en/outlook/thread/605056ed-9e

> 58-4920-9e0b-2a68180652f8

>

>

>

> I suspect this may cause problems for fellow Profox Members so a reason

> to post.

Thanks, Peter. We're using Craig's VFPEXMAPI.FLL at the day gig, too,

so I appreciate your post.

>

>

>

> Another problem I am getting is with a line of code I saw on this list

> to set the buffer size used by FoxPro.

>

> Sys(3050,1,Val (Sys (3050, 1, 0)) / 3) && Set Visual Foxpro Buffer Size

>

>

>

> Any ideas on how to do this with VFP on Windows 7 or in deed if it is

> necessary in Win 7

This is the code that Ed Leafe uses in the SetMemory program, iirc, and

I found that with machines that have more than 2GB of memory, you have

to make sure you limit the number you're trying to set to be no more

than 2GB. Basically, I think my shortcut was to say "if there's more

than 2GB of memory on this machine, don't worry about setting

SYS(3050)." I might have been looking at the Windows OS() instead.

Can't recall at present.

--

Mike Babcock, MCP

MB Software Solutions, LLC

President, Chief Software Architect

http://mbsoftwaresolutions.com

http://fabmate.com

http://twitter.com/mbabcock16

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4C167DFB.1040508@mbsoftwaresolutions.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 MB Software Solutions, LLC
Back to top
RE: Craig Boyds VFPEXMAPI.fll

Author: Rick Schummer

Posted: 2010-06-14 17:29:55   Link

>> Another problem I am getting is with a line of code I saw on this list to

set the buffer size used by FoxPro.

Sys(3050,1,Val (Sys (3050, 1, 0)) / 3) && Set Visual Foxpro Buffer Size

Any ideas on how to do this with VFP on Windows 7 or in deed if it is

necessary in Win 7<<

The SYS(3050) function has an upper limit of 2 GB, so the suggested code is

a bad idea. Minimally it should ensure the upper limit is not exceeded.

Randomly picking one-third of available memory seems like a waste to me

since VFP runs great with 128 MB in most cases. Naturally this is a

case-by-case situation, but I would have a smarter formula. Mac Rubel did an

article in FoxPro Advisor years ago that showed 64 MB was a sweet spot for

Visual FoxPro query performance. More importantly it showed how more memory

is not necessarily a good thing.

Rick

White Light Computing, Inc.

www.whitelightcomputing.com

www.swfox.net

www.rickschummer.com

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/005f01cb0c08$bd4c3170$37e49450$@com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Rick Schummer
Back to top
RE: Craig Boyds VFPEXMAPI.fll

Author: Graham Brown

Posted: 2010-06-15 08:28:55   Link

fwiw

I use either Outlook with findwindowpos / timer to look for the annoying security message, a web based perl script and IE automation or this code to call cdosys.dll

Based on what type of system I've written one of them normally turns out to be the better solution.

As far as I know the customer I've lifted this code from is running W7 and not reported any issues.

LPARAMETERS cTo,cBCC,cSubject,cBody,cFrom

cdoBasic = 1

cdoSendUsingPort = 2

IMSG = Createobject("CDO.Message")

iConf = Createobject("CDO.Configuration")

Flds = iConf.Fields

With Flds

IF "JET" $ UPPER(cFrom)

.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic

.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "me@me.com"

.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "mypassword"

.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort

.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.me.com"

.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 30

.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

.Update()

ENDIF

Endwith

With IMSG

.Configuration = iConf

.To = cTo

** .To="info@compsys.co.uk"

IF "JET" $ UPPER(cFrom)

.From = "me@me.com"

endif

.BCC=cBCC

.Subject = cSubject

IF "<HTML" $ UPPER(cBody)

.htmlbody=cBody

ELSE

.TextBody = cBody

ENDIF

.Send()

Endwith

________________________________

From: profox-bounces@leafe.com on behalf of Rafael Copquin

Sent: Mon 14/06/2010 20:15

To: GrahamB

Subject: Re: Craig Boyds VFPEXMAPI.fll

>El 14/06/2010 15:51, Peter Hart escribió:

>Sys(3050,1,Val (Sys (3050, 1, 0)) / 3)&& Set Visual Foxpro Buffer Size

>Any ideas on how to do this with VFP on Windows 7 or in deed if it is

>necessary in Win 7

I have been using Win 7 (32 bit version) for some time now and never saw the need to set the VFP buffer size

Rafael Copquin

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/0AF51B84D903A144B9EE71AEAFE7E81C0E33B4@compsys1.CompySys.local

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Graham Brown
Back to top
Re: Craig Boyds VFPEXMAPI.fll

Author: Stephen Russell

Posted: 2010-06-15 08:51:20   Link

On Tue, Jun 15, 2010 at 7:28 AM, Graham Brown <info@compsys.co.uk> wrote:

> fwiw

>

> I use either Outlook with findwindowpos / timer to look for the annoying security message, a web based perl script and IE automation or this code to call cdosys.dll

>

---------------

I have used this before.

using System.Web.Mail

string strTo = "dude@where_ever.com";

string strFrom = "me@here.com";

string strSubject = "Dude what is taking so long?";

SmtpMail.Send(strFrom, strTo, strSubject,

"All the crap you want to put here");

or:

MailMessage msgMail = new MailMessage();

msgMail.To = "dude@where_ever.com";

msgMail.Cc = "me@here.com";

msgMail.From = "exaltedOne@123.com";

msgMail.Subject = "dude, another mail";

msgMail.BodyFormat = MailFormat.Html;

string strBody = "<html><body><b>Hello World</b>" +

" <font color=\"red\">What is taking so long! </font></body></html>";

msgMail.Body = strBody;

SmtpMail.Send(msgMail);

--

Stephen Russell

Sr. Production Systems Programmer

CIMSgts

901.246-0159 cell

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/AANLkTikw548osUWEoEgKe_K4QlTgqzzwheXAme19LW33@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Stephen Russell
Back to top
Re: Craig Boyds VFPEXMAPI.fll

Author: MB Software Solutions, LLC

Posted: 2010-06-15 09:18:32   Link

Graham Brown wrote:

> fwiw

>

> I use either Outlook with findwindowpos / timer to look for the annoying security message, a web based perl script and IE automation or this code to call cdosys.dll

>

> Based on what type of system I've written one of them normally turns out to be the better solution.

>

> As far as I know the customer I've lifted this code from is running W7 and not reported any issues.

My question is this: will this be the best option to use, one that will

satisfy most email accounts (including gmail) and have the least chance

of failure? Sounds like it, especially if you preset the values to an

email you know/have. Similar to what TR said before--you could have

your own email account/service and use that to send stuff to you. ??

--

Mike Babcock, MCP

MB Software Solutions, LLC

President, Chief Software Architect

http://mbsoftwaresolutions.com

http://fabmate.com

http://twitter.com/mbabcock16

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4C177DA8.6010703@mbsoftwaresolutions.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 MB Software Solutions, LLC
Back to top
Re: Craig Boyds VFPEXMAPI.fll

Author: Alan Bourke

Posted: 2010-06-15 10:07:24   Link

I think Craig's VFPEXMAPI remains an excellent solution, because the

number of people you'll come across with 64-bit Windows , never mind

64-Bit Office, will be fairly thin on the ground.

--

Alan Bourke

alanpbourke (at) fastmail (dot) fm

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/1276610844.10474.1380203147@webmail.messagingengine.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Alan Bourke
Back to top
Re: Craig Boyds VFPEXMAPI.fll

Author: Stephen Russell

Posted: 2010-06-15 10:20:58   Link

On Tue, Jun 15, 2010 at 9:07 AM, Alan Bourke <alanpbourke@fastmail.fm> wrote:

> I think Craig's VFPEXMAPI remains an excellent solution, because the

> number of people you'll come across with 64-bit Windows , never mind

> 64-Bit Office, will be fairly thin on the ground.

----------------

I find that a difficult decision for future based solutions. Won't

the new computers being sold be 64 bit and have the newest Office

version as well?

64 bit is not going away, IMO at least.

--

Stephen Russell

Sr. Production Systems Programmer

CIMSgts

901.246-0159 cell

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/AANLkTimDtzeK-9dt601PJcSmCP7kJeJSLmip35150V95@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Stephen Russell
Back to top
RE: Craig Boyds VFPEXMAPI.fll

Author: Tracy Pearson

Posted: 2010-06-15 10:30:23   Link

Alan Bourke wrote on 2010-06-15:

> I think Craig's VFPEXMAPI remains an excellent solution, because the

> number of people you'll come across with 64-bit Windows , never mind

> 64-Bit Office, will be fairly thin on the ground.

Alan,

The numbers are increasing. I've heard of 4 customers of ours in the past 2

months with this configuration. Granted at the end of last year, I had to

fix an issue with the W98 OS for a customer. So my customer base widely

varied.

Tracy Pearson

PowerChurch Software

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000801cb0c97$4ad3f170$e07bd450$@com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Tracy Pearson