1,443 Posted Topics

Member Avatar for vivekanandaan
Member Avatar for iFrolox

Try something like this, where you read in the data one line at a time, parse the data based on tabs, and rewrite only the columns you want (skipping colum 3 and 6). [CODE] Imports System.IO Module Module1 Sub Main() Dim lst_strData As New List(Of String) Dim fileIn = New …

Member Avatar for iFrolox
0
124
Member Avatar for silvercats

Someone will still need to program buttons on calculators where each button will be at least as powerful as the 8086 processor. LOL

Member Avatar for silvercats
0
168
Member Avatar for jbutardo

No, you cannot use the MySQL connection to open an Excel file. You can use OleDB or ODBC or COM to open an Excel file.

Member Avatar for jbutardo
0
251
Member Avatar for silvercats

Yes, that's exactly it. The HEX values fit in a two-place format, so they are easier to read. More can be represented in a small space than with decimal or binary.

Member Avatar for thines01
0
167
Member Avatar for winnitbaker

Are you allowed to use Linq? You could use File.ReadAllLines() (twice) ...putting the data into an array of strings. You could then merge the two arrays and call .Distinct() (if linq is allowed). If it is, please let me know and I will make an example.

Member Avatar for skatamatic
0
99
Member Avatar for Awais Ali

Check out something like this: It is a simple framework where you can add your commands. Keep in mind you will need to fix it to handle commands with parameters. [CODE] // DW_393014.cpp : main project file. #include "stdafx.h" using namespace System; using namespace System::Collections::Generic; using namespace System::IO; using namespace …

Member Avatar for thines01
0
698
Member Avatar for sam1

If I understand correctly, I would do it like this: [CODE] static void Main(string[] args) { SmtpClient smtp = new SmtpClient(_strSomeSmtpAddress); MailMessage msg = new MailMessage("SantaKlaus@gmail.com", "LittleKid@SomeCountry.com") { Subject = "Your Christmas Wish", Body = "1. SSP Racer Car with T-Stick", ReplyTo = new MailAddress("MomOfLittleKid@SomeCountry.com", "Santa Klaus") }; smtp.Send(msg); } …

Member Avatar for thines01
0
239
Member Avatar for DarkMonarch

I don't know anything about Dev c++, but it seems like: 1) You are building the wrong type of project 2) The installation is not correct.

Member Avatar for DarkMonarch
0
268
Member Avatar for IAreKyleW00t

Have you tried narrowing this down to just the Process Start commands? ...maybe make a console app that JUST has the Process Start construction? That way, you'll eliminate everything else. After that, maybe separate the search for the java.exe into a separate class.

Member Avatar for thines01
0
208
Member Avatar for zck17

You might not need to split it if you're using the entire line as output -- just use Contains() ...or are you saying you would ONLY want 123456a if someone enters 456?

Member Avatar for thines01
0
253
Member Avatar for black22622

Can you put the rest of the plumbing items in this code and re-send? We might be missing something important if the rest of the code is not here. Also, for reasons I will NOT yet mention: Would you please change your main definition to [CODE] int main(void) ... [/CODE] …

Member Avatar for raptr_dflo
0
4K
Member Avatar for nijinjose123
Member Avatar for maverick01

Are you running this from inside the IDE? If so, can you give it the full path to the file and see whhat happens?

Member Avatar for MandrewP
0
236
Member Avatar for DeanMSands3

I prefer the most plain [URL="http://eji.com/a86/"]A86[/URL]. No frills, no complications. [URL="http://eji.com/a86.zip"]Download[/URL] Write the code with a text editor. Compile it with one command at the command-line.

Member Avatar for DeanMSands3
0
223
Member Avatar for collin_ola
Member Avatar for Zvjezdan23
Member Avatar for gourav1

