1,443 Posted Topics

Member Avatar for uva1102

I would not filter out records set "done" by the supervisor or manager because (seemingly) they would need to see if those records were marked. They should also need to ONLY see the "done" records so they know what to go verify. With that said, if you are asking how …

Member Avatar for thines01
0
137
Member Avatar for Kalle21

Did you delete your Main() method? I have reformatted the code and removed two lines. I did not add any functionality or correct anything other than making a Main() and making the methods static and removing the Console.ReadLine() calls that are causing you to need to press enter: [CODE] using …

Member Avatar for ddanbe
0
100
Member Avatar for Traps

There is no need to do that -- especially in C# and especially with the presence of Linq; If you have not yet discovered Linq (to objects) for querying inside your own code, you should investigate it. If you're just talking about the visual aspects, others have already addressed that …

Member Avatar for Traps
0
129
Member Avatar for JefferyWeb

It means move the "contents" of this address into the register (instead of the value of the address itself).

Member Avatar for thines01
0
171
Member Avatar for ahmed elweshahy

Start [URL="http://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/"]here[/URL]

Member Avatar for skatamatic
-2
154
Member Avatar for PixelatedKarma

If you add a reference to System.Xml.Linq int your project and include the namespace: [CODE]using namespace System::Xml::Linq;[/CODE] You can use an easier set of xml classes stemming from XDocument. [CODE] XDocument^ xd = XDocument::Load("c:/science/zuba_sheet.xml"); //Write all nodes for each(XNode^ xn in xd->Nodes()) { System::Diagnostics::Debug::WriteLine(xn->ToString()); } [/CODE] Then you can have …

Member Avatar for thines01
0
223
Member Avatar for jt_murphree

If it's just text, it should not be a problem. Are you running into any binary characters? Would something like this also fail?: [CODE] File.WriteAllLines(@"c:\science\out.txt", File.ReadAllLines(@"c:\science\data.txt")); [/CODE]

Member Avatar for jt_murphree
0
155
Member Avatar for sota

If you use Warning Level 4 and "all warnings as errors", you will reduce the risk significantly. Avoid direct casting between managed and unmanaged types.

Member Avatar for thines01
0
74
Member Avatar for sota
Member Avatar for Twistar

You can set the values of the enums so you never have a zero value. You can give each card a value that you want. You can have repeating values. You can cast the enums as integers or other numeric types.

Member Avatar for Twistar
0
282
Member Avatar for akpaga22

How can an online C# training exercise allow you to use any language? ...or is it: This is homework and you're learning C# online to solve it? ...doesn't matter as I will ask the same question: Which part is giving you a problem? Samples? Yes, there are multitudes of samples …

Member Avatar for AlexanderBell
0
197
Member Avatar for Dumb Fish

Also, you should set your compiler warnings at the highest level, that way (if it is a signed/unsigned problem) issues like this will appear at compile-time.

Member Avatar for thines01
0
166
Member Avatar for Cameronsmith63
Member Avatar for ahoysailor
Member Avatar for ahoysailor
0
211
Member Avatar for codechrysalis

I ran this and did not get an error. I would suggest a serious restructuring of the code, however. If you're allowed or accustomed, I would recommend the use of a Dictionary<string, double> to allow quick lookups without all of the looping. [CODE] var map_s2dZipCharges = new Dictionary<string,double> { {"32309", …

Member Avatar for skatamatic
0
168
Member Avatar for EBS.VivekGupta

Did you accidentally redirect some functions? ...or hide them? If you add a new button with a handler, does the code compile?

Member Avatar for skatamatic
0
526
Member Avatar for adhani85
Member Avatar for thines01
-2
171
Member Avatar for Desi991

[QUOTE=gusano79;1748517] It's not really necessary, unless you absolutely must use precompiled headers. I'm guessing you don't need them.[/QUOTE] If building a native app, it's not "necessary" For DotNet and MFC apps, it is necessary (unless you want to do a few work-arounds).

Member Avatar for thines01
0
238
Member Avatar for zachattack05

The best thing you can do is think about re-use of your code (and as mentioned consider stored procedures). You are the one who has to live with your code (for now) and your successor will have many questions. Write it in a way that serves you now and in …

Member Avatar for zachattack05
0
155
Member Avatar for C++ programmer

You will never regret learning it. You might always regret NOT learning it. The first time I saw Hungarian notation, I found it intimidating until I realized how much it helped (if the coder maintained the standard). I still use a modified rendition of it in every language I use …

Member Avatar for thines01
0
254
Member Avatar for preeti anand

That will really depend on the data types. So, look at this example where I have a list of strings and a list of integers that I want to connect. I can simply do a foreach (or something else) to match them one-to-one. It really depends on how the data …

Member Avatar for thines01
0
104
Member Avatar for DaniFollower

1) What does it do when you open an existing project? 2) Can you create a new one after that error goes away? 3) Is a Network Drive involved? [If all else fails] Can you re-install?

Member Avatar for thines01
0
45
Member Avatar for ahoysailor

Narrowing this down to the specific question, here is technique 1: [CODE] #include "stdafx.h" using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; int main(array<System::String ^> ^args) { // Just some list... List<String^>^ lst_strData = Enumerable::ToList<String^>( gcnew array<String^>{"New Mexico", "Paul Newman", "Noobie", "Spiro Agnew"});//whatever... for each(String^ str in lst_strData) { …

Member Avatar for thines01
0
239
Member Avatar for Rajbeer
Member Avatar for C++ programmer

It's just another environment where you can choose to take advantage of the benefits. The same concept applies to other operating systems and operating environments like Unix/Linux, DOS, Dot Net, JVM, Apple, Mobile (Android, Windows, iOS, WebOS), etc. Each environment has something for which it is well-suited.

