![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
i am creating a addin for outlook express in vc++2005
I am trying to load xml to my code with the following code STDMETHOD(GetCustomUI)(BSTR RibbonID, BSTR * RibbonXml) { Assembly^ assem=Assembly::GetExecutingAssembly(); Stream^ strm= assem-GetManifestResourceStream("test.Xmlres.test.xml") ; StreamReader^ reader= gcnew StreamReader(strm); *RibbonXml= reader-ReadToEnd(); reader-Close(); strm-Close(); return S_OK; } but it showing an error in compile time: error C2440: '=' : cannot convert from 'System::String ^' to 'BSTR' No user-defined-conversion operator available, or Cannot convert a managed type to an unmanaged type |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I Replace a string with a variable? | Carol G | Outlook and VBA | 4 | December 2nd 06 04:24 PM |
String in msg body | gamename | Outlook and VBA | 5 | August 10th 06 10:05 PM |
last string in txt file | Leech | Outlook and VBA | 1 | February 10th 06 07:13 AM |
Need String from Email Subject | CondtllyFrmttd | Outlook and VBA | 1 | January 25th 06 04:26 PM |
string variable that contains formatting | Martin | Outlook and VBA | 4 | January 19th 06 09:49 AM |