HighTechTalks DotNet Forums  

Exporting #define from IDL to C# object viewer

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Exporting #define from IDL to C# object viewer in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
asnowfall@gmail.com
 
Posts: n/a

Default Exporting #define from IDL to C# object viewer - 07-19-2009 , 01:30 PM






I would like to export const strings, from ATL com server to C#, like
the way I do enum type. Is this possible at all?

my.IDL
-----------------------
//These appear in C# object viewer
enum Save
{
To_HardDrive = 1,
To_CD = 2
};

//These do not appear in C# object viewer
cpp_quote("const BSTR Yestingggggg1 = L\"hhhhh1q\";")
#define HHHHHHrr "jkjk"
const BSTR Yestingggggg = L"hhhhh";
const wchar_t* subject = (unsigned short*) L"Subject";

How to make above strings appear in C# object viewer?

Thanks
Ramesh

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.