1,443 Posted Topics

Member Avatar for smurfy

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]

Member Avatar for thines01
0
157
Member Avatar for aashishsatya

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 …

Member Avatar for thines01
0
194
Member Avatar for mikulucky
Member Avatar for thines01
0
133
Member Avatar for kkevinnnn

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?

Member Avatar for thines01
0
111
Member Avatar for Hawkpath
Member Avatar for surferxo3

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 …

Member Avatar for surferxo3
0
188
Member Avatar for tashee2007

[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, …

Member Avatar for tashee2007
0
222
Member Avatar for akshatha.ullur
Member Avatar for tcl76

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?

Member Avatar for tcl76
0
224
Member Avatar for saneeha.nust

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]

Member Avatar for saneeha.nust
0
121
Member Avatar for galhajaj

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; …

Member Avatar for thines01
0
146
Member Avatar for dennysimon

The compiler sould be giving you a specific exception to catch or a specific object that needs its creation checked, right?

Member Avatar for dennysimon
0
2K
Member Avatar for Andy90
Member Avatar for shandoosheri
0
585
Member Avatar for baby_c

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 = ""; …

Member Avatar for thines01
0
4K
Member Avatar for bangor_boy

Is the first line 13 supposed to be return fTeam (instead of fTeams)? Also, what error are you getting?

Member Avatar for bangor_boy
0
195
Member Avatar for Kanoisa

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 …

Member Avatar for Kanoisa
0
1K
Member Avatar for FEC

You need to create method bodies for GeometricObject::getArea() and GeometricObject::getPerimeter().

Member Avatar for Kanoisa
-1
381
Member Avatar for Tipples

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?

Member Avatar for skatamatic
0
217
Member Avatar for doma18

Did you mean for the parameter called "array" to be just an integer or an actual int[]?

Member Avatar for pseudorandom21
0
243
Member Avatar for ujjwal koirala
Member Avatar for thines01
-3
37
Member Avatar for Lotus_2011
Member Avatar for bettybarnes

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.

Member Avatar for harinath_2007
0
190
Member Avatar for cvanithakpm

After "char name[66]", you need a semi-colon ; ...not a pipe ¦

Member Avatar for zeroliken
0
100
Member Avatar for Mr.BunyRabit

[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 …

Member Avatar for Mr.BunyRabit
0
804
Member Avatar for sunmania

The input data seems to be wrapped. Is that correct? So there are really only 11 lines of data and two header lines?

Member Avatar for dmanw100
0
2K
Member Avatar for lxXTaCoXxl

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).

Member Avatar for thines01
0
88
Member Avatar for Macksh
Member Avatar for sansalama

Your else clause needs some braces. [CODE] else { //code goes here. }[/CODE]

Member Avatar for adityatandon
0
122
Member Avatar for the_kitoper
Member Avatar for kshahnazari

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.

Member Avatar for kshahnazari
0
95
Member Avatar for thinkingofaname

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 …

Member Avatar for thines01
0
150
Member Avatar for SindhujaNagaraj
Re: C#

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 …

Member Avatar for SindhujaNagaraj
0
103
Member Avatar for rhfh

[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.

Member Avatar for rhfh
0
122
Member Avatar for suneye

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 …

Member Avatar for suneye
0
86
Member Avatar for Wolter888

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.

Member Avatar for thines01
0
419
Member Avatar for shandoosheri

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(); } …

Member Avatar for thines01
0
713
Member Avatar for climberboy

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]

Member Avatar for lxXTaCoXxl
0
753
Member Avatar for Karlwakim

What operating system? Do you have an idea of the type of app you'd like to create?

Member Avatar for LRRR
0
152
Member Avatar for pritiB

Use a System.Net.WebClient. Call OpenRead() to get a stream. Use string parsing to extract the data you want from the HTML.

Member Avatar for thines01
0
185
Member Avatar for sehaar
Member Avatar for dennysimon

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]

Member Avatar for dennysimon
0
146
Member Avatar for agent154

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.

Member Avatar for agent154
0
1K
Member Avatar for Unhnd_Exception

What about an actual [URL="http://msdn.microsoft.com/en-us/library/f7fta44c.aspx"]SortedDictionary[/URL] already built-in?

Member Avatar for Unhnd_Exception
0
2K
Member Avatar for chhabraamit

I suggest you try this: [URL="http://www.example-code.com/vcpp/http_get_parse.asp"]HTTP GET - Download and Parse HTML[/URL]

Member Avatar for thines01
0
530
Member Avatar for Jessurider

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]

Member Avatar for thines01
0
282
Member Avatar for websoftcreation
Member Avatar for thines01
0
43
Member Avatar for gingank

Too many to name, but here's one: [url]http://msdn.microsoft.com/en-us/vstudio/hh341490[/url]

Member Avatar for budbjames
0
162
Member Avatar for tobby501
Member Avatar for tobby501
0
132
Member Avatar for adityatandon

First things first: Why are you trying to open a .lnk file? Why don't you just open what it points to?

Member Avatar for adityatandon
0
900
Member Avatar for lxXTaCoXxl

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.

Member Avatar for lxXTaCoXxl
0
193

The End.