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

Managed C++/CLI

 
AnswerRe: System::String ^ to LPCWSTR conversion? Pin
Mark Salsbery7-Jan-10 12:56
Mark Salsbery7-Jan-10 12:56 
GeneralRe: System::String ^ to LPCWSTR conversion? Pin
Mattzimmerer7-Jan-10 22:01
Mattzimmerer7-Jan-10 22:01 
QuestionHow to Get DataTable column name ?? [modified] Pin
ajaxswan6-Jan-10 18:18
ajaxswan6-Jan-10 18:18 
AnswerRe: How to Get DataTable column name ?? Pin
Andreoli Carlo19-Jan-10 2:30
professionalAndreoli Carlo19-Jan-10 2:30 
Questionhow to declare array of object [modified] Pin
m_mun6-Jan-10 1:02
m_mun6-Jan-10 1:02 
AnswerRe: how to declare array of object Pin
Luc Pattyn6-Jan-10 2:51
sitebuilderLuc Pattyn6-Jan-10 2:51 
AnswerRe: how to declare array of object Pin
Dave Doknjas6-Jan-10 11:45
Dave Doknjas6-Jan-10 11:45 
GeneralRe: how to declare array of object Pin
SteelModule28-Jul-10 5:06
SteelModule28-Jul-10 5:06 
Hello, I have another problem:

I would like to use ArrayList for collecting of unknown number of System::Drawing::Point structures. But I´m not able to use it in some GDI+ drawing functions feg. Graphics::DrawCurve(...). It forces me to use cli::array<point>, it is totally ugly, I ended up with something like this:

// Dynamic array
ArrayList^ arr = gcnew ArrayList;
// Add some test data
arr->Add(Point(0, 0));
arr->Add(Point(25, 25));
arr->Add(Point(50, 75));
arr->Add(Point(75, 100));
.
.
arr->Add(Point(225, 325));

// Somewhere prior drawing...
array<Point>^ pt = gcnew array<Point>(arr->Count);
for(int i = 0; i < arr->Count; i++)
  pt[i] = (Point)arr[i];

// Actual drawing...
g->DrawCurve(pen, pt);


It works, but... Is there a better way to do something like this? I'm sure I'm wrong, but I learn C++/CLI about an hour Smile | :) . There are no such problems if I use GDI+ in Win32 API, MFC...
GeneralRe: how to declare array of object Pin
Dave Doknjas28-Jul-10 5:20
Dave Doknjas28-Jul-10 5:20 
GeneralRe: how to declare array of object Pin
SteelModule28-Jul-10 21:49
SteelModule28-Jul-10 21:49 
QuestionDATASET to sqlite.net Pin
ajaxswan4-Jan-10 15:38
ajaxswan4-Jan-10 15:38 
QuestionSystem::String ^ to LPCVOID conversion? [modified] Pin
Mattzimmerer2-Jan-10 10:42
Mattzimmerer2-Jan-10 10:42 
AnswerRe: System::String ^ to LPCVOID conversion? Pin
Richard MacCutchan2-Jan-10 22:04
mveRichard MacCutchan2-Jan-10 22:04 
Questioncoding help Pin
helawae31-Dec-09 19:52
helawae31-Dec-09 19:52 
AnswerRe: coding help Pin
N a v a n e e t h1-Jan-10 3:03
N a v a n e e t h1-Jan-10 3:03 
GeneralRe: coding help Pin
helawae3-Jan-10 21:56
helawae3-Jan-10 21:56 
GeneralRe: coding help Pin
N a v a n e e t h7-Jan-10 18:06
N a v a n e e t h7-Jan-10 18:06 
GeneralRe: coding help Pin
helawae9-Jan-10 20:41
helawae9-Jan-10 20:41 
GeneralRe: coding help Pin
N a v a n e e t h10-Jan-10 3:11
N a v a n e e t h10-Jan-10 3:11 
QuestionVC C++ 2005 Error Create Register in clr form Pin
ajaxswan27-Dec-09 16:12
ajaxswan27-Dec-09 16:12 
AnswerRe: VC C++ 2005 Error Create Register in clr form Pin
Luc Pattyn28-Dec-09 1:26
sitebuilderLuc Pattyn28-Dec-09 1:26 
QuestionSyncronize Two ComboBox in visual c++ Pin
johnjitu22-Dec-09 23:40
johnjitu22-Dec-09 23:40 
AnswerRe: Syncronize Two ComboBox in visual c++ Pin
N a v a n e e t h23-Dec-09 20:08
N a v a n e e t h23-Dec-09 20:08 
QuestionC# send structure objects through socket Pin
ikurtz18-Dec-09 6:03
ikurtz18-Dec-09 6:03 
AnswerRe: C# send structure objects through socket Pin
Paulo Zemek18-Dec-09 8:29
mvaPaulo Zemek18-Dec-09 8:29 

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.