Click here to Skip to main content
15,904,023 members
Home / Discussions / C#
   

C#

 
QuestionDatagrid Pin
md_refay4-Jan-07 0:56
md_refay4-Jan-07 0:56 
AnswerRe: Datagrid Pin
ednrgc4-Jan-07 2:07
ednrgc4-Jan-07 2:07 
GeneralRe: Datagrid Pin
md_refay4-Jan-07 2:41
md_refay4-Jan-07 2:41 
GeneralRe: Datagrid Pin
Martin#4-Jan-07 2:49
Martin#4-Jan-07 2:49 
GeneralRe: Datagrid Pin
quiteSmart4-Jan-07 3:33
quiteSmart4-Jan-07 3:33 
AnswerRe: Datagrid Pin
Drew McGhie4-Jan-07 5:02
Drew McGhie4-Jan-07 5:02 
QuestionLaunching the Windows ODBC Data Source Administrator Pin
Langers4-Jan-07 0:39
Langers4-Jan-07 0:39 
QuestionProblem with using enum in C# interface Pin
Vitaly Tomilov4-Jan-07 0:01
Vitaly Tomilov4-Jan-07 0:01 
Hi,

I'm writing a COM interop interface in C# (VS2005) to be used in VC++, and got into problem of proper exporting enum-s in such interface.

When i previously used C++ for writing COM interfaces, i would just declare the enum within IDL file, and then within the library section also declare it, that way way making my enum accessible when TLB file is imported using #import in C++;

Now in C# if i declare: public enum MyEnymType {val1, val2,...}, then such object when imported into C++ project is declared as: enum MyEnymType {MyEnymType_val1, MyEnymType_val2,...} instead of enum MyEnymType {val1, val2,...}

Is there a way to make C# embed my enum type into the object in such a way that it exports original enum declaration during import instead of such an ugly Type_Value thing?

Thank you,
Vitaly


AnswerRe: Problem with using enum in C# interface Pin
Guffa4-Jan-07 1:20
Guffa4-Jan-07 1:20 
GeneralRe: Problem with using enum in C# interface Pin
Vitaly Tomilov4-Jan-07 1:35
Vitaly Tomilov4-Jan-07 1:35 
GeneralRe: Problem with using enum in C# interface Pin
Pete O'Hanlon4-Jan-07 1:42
mvePete O'Hanlon4-Jan-07 1:42 
GeneralRe: Problem with using enum in C# interface Pin
Vitaly Tomilov4-Jan-07 3:12
Vitaly Tomilov4-Jan-07 3:12 
GeneralRe: Problem with using enum in C# interface Pin
Pete O'Hanlon4-Jan-07 3:47
mvePete O'Hanlon4-Jan-07 3:47 
GeneralRe: Problem with using enum in C# interface Pin
Dan Neely4-Jan-07 4:20
Dan Neely4-Jan-07 4:20 
GeneralRe: Problem with using enum in C# interface Pin
quiteSmart4-Jan-07 2:18
quiteSmart4-Jan-07 2:18 
QuestionDeleting nodes recursivily Pin
Gareth H3-Jan-07 23:55
Gareth H3-Jan-07 23:55 
AnswerRe: Deleting nodes recursivily Pin
Pete O'Hanlon4-Jan-07 1:46
mvePete O'Hanlon4-Jan-07 1:46 
GeneralRe: Deleting nodes recursivily Pin
Gareth H4-Jan-07 2:56
Gareth H4-Jan-07 2:56 
QuestionDataGridView that searches like outlook Pin
robmays3-Jan-07 23:50
robmays3-Jan-07 23:50 
AnswerRe: DataGridView that searches like outlook Pin
Nader Elshehabi4-Jan-07 0:30
Nader Elshehabi4-Jan-07 0:30 
GeneralRe: DataGridView that searches like outlook Pin
robmays4-Jan-07 0:36
robmays4-Jan-07 0:36 
GeneralRe: DataGridView that searches like outlook Pin
Nader Elshehabi4-Jan-07 1:40
Nader Elshehabi4-Jan-07 1:40 
QuestionBest way of Data Sync Pin
fearless stallion3-Jan-07 23:46
fearless stallion3-Jan-07 23:46 
AnswerRe: Best way of Data Sync Pin
Nader Elshehabi4-Jan-07 0:22
Nader Elshehabi4-Jan-07 0:22 
GeneralRe: Best way of Data Sync Pin
fearless stallion4-Jan-07 1:59
fearless stallion4-Jan-07 1:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.