You are here: Office-Outlook.com  / Outlook Forum
Home » Outlook addins and plugins development » Developer Outlook forms » Problem making a new folder in Outlook
Problem making a new folder in Outlook [message #470] Mon, 17 July 2006 12:11 Go to previous message
Tony
Messages: 196
Registered: July 2006
Senior Member
I am trying to create a new folder in Outlook using c++/cli and with the code:

Outlook::NameSpace ^oNS = outlookApp->GetNamespace("MAPI");
Outlook::MAPIFolder ^oInbox =
oNS->GetDefaultFolder(Outlook::OlDefaultFolders::olFolderInbox);
Outlook::MAPIFolder ^oNewFolder = oInbox->Folders->Add("testfolder ");

I get the error:

Error 1 error C2660:
'Microsoft::Office::Interop::Outlook::_Folders::Add' : function does not take
1 arguments

Read Message
Read Message
Read Message
Read Message
Previous Topic:label caption and click event
Next Topic:Word features in Outlook
Goto Forum:
  

.:: Home ::.