You won't need animation -- just curved lines. Check out this [URL="http://thumbs.dreamstime.com/thumblarge_430/125079784646sWan.jpg"]picture of a wavy flag[/URL]. ...or [URL="http://image.yaymicro.com/rz_512x512/0/1bc/flag-of-india-1bc0ea.jpg"]this other picture[/URL]

Member Avatar for DeanMSands3
0
1K
Member Avatar for james6754

How does our process handle carriage-returns and linefeeds? Also, what is the final result you're trying to achieve?

Member Avatar for thines01
0
120
Member Avatar for rajdey1

Since you KNOW the page being called by "action=", all you need to do is open that page with the parameters. A method that just returns the response stream would look like this: [CODE] protected static Stream GetRepsonseStream(string strURI) { HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(strURI); req.Method = "POST"; //req.ProtocolVersion = HttpVersion.Version10; …

Member Avatar for thines01
0
399
Member Avatar for mackieben04

Put your menu in a function. Put all of those options in functions, then call them once the user has entered the correct option. You can then get rid of the "goto" statements and the program will be easier to manage.

Member Avatar for mackieben04
0
222
Member Avatar for uva1102
Member Avatar for uva1102
0
145
Member Avatar for cangan

Are there any line breaks in your array? Should there be? I tried to replicate the problem with this (code below) and the scroll bar stayed at the top: [CODE] for each(String^ str in gcnew array<String^>{"this", "is", "neat","this", "is", "neat","this", "is", "neat","this", "is", "neat"}) { textBox1->AppendText(str+Environment::NewLine); } [/CODE] Do you …

Member Avatar for thines01
0
160
Member Avatar for torkolort

I (personally) would make some type of output from the C# -- either output a file or just standard-out output and read that from the java program.

Member Avatar for peter_budo
0
214
Member Avatar for niggz
Member Avatar for thines01
0
146
Member Avatar for FALL3N

[ qq ] [url]http://www.misc-perl-info.com/perl-qq.html[/url] You can use q if you are not doing any variable substitution in a string.

Member Avatar for thines01
0
134
Member Avatar for JRE.A

Subtract the 30h before doing the math. Keep in mind: what you are after is not a single character after you go above 9. You are dealing with the difference between the ASCII chart, actual values and what a human expects to "see". Once above 9, you will need to …

Member Avatar for thines01
0
227
Member Avatar for Johan__

Take the calculateValues method OUT of the Readinput method. You have them nested together and that will give you an error. Also: 1) Change your "finalprice" to a double. 2) Add a constructor

Member Avatar for thines01
0
94
Member Avatar for Arjun_Sarankulu
Member Avatar for bhagawatshinde

Here is [I]a[/I] technique for creating a stored procedure in an Access database using C# code. [CODE] //using System.Data.Odbc; private static bool CreateProc(ref string strError) { bool blnRetVal = true; string strSQL = "create proc InsTestNum2(inTestNum) AS INSERT INTO Test_Detail(test_no) values(inTestNum)"; try { using (OdbcConnection conn = new OdbcConnection("DSN=DW_ACCESS")) { …

Member Avatar for bhagawatshinde
0
166
Member Avatar for jemz

Looking at your profile: It seems you are familiar with VB(4,5,6) and also Java. C# will most closely resemble Java for you. After you've built the skeleton "Hello, World" as @skatamatic suggests, you should take one of your simple, but successful Java programs and convert it to C#. You'll be …

Member Avatar for jemz
0
211
Member Avatar for Carolin

If you write a function and pass the data you read (like one big string) to it, you can use a pointer.

Member Avatar for thines01
0
292
Member Avatar for Chuckleluck
Member Avatar for niggz
Member Avatar for jemz

Visual Studio would be the first editor I would suggest for C# development. Here is [URL="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express"]Visual Studio Express[/URL] for C#

Member Avatar for jemz
0
132
Member Avatar for sania khan
Member Avatar for thines01
-1
181
Member Avatar for phorce

