"LDAP://" & Info.UserName ???

"LDAP://" & Info.UserName ???

Post by Michael Mors » Wed, 05 Jun 2002 22:59:06



Im trying to run the sample code at the following URL:
(http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/wss/wss/_cdo_message_coclass.asp) and
for this line will not correctly execute.

iPer.DataSource.Open "LDAP://" & Info.UserName

any ideas??  Do I need to put a domain or server name??
Although I think I've tried just about everything like
that.

I keep getting the error message 'The system cannot find
the specified path'

Any assistance would be great!

Mike

 
 
 

"LDAP://" & Info.UserName ???

Post by Jason Johnston [M » Thu, 06 Jun 2002 06:53:33


Works fine for me.  Are you running this code ON the Exchange server?  That
code won't work remotely.

Hope that helps!

Jason Johnston
Microsoft Developer Support - Messaging

This posting is provided "AS IS" with no warranties, and confers no rights.

 
 
 

1. Precedence of overloaded "&&" vs overloaded "void*()"

The following code involves a template class that has an overloaded "void*"
conversion operator and an overloaded "&&" operator.  I can't understand which
should have precedence, according to the ARM.  Further explanation at end of
this post.  Here's the code:
-------------------------------------------------------------------------------
#include <iostream.h>

template<class T> class Jnt
{
public:
   Jnt (T val) : value(val) { }
   Jnt (void) : value(0) { }
   Jnt& operator= (const Jnt& j)
      { value = j.value; return *this; }
   operator void* (void)
      { return &value; }
   T value;

template<class T> Jnt<T> operator&& (const Jnt<T>& j1, const Jnt<T>& j2)
{
   return Jnt<T> (j1.value * j2.value);

main()
{
   Jnt<double> x(7);
   Jnt<double> y(3);
   Jnt<double> z = x && y;
   cout << z.value << endl;
   return 0;
-------------------------------------------------------------------------------
The problem is that the expression "x && y" evaluates to (int)1, and the
overloaded operator "&&" is not called.  I believe that the overloaded "void*"
conversion operator is called instead.

This problem occurs using BC++ 3.1, but not when using g++.  G++ calls my
overloaded "&&" operator.  Naturally, this is the behavior I prefer.

Before I complain to Borland, I'd like an opinion:  Does the C++ language
guarantee that my overloaded "&&" operator is called in preference to my
overloaded "void*" conversion operator?  If so, then here is a BC++ bug and I
can squawk to Borland with confidence.

Incidentally, if anyone has access to BC++ 4.0, I'd like to know which
overloaded operator is activated by that compiler.

Thanks for your thoughts.

David Arnstein

2. computer hardware

3. "own" vs "uses" vs "contains" vs "is a"

4. XML/CSS future

5. info about: "Martin-Odell" or "Room"

6. Hole Wizard Callouts

7. Questions about "web-based" & "client/server architecture"?

8. [Q] Min. Timer Resolution in NT4

9. Urgent,please help: Using "CreateFile" & "TransmitCommChar" for Parallel Port?

10. Removing "My Computer", "Recycle Bin" and "Network Neighborhood" from desktop

11. Boost.Thread: "Threads & Exceptions"/"Enhanced call_once()"

12. distinct "keypad ENTER" & "normal ENTER" ???

13. Edit Registry ("SYSTEM.DAT" & "USER.DAT")