Discussion Locked

citrix and the createobject() function

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to use the following VB5 statement in a little programme:
set objSession = createobject("MAPI.Session")

If I use the programme on a WIN95 system, or a WINNT 4 system, it works fine; if I use it on a citrix system, I get an error, althoughthere is an Exchange client that works fine.

How can I solve this problem ?

5 replies

by limbo

It's not a problem specific to Citrix, but an incompatibility issue between the VB library used in your development environment and the one used by NT Terminal Service.

The libraries used, either msvbvm50.dll or MSVBVB60.dll (depends if you run VB 5 or 6), need to be verified on both environments before all incompatibility issues are removed.

by andrewf

It depends on the error you are getting...

If any VBA product (eg Excel 97) is installed on the citrix machine then try adding the reference to the dll you are calling and write a test sub with the same line to see if this works under VBA without errors. If there are none then it's not the dll that has the problems on the citrix machine.

It is possible as stated before that something may not be registering correctly. Make sure you are using 'change user /install' before you begin installing your app as well.

I have had similar problems with Citrix, and had to physically go to the machine's console to do the install. Certain DLL's were not registering when I logged in via the terminal ...

Regards

Andrew Fraser
~~~~~~~~~~~Analyst/Programmer
Sealord Group LTD

This discussion is closed to new replies.