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

Managed C++/CLI

 
GeneralRe: Compiling error for Clipboard.SetDataObject(). [modified] Pin
robert tian guo23-May-06 14:32
robert tian guo23-May-06 14:32 
GeneralRe: Compiling error for Clipboard.SetDataObject(). [modified] Pin
George L. Jackson24-May-06 3:15
George L. Jackson24-May-06 3:15 
QuestionHow Can I play the music on my game Pin
Squallkin8423-May-06 4:08
Squallkin8423-May-06 4:08 
QuestionProto type mismatch Pin
satsumatable22-May-06 23:57
satsumatable22-May-06 23:57 
QuestionReading memory Pin
satsumatable22-May-06 17:32
satsumatable22-May-06 17:32 
QuestionCreating new managedObject[100] in C++ Pin
StevenS_Dev22-May-06 12:35
StevenS_Dev22-May-06 12:35 
AnswerRe: Creating new managedObject[100] in C++ Pin
George L. Jackson23-May-06 2:01
George L. Jackson23-May-06 2:01 
GeneralRe: Creating new managedObject[100] in C++ Pin
StevenS_Dev23-May-06 7:38
StevenS_Dev23-May-06 7:38 
Thanks for the idea. I got the following compiler error:

error C3159: 'Point' : array of pointers to value type cannot be declared

But your advice led me to the right answer. This worked:

System::Drawing::Point thePoints[] = new System::Drawing::Point[200];

As a result, I am now able to create my set of points in C++ and then have my C# Form aware of these as shown below. The method LookAtThePoints is simply a way I can quickly look at the point data and be sure what I created was successful in the C# Form.

<br />
System::Drawing::Point thePoints[] = new System::Drawing::Point[200];<br />
for (int i = 0; i < 200; i++)<br />
{<br />
   thePoints[i] = System::Drawing::Point(i, i);<br />
}<br />
SimplePanel::Form1* theForm = new SimplePanel::Form1();<br />
theForm->rawPoints = thePoints;<br />
theForm->LookAtThePoints();<br />


I am doing this because we currently have an MFC application which converts laser data to 2D/GDI points. I want to start using C# Forms, so I am looking at ways I can begin creating new Views/Windows with C# and maintain our MFC app.

Thanks again for the help. It got me on the right path.
QuestionOverriding void Dispose(bool disposing) in C++/CLI? Pin
Filip Strugar20-May-06 14:37
Filip Strugar20-May-06 14:37 
AnswerRe: Overriding void Dispose(bool disposing) in C++/CLI? [modified] Pin
George L. Jackson20-May-06 15:44
George L. Jackson20-May-06 15:44 
AnswerRe: Overriding void Dispose(bool disposing) in C++/CLI? Pin
Dave Doknjas20-May-06 19:25
Dave Doknjas20-May-06 19:25 
GeneralRe: Overriding void Dispose(bool disposing) in C++/CLI? Pin
Filip Strugar22-May-06 22:34
Filip Strugar22-May-06 22:34 
GeneralRe: Overriding void Dispose(bool disposing) in C++/CLI? Pin
George L. Jackson23-May-06 1:57
George L. Jackson23-May-06 1:57 
GeneralRe: Overriding void Dispose(bool disposing) in C++/CLI? Pin
Dave Doknjas23-May-06 12:31
Dave Doknjas23-May-06 12:31 
QuestionMixing native and managed code Pin
Saurabh.Garg19-May-06 18:44
Saurabh.Garg19-May-06 18:44 
AnswerRe: Mixing native and managed code Pin
georgeraafat23-May-06 12:50
georgeraafat23-May-06 12:50 
QuestionSerialization Issue with Int32 Pin
jmlstele19-May-06 9:51
jmlstele19-May-06 9:51 
AnswerRe: Serialization Issue with Int32 Pin
georgeraafat23-May-06 13:17
georgeraafat23-May-06 13:17 
GeneralRe: Serialization Issue with Int32 Pin
jmlstele29-May-06 1:22
jmlstele29-May-06 1:22 
QuestionUndocumented problem with for each Pin
jmlsteele19-May-06 9:14
jmlsteele19-May-06 9:14 
GeneralRe: Undocumented problem with for each Pin
jmlstele19-May-06 9:18
jmlstele19-May-06 9:18 
AnswerRe: Undocumented problem with for each Pin
Nish Nishant19-May-06 10:10
sitebuilderNish Nishant19-May-06 10:10 
QuestionIs it possible to write a parser which will find.... Pin
SasikumarRenjith19-May-06 1:23
SasikumarRenjith19-May-06 1:23 
AnswerRe: Is it possible to write a parser which will find.... Pin
Cedric Moonen19-May-06 3:54
Cedric Moonen19-May-06 3:54 
QuestionHow do I Convert Struct to ByteArray in .net 2005 Pin
ShayD118-May-06 6:32
ShayD118-May-06 6:32 

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.