Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 3 Monaten, 1 Woche
Letzter Beitrag:
vor 2 Monaten, 4 Wochen
Beteiligte Autoren:
Jeff Graham, Fabrice Harari, Tor-Bjarne

(Solved?) Outlook email session problem in WD21 64-bit only

Startbeitrag von Jeff Graham am 10.12.2017 19:02

I have the code below that works in 32-bit and not in 64-bit. I am using Outlook 2010. Has anyone else had this problem? Any solution?


MySession..Name = ""
gwbSessionStarted is boolean = False
IF NOT EmailStartSession(MySession) THEN
Error("The Outlook session failed to open.","Check whether Microsoft Outlook is your default messaging.","The default messaging is selected in the default options of the Windows control panel.")
gwbSessionStarted = True
gwsExcep is string = ExceptionInfo()


Re: Outlook email session problem in WD21 64-bit only

Hi Jeff,

I'm not sure if it's the proboem in this specific case, but my rule of thumbs for 32/64 bits difference is as follow: ALWAYS use ALL the elements of the chain of processing with the SAME NUMBER of bits.

That means that if your exe is in 32 bits, use everything that it calls in 32 bits, and if your exe is in 64 bits, use everything that it calls in 64 bits...

So, if you call outlook from a 64 bits exe, it should be a 64 bits outlook. And if you call it from a 32 bits exe, it chould be a 32 bits outlook.

and that means that testing both a 32 bits and 64 bits exe on the same machine is often a problem.

Sp one solution I use for this lind of problem is to move the function causing problem in a secondary exe that I create in 32 and 64 bits. And from my main program (and at this point it doesn't matter if 32 ou 64) I call the secondary 32 OR the secondary 64 depending on what it is working with.

I'm using that system to "talk" with scanners, by example.

Best regards

von Fabrice Harari - am 11.12.2017 11:36

Re: Outlook email session problem in WD21 64-bit only

Hi Fabrice,

I suspected that could be the case so I installed it at my clients location where I hope they have 64-bit Outlook on some machines. I will find out today.

I have also send a basic test project to PC Soft and waiting to see what they say.

Always good to get your input on problems!

von Jeff Graham - am 11.12.2017 15:58

Re: Outlook email session problem in WD21 64-bit only

For anyone interested,

I uninstalled Outlook 32-bit and installed Outlook 64-bit (you can't have both).

Then as Fabrice suggested, the problem reversed. Now the 32-bit configuration gets the message and the 64-bit configuration works.

PC Soft should fix this issue or at least give a message that says the configuration and application must match as 32-bit or 64-bit.

von Jeff Graham - am 12.12.2017 15:46
Hi Jeff,

PCSoft can NOT fix this issue, AFAIK, as it is a generic problem NOT limited to windev, but to all exes and programs.

32b talks to 32 bits, and 64 bits talks to 64 bits (which is also why even the registry is separated in 2 area, 32 vs 64 bits)

Best regards

von Fabrice Harari - am 12.12.2017 18:30

After upgrading my "Read-outlookmail-and-archive" app to WinDev 22 it do not longer work.

I suspect something on the WinDev librarys, there`s no errors app just closes without any errors. Versions of my app using WinDev 21 DLL`s work.

I will investigate an post on this thread, as it`s regarding Outlook problems, if it`s ok.


von Tor-Bjarne - am 20.12.2017 09:57
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.