Member Avatar for Ancient Dragon
0
142
Member Avatar for andur92

They could say it is false because the base class is not modified. It does not add functionality to the base class; it adds functionality to the class inheriting from the base class.

Member Avatar for mani-hellboy
0
205
Member Avatar for edfinley

You can create a custom class to hold a row of data then create a collection to hold all of the custom objects. Then you can traverse the data in any manner you wish without additional trips to the database (depending on the volume).

Member Avatar for mani-hellboy
0
74
Member Avatar for Johan__

I'm looking at this, but the first thing I see is a typo on line 44 (the semi-colon). Also the closing brace on 19 needs to be moved to 47 or 49. Also, C# is case-sensitive, so your numOfInPut should match the case of NumOfInPut. ...and if this was meant …

Member Avatar for mani-hellboy
0
94
Member Avatar for Kalle21
Member Avatar for jbutardo

Since I see you have some experience generating an Excel file from VB.NET, I'll just post the "meat" [CODE] Dim wb As Workbook = excel.Workbooks.Add(Type.Missing) Dim ws As Worksheet = wb.Worksheets(1) Dim rowCurrent As Range = ws.Rows(1, Missing.Value) CType(rowCurrent.Cells(1, 1), Range).Value2 = "Name" CType(rowCurrent.Cells(1, 2), Range).Value2 = "Age" CType(rowCurrent.Cells(1, 3), …

Member Avatar for jbutardo
0
1K
Member Avatar for markdean.expres

You can use the FileInfo class or the FileAttribute. FileInfo has most of what you'll be looking for. [CODE] Imports System.IO Module Module1 Sub Main() Dim strInFile As String = "c:\science\test.txt" Dim fa As FileAttribute = File.GetAttributes(strInFile) Dim fi As New FileInfo(strInFile) End Sub End Module [/CODE]

Member Avatar for markdean.expres
0
372
Member Avatar for Dragennd

Can you load the entire file into memory? If so, load the whole thing - skip or eliminate the data you don't want - rewrite the file.

Member Avatar for Dragennd
0
2K
Member Avatar for techunk

What type of input are you looking for? Is there a specific question you have about something you've started? Is there a general question about what technology to use?

Member Avatar for skatamatic
0
728
Member Avatar for amir808
Member Avatar for amir808
0
112
Member Avatar for Karlwakim

Yes, if you control the server, you can. You can call the executable from a CGI or ASP or other just as you would spawn any other executable. You will need to adhere to the rules of the operating system for the given user account running under the server.

Member Avatar for Karlwakim
0
121
Member Avatar for anuj.juthani

[Way-back in memory] If you assign the control a variable, you can write to it directly. ...if you attach a CString to the control -- naming it strData, you can issue a command like strData = { converting the double to a string and placing it here. }

Member Avatar for thines01
0
994
Member Avatar for cdea06

1) pass the dates to a function 2) evaluate failures first and call return false from the function early-on --- this eliminates the use of "else" and can remove some of the nesting.

Member Avatar for WaltP
0
146
Member Avatar for xtinab
Member Avatar for Axladrian

Looks like you're missing a closing parenthesis right before the word VALUES ...or that it's inside the ] bracket instead of outside.

Member Avatar for Axladrian
0
97
Member Avatar for MrEARTHSHAcKER
Member Avatar for MrEARTHSHAcKER
0
153
Member Avatar for shotokanpoloto

Did you look up split()? [url]http://www.rgagnon.com/javadetails/java-0438.html[/url]

Member Avatar for shotokanpoloto
0
224
Member Avatar for behrad kiani

Can you accept a String then convert the characters to ASCII? They can still be digits or they can be any char (if that's allowed) Example: [CODE] import java.util.Scanner; public class StringToAsciiCodes { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.print("Enter your specefic bytes(maximum 8 digits to show …

Member Avatar for JamesCherrill
0
325
Member Avatar for Hawk123

You're mixing DataGrid with DataGridView. DataGridView does not have a .TableStyles property

Member Avatar for Hawk123
0
531
Member Avatar for lianpiau

If I understand correctly, here is a console version of what you're attempting. It makes the assumption that every record has the potential of a different split based on the number of items per package dividing the total items in the order. It does a Math.Ceiling() to determine how many …

Member Avatar for thines01
0
182
Member Avatar for Despairy

[URL="http://www.codeproject.com/Articles/18314/Static-Initialization-Function-in-Classes"]Here is[/URL] another example. I tried it and it works.

Member Avatar for Ancient Dragon
0
260
Member Avatar for themenucha

All this really needs is a little reformatting and an understanding that you've already defined the board, just go to the position. Also, since you had the constants alread defined, I used them and then changed them to #define to remove the memory consumption. I did not validate the positions …

Member Avatar for themenucha
0
354
Member Avatar for sujimon

What error did you get? Were you trying to do this with code or just do it? ...or did you just want that stored proc for SQL Server converted? The last time I created a stored proc with code, I used something like this: [CODE=SQL] "create proc InsTestNum2(inTestNum) AS INSERT …

Member Avatar for thines01
0
185
Member Avatar for jonnyboy12
Member Avatar for s3ttt

Assuming you're just trying to write to a file... [CODE] using System; using System.IO; namespace DW_408731_CS_CON { class Program { static void Main(string[] args) { string[] arr_strData = { "230", "", ".01;.02;.03", "IPB", "10", "", "", "", "", "" }; string strTempFile = Path.GetTempFileName(); Console.WriteLine("Writing all lines to: " + …

Member Avatar for thines01
0
193
Member Avatar for Ggalla1779

The End.