1,443 Posted Topics
Re: Do you actually have a table called "mr_head"? | |
Re: 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 … | |
Re: Someone will still need to program buttons on calculators where each button will be at least as powerful as the 8086 processor. LOL | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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); } … | |
Re: 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. | |
Re: 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. | |
Re: 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? | |
Re: 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] … | |
Re: Are you running this from inside the IDE? If so, can you give it the full path to the file and see whhat happens? | |
Re: 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. | |
Re: What is "cBuilder" doing for you? | |
Re: Do you know [I]where[/I] it stops? | |
Re: 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] | |
Re: How does our process handle carriage-returns and linefeeds? Also, what is the final result you're trying to achieve? | |
Re: 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; … | |
Re: 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. | |
Re: ...or: [CODE] Response.Write("<br />"); [/CODE] ...at the bottom of the loop. | |
Re: 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 … | |
Re: 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. | |
Re: You can do it by the club ID or the player ID (if it actually exists). | |
Re: [ 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. | |
Re: 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 … | |
Re: 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 | |
Re: Are you saying you want it to be a Windows service? | |
Re: 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")) { … | |
Re: 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 … | |
Re: If you write a function and pass the data you read (like one big string) to it, you can use a pointer. | |
Re: Is Schedule null when it is assigned? | |
Re: 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# | |
Re: [URL="http://www.daniweb.com/software-development/csharp/threads/406724"]DUPE?[/URL] | |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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; … | |
Re: 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? | |
Re: Have you tried installing 3.5.1 again? | |
Re: Look up [URL="http://msdn.microsoft.com/en-us/library/aa288467(v=VS.71).aspx"]operators and overloading[/URL]. | |
Re: 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. | |
Re: 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 … | |
Re: Do you know how to open a database connection to your database and trap exceptions? | |
Re: 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. ![]() | |
Re: 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. |
The End.