Click here to Skip to main content
15,896,063 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Use of managed variables in non-ref class Pin
Nish Nishant20-Aug-10 6:29
sitebuilderNish Nishant20-Aug-10 6:29 
AnswerRe: Use of managed variables in non-ref class Pin
slawomir_orlowski29-Aug-10 21:15
slawomir_orlowski29-Aug-10 21:15 
GeneralRe: Use of managed variables in non-ref class Pin
KlaasVersteeg29-Aug-10 21:21
KlaasVersteeg29-Aug-10 21:21 
QuestionHelp with Angle Rotations pls.. Pin
lgmanuel19-Aug-10 20:42
lgmanuel19-Aug-10 20:42 
AnswerRe: Help with Angle Rotations pls.. Pin
Luc Pattyn20-Aug-10 2:00
sitebuilderLuc Pattyn20-Aug-10 2:00 
QuestionHow to create a .resx file in windows forms application (VS2005) Pin
roshihans10-Aug-10 10:17
roshihans10-Aug-10 10:17 
QuestionGenerating Runtime code(structs,classes) in C++/CLI Pin
glitteringsound6-Aug-10 5:03
glitteringsound6-Aug-10 5:03 
AnswerRe: Generating Runtime code(structs,classes) in C++/CLI Pin
N a v a n e e t h6-Aug-10 8:03
N a v a n e e t h6-Aug-10 8:03 
glitteringsound wrote:
e.g I have read data from an XML file i.e BSTR field1,BSTR field2,BSTR field3,BSTR field4,BSTR field5,long field6


I don't think creating types at runtime is the correct way to do this. You should try to design your types in such a way that it can hold the data coming from XML file.

For the example you have shown, I'd create a class which has a List which can hold all BSTR fields. If datatype of BSTR fields are not primitive, I'd create a separate type for BSTR and keep it in the above said list. Now if you have different data types for fields, you can keep a datatype identifier field which will tell you what type the value should be. This will help you to cast to the correct value before using.

Smile | :)
Best wishes,
Navaneeth

Questionnew line on Edit Control... Pin
lgmanuel1-Aug-10 14:35
lgmanuel1-Aug-10 14:35 
AnswerRe: new line on Edit Control... Pin
Richard MacCutchan1-Aug-10 21:37
mveRichard MacCutchan1-Aug-10 21:37 
AnswerRe: new line on Edit Control... Pin
Luc Pattyn2-Aug-10 1:12
sitebuilderLuc Pattyn2-Aug-10 1:12 
QuestionHelp need on Ip Helper functions example:GetUnicastIpAddressEntry. Pin
G Haranadh31-Jul-10 18:59
G Haranadh31-Jul-10 18:59 
QuestionMap file generation on VS2008 Pin
Member 225379327-Jul-10 19:25
Member 225379327-Jul-10 19:25 
AnswerRe: Map file generation on VS2008 Pin
N a v a n e e t h27-Jul-10 19:49
N a v a n e e t h27-Jul-10 19:49 
GeneralRe: Map file generation on VS2008 Pin
Member 225379327-Jul-10 20:22
Member 225379327-Jul-10 20:22 
GeneralRe: Map file generation on VS2008 Pin
Sauro Viti27-Jul-10 21:01
professionalSauro Viti27-Jul-10 21:01 
GeneralRe: Map file generation on VS2008 Pin
Member 225379327-Jul-10 21:12
Member 225379327-Jul-10 21:12 
GeneralRe: Map file generation on VS2008 Pin
Sauro Viti27-Jul-10 21:36
professionalSauro Viti27-Jul-10 21:36 
QuestionHow could I pass data from MFC application to .Net user control? Pin
Daniel Tong20-Jul-10 13:20
Daniel Tong20-Jul-10 13:20 
AnswerRe: How could I pass data from MFC application to .Net user control? Pin
Nish Nishant20-Aug-10 6:41
sitebuilderNish Nishant20-Aug-10 6:41 
Questionhow to save IHTMLElement of Tag IMG Pin
voo doo129-Jul-10 20:45
voo doo129-Jul-10 20:45 
QuestionIE BHO in C++/CLI? Pin
ddoutel8-Jul-10 3:15
ddoutel8-Jul-10 3:15 
AnswerRe: IE BHO in C++/CLI? Pin
ddoutel8-Jul-10 5:55
ddoutel8-Jul-10 5:55 
QuestionError declaring a class from the same namespace Pin
Lomedil7-Jul-10 0:17
Lomedil7-Jul-10 0:17 
AnswerSOLVED: Error declaring a class from the same namespace Pin
Lomedil7-Jul-10 1:13
Lomedil7-Jul-10 1:13 

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.