I maybe mistaken, but I don't think you can load a vb6 project directly into
VS.NET. Here is some sample C# sample code to get you started (given a
choice, I don't do VB, so you'll have to convert it yourself):
In the Solutions Explorer - Click References->Add Reference, select the COM
tab, and then find and select Microsoft CDO 1.21 Libarary.
If you can find 'CDO 1.21 Libarary', run the Outlook installer and install
it. It is an optional component.
You should now see MAPI, listed in your References.
public class cdo
protected StringBuilder sProfileInfo;
protected Session oSession = null;
protected AppointmentItem appItem;
sProfileInfo = new StringBuilder();
oSession = new Session();
oSession.Logon ("", "", false, true, 0, true, sProfileInfo.ToString());
public void doSomething()
// oSession.AddressLists("Global Address Lists");
System.Console.Out.WriteLine("Do other MAPI Stuff");
static void Main(string args)
cdo c = new cdo();
> I have a vb6.0 project that I am trying to load in VS.NET. When I open the
> project it tells me I need to upgrade it. When it tries to upgrade I get
> following error.
> Upgrade failed: Exception occured: The referenced componants
> are missing design time licenses.
> Am I missing some SDK?