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

Managed C++/CLI

 
GeneralRe: loop through comboboxes Pin
voo doo125-Jun-10 6:12
voo doo125-Jun-10 6:12 
GeneralRe: loop through comboboxes Pin
KlaasVersteeg7-Jun-10 1:17
KlaasVersteeg7-Jun-10 1:17 
GeneralRe: loop through comboboxes Pin
KlaasVersteeg7-Jun-10 1:19
KlaasVersteeg7-Jun-10 1:19 
GeneralRe: loop through comboboxes Pin
KlaasVersteeg7-Jun-10 1:23
KlaasVersteeg7-Jun-10 1:23 
GeneralRe: loop through comboboxes Pin
Richard Andrew x647-Jun-10 1:40
professionalRichard Andrew x647-Jun-10 1:40 
QuestionMultiple forms problem C++ / CLI Pin
Piotrekneo1830-May-10 13:53
Piotrekneo1830-May-10 13:53 
AnswerRe: Multiple forms problem C++ / CLI Pin
Andreoli Carlo3-Jun-10 22:35
professionalAndreoli Carlo3-Jun-10 22:35 
GeneralRe: Multiple forms problem C++ / CLI Pin
Piotrekneo184-Jun-10 3:59
Piotrekneo184-Jun-10 3:59 
Thanks for the reply !

Yes of course I usually write #ifndef ect. definition into header files, but it's not a problem with this... main issue of this is in the namespace... because my major project is in C++ CLI how's You know isn't the same what is pure C++ ( unmanaged probably ) so, i'm not able to declare object of pure class ( example : class Test; and in managed class : ref class { ... public : Test object; ) i understand how can i resolve this problem -> i should declare pointer of unmanaged class : Test *object into managed class. But unfortunately my supervisor ( he hasn't seen my project yet ) wants or requires use auto_ptr ( because of memory leak ) , so i use this "intelligent" pointer in namespace area :

namespace TestSpace
{
auto_ptr<test> object;

ref class ClassTest
{
object->...

};
}

and it works,
but main problem is when i compile this code , and i have main order with header files same to You , 'm receiving information about the same or two definitions ( already defined ). I noticed that i haven't this problem if i don't use or i don't declare all of objects , variables in namespace like above... i think it's because of declarations in namespace , Ideal solution would be place declarations into ref class and i think it won't be compile error , but how's i said unfortunately we can't declare auto_ptr in ref class because of unmanaged and managed code error , and this is infinite loop... if i hadn't seen on my supervisior i would have written this with usual pointers ... : Test *object in ref class and no problem for me... but i can't imagine what would be if my teacher see this solution...

Of course if you don't find any more precisely solution , i'll do this with convenient linker option : /FORCE and i don't see this error... but You know... it's just like an strong solution...

Thanks for help
QuestionBatch Help: Delete Oldest File Pin
See_Sharp28-May-10 10:56
See_Sharp28-May-10 10:56 
AnswerRe: Batch Help: Delete Oldest File Pin
Luc Pattyn28-May-10 11:32
sitebuilderLuc Pattyn28-May-10 11:32 
GeneralRe: Batch Help: Delete Oldest File Pin
See_Sharp31-May-10 4:52
See_Sharp31-May-10 4:52 
GeneralRe: Batch Help: Delete Oldest File Pin
Luc Pattyn31-May-10 5:04
sitebuilderLuc Pattyn31-May-10 5:04 
QuestionHow do I make a managed c++ struct that will be usable in c# as an array, while still being able to be passed to unmanaged c++ as an array? Pin
544d4e27-May-10 7:42
544d4e27-May-10 7:42 
AnswerRe: How do I make a managed c++ struct that will be usable in c# as an array, while still being able to be passed to unmanaged c++ as an array? [modified] Pin
Paul Michalik3-Jun-10 2:35
Paul Michalik3-Jun-10 2:35 
QuestionSerialization problem Pin
roshihans20-May-10 21:05
roshihans20-May-10 21:05 
Questiona little help ,find a word from text Pin
Gilbertu19-May-10 10:43
Gilbertu19-May-10 10:43 
AnswerRe: a little help ,find a word from text Pin
Luc Pattyn19-May-10 14:05
sitebuilderLuc Pattyn19-May-10 14:05 
AnswerRe: a little help ,find a word from text Pin
T210215-Jun-10 21:26
T210215-Jun-10 21:26 
QuestionGet the button click event from another form Pin
rikterveen18-May-10 20:46
rikterveen18-May-10 20:46 
GeneralRe: Get the button click event from another form Pin
Andreoli Carlo18-May-10 21:56
professionalAndreoli Carlo18-May-10 21:56 
GeneralRe: Get the button click event from another form Pin
rikterveen20-May-10 7:16
rikterveen20-May-10 7:16 
AnswerRe: Get the button click event from another form [modified] Pin
Andreoli Carlo20-May-10 23:14
professionalAndreoli Carlo20-May-10 23:14 
GeneralRe: Get the button click event from another form Pin
rikterveen27-May-10 20:44
rikterveen27-May-10 20:44 
GeneralRe: Get the button click event from another form Pin
Andreoli Carlo31-May-10 12:01
professionalAndreoli Carlo31-May-10 12:01 
AnswerRe: Get the button click event from another form Pin
voo doo125-Jun-10 6:24
voo doo125-Jun-10 6:24 

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.