Hi, Let me preface this by saying I'm about 4 days into learning MSVC++ 2010. I just need a little program that takes in a string, puts it in an array and I'd really like it to display it on the screen as the data comes in (1089 strings per frame, about 30fps). But I'm starting small by building a little dynamic array, then hopefully displaying it via the datagridview? I'm having some issues with the managed string versus standard string. I did try reading other forms, I guess I'm just not getting it. Here's what I have: ` #include …

Member Avatar
Member Avatar
+0 forum 1

Hi there! I am new to daniweb.com and C++ CLI. I am trying to make a program that will tell the user the text for the ListItem number they type in. The ListItem information is stored in a text file with my custom file formatting, which is: <~ListItem 1> text.... <~EndOf 1> <~ListItem 2> text.... <~EndOf 2> etc. I have been thinking of a strategy for days, but I can't find out anything. Thank you very much in advanced!

Member Avatar
Member Avatar
+0 forum 3

Dear all, Any advice on this matter would be greatly received. We are a web development team and have experienced so many problem with dedicated servers going down, being hacked on a public cloud and just general loss of faith in the hosting world. We need a solution to our hosting problems that will give us a 100% uptime. What are the best ways of achieving this? My research has led me to Private Clouds or Dedicated Server mirroring. None of us have server expertise so the solution has to be managed. If you know any one who is a …

Member Avatar
Member Avatar
+0 forum 3

Hi All. I am working on a program where I need help to convert a managed strinf type to unamanaged string to send as argument to function. Any help would be highly appreciated.

Member Avatar
Member Avatar
+0 forum 7

Hi, I want to search a managed list, List<String^>^ list, for a variable substring (i.e. the substring changes it's contents every time it is looped). The list is populated by a Unicode (UTF-16LE) text file. The substring to be searched for is basically an ID for the Strings that occurs at the beginning of each String (the second half of the string is unknown), so I loop through and search the List for a different ID each time (i.e. IDS_STRING1, IDS_STRING2 etc.) The idea being that if it doesn't yet exist, I write it to file. I can declare the …

Member Avatar
Member Avatar
+0 forum 2

Am setting up a remote access server in an environment that includes a DellConnect 2824. This office was 'given' this device, no documentation. Problems: 1) I have downloaded the manual and read it, but have not been able to access the device to get into the management. Am planning to use the web interface. Any advice on specific port(s) to use, IP discovery, etc? It does appear some port(s) are disabled so this is in managed mode of some sort. 2) I am not finding references to UPnP in the manual and am hoping that works (as it is easier …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I've created an object array from a managed class. [CODE] array<MyDataType_Class^> ^Object = gcnew array <MyDataType_Class^> (3); Object[1] = gcnew MyDataType_Class; Object[1]->id = 1; Object[1]->surnmame = "Foo"; TextBox1->AppendText(ConvertToString(Object[1]->surname)); // Outputs "Foo" [/CODE] The object works well and outputs expected results. However what i need is : [U]Calling or using this data type in some other custom functions[/U] P.S Referred class above [CODE] public ref class MyDataType_Class // managed class { public: int id; String ^surnmame; MyDataType_Class() : id(0),surname(""){} } [/CODE] Thanks a lot.

Member Avatar
Member Avatar
+0 forum 1

Hi everyone, I'm trying to pass data to managed object arrays. In this case i got no errors also no correct output. So what's wrong in the code below ? Please help. PS. This code writes " MyDataType" on textBox1 ??! [CODE] ******************* * MyDataType.h * ******************* using namespace System; public ref class MyDataType { private: public: // all are public ok int id; String ^name; MyDataType() : id(0) {} MyDataType(int value) : id(value) {} ~MyDataType() {} }; [/CODE] [CODE] private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { array<MyDataType ^> ^arrayObject = gcnew array <MyDataType ^> (5); arrayObject [0] = gcnew …

Member Avatar
Member Avatar
+0 forum 2

Hi all, to simplify my problem, I'll use a quick example. Imagine I have a class of 'Cat' which has accessors for things like 'name', 'colour' and 'height'. I then put these cats in a list [CODE]List<Cat^>^ catList;[/CODE] I want to be able to search this list based on the properties of the cats. e.g. "Find me the cat called 'Ginger'". I wish to use the List<T>::Find Method to perform this search. [URL="http://msdn.microsoft.com/en-us/library/x0b5b5bc(v=VS.90).aspx"]http://msdn.microsoft.com/en-us/library/x0b5b5bc(v=VS.90).aspx[/URL] Something along the lines of this c# line, but in c++.net [CODE]String catName = "Ginger"; Cat myLocatedCat = catList.Find(delegate(Cat c) {return c.Name == catName; });[/CODE] I tried …

Member Avatar
Member Avatar
+0 forum 1

I am a bit (well, actually a lot) confused with how exactly I should use the Dispose() method on SqlConnection object in C#. First let me tell you what I have learned so far (I've been reading a LOT on the subject for the past 24 hours, and I'm still confused) from what I read. SqlConnection is a managed object withing the .NET framework. HOWEVER, it uses unmanaged resources to implement the connection. Now, my program uses an SqlConnection, and I also am concerned about thread safety. It is a program that runs in collaboration with a service and the …

Member Avatar
Member Avatar
+0 forum 3

Hi all, I'm trying to create a method in [B]managed c++[/B] which will convert an int to a string representation of binary. I have done this in C# before, but I can't work out how to do it in Managed C++ Below is the code from my C# effort that worked. Scott [CODE] // This is C# Code public string intToBinary(int convertThis) { string converted = Convert.ToString(convertThis, 2); return converted; } [/CODE]

Member Avatar
Member Avatar
+0 forum 2

The End.