1,443 Posted Topics
Re: Why do you have that extra loop in the process? [CODE] //UNTESTED, but should look something like this: int i=0; while (reader->Read()) { y_k[i,1] = Convert::ToInt32(reader["id"]->ToString()); y_k[i,2] = Convert::ToInt32(reader["red"]->ToString()); y_k[i,3] = Convert::ToInt32(reader["gren"]->ToString()); y_k[i,4] = Convert::ToInt32(reader["blue"]->ToString()); i++; } [/CODE] | |
Re: Solution 1: Use a different compiler Solution 2: Get over it It really depends on the type of project you're making. The precompiled header will take up a lot of space, too. Those "plumbing" files are not necessary for deployment, but really help compilation and debugging. If you're making a … | |
Re: FAT and NTFS -- only because it's all I [I]really[/I] know (and for no other reason). | |
Re: You need a Client to call that method that was written in VB? If so, and you have the dll of that assembly: Did you add it as a reference in your C++ project? | |
Re: Well, what is on line 33 of main.cpp? | |
Re: If you re-direct the return values to a plain file, are they present? What are the possible things that could keep values from showing on the report? Without seeing the code, it's hard to tell what could be wrong. So, at this point, you will need to do the step-by-step … | |
Re: [QUOTE]The above code while validating when adding new data is working, but while updating its not working.[/QUOTE] You posted everything except the code that's giving you the problem. Where is the [B]UpdateCMD[/B] code? The other part of this is very misleading. Based on your message title and your opening sentence, … | |
Re: What are the rules on the data you want kept? From what I see it's: 1) Delete the header 2) Ignore ALL punctuation (except asterisk * ) 3) Ignore all text after the last parenthesis 4) If it contains "output" also ignore the last field Is that correct? | |
Re: You could do this: [CODE] using System; using System.Diagnostics; using System.IO; namespace DW_404824_CS_CON2 { class Program { static void Main(string[] args) { MemoryStream fileMem = new MemoryStream(new byte[] {5,1,2,3,4}); int i = 0; while (-1 != (i = fileMem.ReadByte())) { //Console.WriteLine(i); Trace.WriteLine(i); } fileMem.Close(); } } } [/CODE] | |
Re: Here is an example of calling a delegate (from a console app) [I]without[/I] invoking an event handler. This example shows a call to the method ProcessSomething. There are two instances where delegates are in play 1) Where todaysMethod is set 2) Where ProcessSomething() calls the display method [CODE] using System; … | |
Re: The compiler sould be giving you a specific exception to catch or a specific object that needs its creation checked, right? | |
Re: @shandoosheri, have you tried it? I'm interested in this, too. | |
Re: Do you have a code sample that is failing? You can use the .Count property or (if you're using Linq) the .Any() method. [CODE] using System; using System.Collections.Generic; using System.Linq; namespace DW_404932_CS_CON { class Program { static void Main(string[] args) { Stack<string> stk_str = new Stack<string>(20); string strData = ""; … | |
Re: Is the first line 13 supposed to be return fTeam (instead of fTeams)? Also, what error are you getting? | |
Re: is the data you are looking for in random locations horizontally? If not, you can create a structure of just the key elements and the offset in the file. Then after you've found your key element, you can "seek" back to the location that contains your target row. This still … | |
Re: You need to create method bodies for GeometricObject::getArea() and GeometricObject::getPerimeter(). | |
Re: You can press F9 to set a breakpoint on a particular line of code. You can also right-click the element and "Add Watch" to see the results in action for a particular variable or object. Is that what you meant? | |
Re: Did you mean for the parameter called "array" to be just an integer or an actual int[]? | |
Re: [url]http://www.oracle.com/technetwork/java/compile-136656.html[/url] | |
Re: You can/should as the customer what he/she wants. To add to that, you can also make a demo of the software then ask the customer what changes are required. Document all changes. | |
Re: After "char name[66]", you need a semi-colon ; ...not a pipe ¦ | |
Re: [ODBC Flavored] If you have the .accdb or just the .mdb, you only need the driver to be installed. If you're on Windows, you can configure the DSN in the ODBCAdministrator. Control Panel -> Administrative Tools -> Odbc Administrator Set up a DSN that points to the file in whatever … | |
Re: The input data seems to be wrapped. Is that correct? So there are really only 11 lines of data and two header lines? | |
Re: The most active area I've seen with J# [URL="http://social.msdn.microsoft.com/forums/en-US/visualjsharpgeneral/threads/"]is here[/URL], but it still looks like a Ghost Town. [URL="http://msdn.microsoft.com/en-us/vjsharp/default.aspx"]Official site is here[/URL] For me, there are so many [I]supported[/I] languages available on the platform that I wouldn't want to learn any more about it than I already know (very little). | |
Re: Are you familiar with connecting to databases without using the designer? | |
Re: Your else clause needs some braces. [CODE] else { //code goes here. }[/CODE] | |
Re: You would get that value if RoD is ZERO ( 0 ). | |
Re: It creates directories (or folders). If you tell it Directory.CreateDirecy("c:\\science\\data"), it will make both the science and the data directories if necessary. | |
Re: Here are some things to contemplate: [CODE] private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { dataGridView1->Columns->Add("asdf", "myASDF"); // set the column width dataGridView1->Columns[0]->Width = 444; // Add some rows for (int i = 0; i < 3; i++) { dataGridView1->Rows->Add(); dataGridView1->Rows[i]->Cells[0]->Value = "adsf " + i.ToString(); } // Change the header … | |
Re: Did you transfer the contents of the labels into the file that is written? If not, as you write the HTML file, use the HTML as a string and replace or insert your label data where it should go, then save the file. The values from the lables are contained … | |
Re: [URL="http://www.amazon.com/Java-Dummies-Barry-Burd/dp/0470371730/ref=sr_1_1?ie=UTF8&qid=1325426729&sr=8-1"]Java For Dummies[/URL] is decent. Two weeks is a reasonable amount of time if that's all you have :) If you have good technique, it might take you a couple of days. If you need to research every command, it might take the full two weeks. Start immediately. | |
Re: This will get you started, but you'll probably need to narrow it down to device type. [CODE] using System; using System.Management; //ALSO add this as a DLL reference // namespace DW_404430 { class Program { static void Main(string[] args) { string strScope = @"\\.\root\cimv2"; string strQuery = "Select * FROM … | |
Re: Is there a question? Always start with the first error. If there is some un unused code you have that you will need later but it's causing a problem now, comment it out and re-compile. | |
Re: Let's say you have a directory c:\science with some .txt files in it. You can put a DataGridView on your form and fill it like this: [CODE] using System; using System.IO; using System.Linq; using System.Windows.Forms; namespace DW_404491_CS_FORM { public partial class Form1 : Form { public Form1() { InitializeComponent(); } … | |
Re: I would give an explicit path to the .xml file. You're trusting the program to use "current directory" to load the file, but that could be failing you. I would first modify this: [CODE]XDocument FaultTreeXML = XDocument.Load("c:/science/somwhwere/testtrees.xml");[/CODE] | |
Re: What operating system? Do you have an idea of the type of app you'd like to create? | |
Re: Use a System.Net.WebClient. Call OpenRead() to get a stream. Use string parsing to extract the data you want from the HTML. | |
Re: I would use the command-line or create a batch file depending on the size of the job. [url]http://java.sun.com/developer/Books/javaprogramming/JAR/basics/build.html[/url] [url]http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/jar.html[/url] | |
Re: You can split the program into two functions -- When it is run once, it sets the values When it is run again, it unsets the values. | |
![]() | Re: What about an actual [URL="http://msdn.microsoft.com/en-us/library/f7fta44c.aspx"]SortedDictionary[/URL] already built-in? ![]() |
Re: I suggest you try this: [URL="http://www.example-code.com/vcpp/http_get_parse.asp"]HTTP GET - Download and Parse HTML[/URL] | |
Re: I've never done this, but it looks like you need to issue a String[] with the command as the first string and the parameters as additional strings in the array. [url]http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Runtime.html[/url] | |
Re: Too many to name, but here's one: [url]http://msdn.microsoft.com/en-us/vstudio/hh341490[/url] | |
| |
Re: First things first: Why are you trying to open a .lnk file? Why don't you just open what it points to? | |
Re: If it works, [B]don't convert it[/B]; just make it a class library and you can call it from any .NET language (including PowerShell). This is .NET, so take advantage of it. |
The End.