Step through this and see what happens: [CODE] #include <direct.h> int main(void) { char strDir[129] = {0}; puts(_getcwd(strDir, 128)); puts(strDir); return 0; } [/CODE] ...depending on OS (Windows) Also consider this: [CODE] #ifdef WINDOWS #include <direct.h> #define GetCurrentDir _getcwd #else #include <unistd.h> #define GetCurrentDir getcwd #endif [/CODE] ...which I saw …

Member Avatar for Narue
0
12K
Member Avatar for sania khan

It seems as if you had a statement in SQL with the following where clause, you could save a lot of code instead of looping and comparing values outside of the SQL: [CODE=SQL] " WHERE Quantity=Warning_Quantity" [/CODE]

Member Avatar for thines01
-1
259
Member Avatar for mzdravkova

If you split the text from the TextBox by spaces and carriage-return and linefeed, you will get 42 elements that can be put into your labels.

Member Avatar for mzdravkova
0
94
Member Avatar for shredder2794

I would do it like this: [CODE] Imports System.IO Imports System.Linq Module Module1 Function GetLargestFile(ByVal strDir As String, ByVal strPattern As String) As String Return _ (From strFile In Directory.GetFiles(strDir, strPattern) Let FileInfo = New FileInfo(strFile) Order By FileInfo.Length Descending Select FileInfo.FullName).First() End Function Sub Main() Console.WriteLine(GetLargestFile("c:\myPath\", "*.jpg")) End Sub …

Member Avatar for thines01
0
381
Member Avatar for icebirdy

What have you tried that didn't work? You can see: 1) The package starts and ends with an asterisk ( * ) 2) Each "record" begins with [nnn] The rest of this would be removing carriage-returns/linefeeds and trimming extra spaces.

Member Avatar for thines01
0
97
Member Avatar for cangan

The first thing I would do would be to move the individual record reader inside the object, then render the object capable of being searched in a collection of generics. [CODE] using namespace System; using namespace System::Data::SqlClient; using namespace System::Data; public ref class Custom_DataType { public: int id; int age; …

Member Avatar for cangan
0
258
Member Avatar for meera_137

This question/request has been around a long time: [url]http://www.edaboard.com/thread56986.html[/url] [url]http://www.mathkb.com/Uwe/Forum.aspx/matlab/27888/Convert-C-C-to-Matlab[/url] I have not seen anything that will do this automatically. Think about how you would determine a C function or module to mean this: [CODE=matlab] [X,Y] = meshgrid(-10:0.25:10,-10:0.25:10); [/CODE] Can you compile with MEX and just call your C routines?

Member Avatar for meera_137
-1
100
Member Avatar for zismad
Member Avatar for sling blade

Look up [URL="http://msdn.microsoft.com/en-us/library/aa288467(v=VS.71).aspx"]operators and overloading[/URL].

Member Avatar for ddanbe
0
198
Member Avatar for itsasif

Why don't you make it a class library then reference it from your web app? If your code is arranged in classes and methods, this would be easy to do. You could actually call the .EXE from your web app, but that's unnecessary.

Member Avatar for darkagn
0
98
Member Avatar for pilipino93

First, I must ask: 1) Are you really interested in keeping the goto statements instead of just calling a function or letting the program terminate naturally? 2) Do you know you can just make your C# a class library and call it from C++? 3) ...or do you intend on …

Member Avatar for pilipino93
0
1K
Member Avatar for krizhan4u

Do you know how to open a database connection to your database and trap exceptions?

Member Avatar for thines01
0
32
Member Avatar for jryans10

You should need BOTH (the platform and the runtime). Check [URL="http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=5555"]this link[/URL] I assume installing the platform also installs the runtime.

Member Avatar for stbuchok
0
166
Member Avatar for auwi987

You will either need to re-select the data from the database OR put the inserted rows into a class or other container (like a GridViewRow) that is the same shape as your GridView and add it to the GridView.

Member Avatar for auwi987
0
121

The End.