1,443 Posted Topics
Re: You can use Timespan to represent the number of days to subtract from a DateTime [CODE] DateTime dt15DaysAgo = DateTime.Now.Subtract(TimeSpan.FromDays(15)); [/CODE] | |
Re: I would just start by making an ASP.NET project. When you run it, the local testing server will invoke and you can play around with it. If you already know IIS, you can change the deployment parameters to write the output on the web server. ...then get a book | |
Re: For zip files, I would use the [URL="http://dotnetzip.codeplex.com/"]DotNetZip[/URL] library on CodePlex. I have had a lot of success with it. | |
Re: When you say letters, do you mean characters? Your code example is showing numbers. I would suggest you EITHER use iostream OR the standard library, but not both. Will the input file contain carriage-returns? On the output, how many columns will there be on each row? | |
Re: You can do this with sockets or WCF. | |
Re: Do you want a tutorial or some code? Here is a function I used to send a file to a destination: [CODE] import java.util.*; import java.io.*; import java.net.URLConnection; import java.net.MalformedURLException; import java.net.URL; public class CSendToDest { public static boolean SendToDest( String strUser, // String strPassword, // String strServer, //10.20.30.40 String … | |
Re: I'm not sure I get your meaning, but consider something like this: [CODE] int main(void) { char* tokens[5] = {"one", "two", "three", "four", "five"}; char** tokenCopy = tokens; for(int i=0; i < 5; i++) { puts(tokens[i]); puts(tokenCopy[i]); } return 0; } [/CODE] If your intention, however, is to modify one … | |
Re: When you define a new TYPE or class, it becomes a keyword. When you declare a variable, it becomes a keyword. When you declare a function or method, it becomes a keyword. You can also use the "using" statement to alias a type. Other than that, I see no need … | |
Re: First thing: Your values function does not know what "infile" is because "infile" is not in scope of that function. You need to either: 1) pass a pointer or a reference to the (in) file 2) make the file module or global scope 3) *** read the file in a … | |
Re: Involve yourself in a project. Lend yourself to either an open source project or to someone needing help in a company or at school. You will learn a lot helping others. With that said, you can also design the next "killer app" and give yourself a never-ending hobby-job! | |
Re: Put a colon : after the label string String: | |
Re: ...or if you can use LINQ [CODE] using System; using System.Collections.Generic; using System.Linq; namespace DW_380418 { class Program { static void Main(string[] args) { new List<int>{1,1,1,2,2,3,4,5,6} .ToLookup(k => k) .Where(i => !i.Count().Equals(1)) .ToList().ForEach(i => Console.WriteLine("{0} is duplicated {1} times.", i.Key, i.Count()-1) ); } } } [/CODE] | |
Re: Iteration is (in essence) just looping. Recursion is something going back into or calling itself. Recursion can cause Iteration. [Recursion vs. Iteration] [url]http://en.wikipedia.org/wiki/Recursion_(computer_science)#Recursion_versus_iteration[/url] | |
Re: If you are going to use SMTP, you will need to send to a number based on the particular carrier. You would need to use a particular [URL="http://en.wikipedia.org/wiki/List_of_SMS_gateways"]SMS Gateway[/URL]. There are other services that you can possibly automate to send to a mobile when you do not know the carrier. … | |
Re: If you are calling this from the command-line or a batch file, put the whole path in double-quotes. "c:\documents and..." The spaces make the path parts appear as additional arguments. | |
Re: Supposedly, [URL="http://pymedia.org/"]pymedia (sourceforge project)[/URL] is for multiple operating systems and lets you handle sounds. I have not tried it. I saw on [URL="http://www.velocityreviews.com/forums/t337346-how-to-play-sound-in-python.html"]this forum[/URL] that the winsound module allows you to play .wav files under windows. | |
Re: If you are JUST trying to print 0-7 (as the start), you can remove the add. Also you only need to increment the value in DL. I also changed the last interrupt. [CODE] ;-------------------80x86------------------------- ; 9-Aug-2011 - THINES01 ; Compiled with A86 (http://eji.com/a86/) ; ------------------------------------------------ start: mov ah, 02h mov … | |
Re: [url]http://msdn.microsoft.com/en-us/library/b6xa24z5.aspx[/url] [url]http://www.csharp-examples.net/socket-send-receive/[/url] [url]http://www.devarticles.com/c/a/C-Sharp/Socket-Programming-in-C-Part-I/[/url] | |
Re: Any particular language? If so, you might need to move this question to a specific language area and show some of the code you've already started. | |
Re: Do you have an example of the formulas you want to convert? | |
Re: The method you use to parse this file sincerely depends on how you will use it after it is parsed. You could just read it into a string array or you could parse it into structs or objects. What version of C++ are you using and what do you need … | |
Re: If I understand your question correctly: You could say that the .cpp code is part of a client request (or the message) that is sent to the compiler (acting as the server) and the return from that "server" is the object code or an error. Is that what you're looking … | |
Re: [url]http://www.daniweb.com/software-development/assembly/threads/376100[/url] | |
Re: Can you use the [URL="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express"]Visual Studio Express[/URL] edition? | |
Re: I made this differently than your original approach. Please consider this code where you supply both the input name and the output name. This helps to prevent unintentionally overwriting files. You can still morph the input file name (from .exe to .txt), if you wish before calling the functions. I … | |
Re: Can you post a link to a tutorial you found? In C/C++, this [B]is[/B] fairly complicated (if you are just starting out). I saw this same type of question on different forums and I saw: [QUOTE] you might want to use the event loop support provided by [URL="http://www.gtk.org/"]GLib[/URL] and use … | |
Re: It looks like a parenthesis has blocked out one of the from statements so it is isolated. If it is isolated, it has to have its own select statement. It either needs another select statement or you need to remove the extra set of parentheses to allow the from statements … | |
Re: Look at the opportunities for buffer overrun before it actually asks for the randNum bool. Move it higher in the program and you will probably see that it's the "range" value that is overflowing into the randNum causing it to be something other than 1. | |
Re: If you drop off the #show, does it work? Nevermind. It even fails at the root URL. Investigating... | |
Re: If you are using Visual Studio, create a project name BigInt as a .lib project. Extract the files from the BigInt archive to the directory created by the project. Drag/drop (or just add) the .cc files to the source folder and the .hh files to the header folder. Eliminate the … | |
Re: Can you pass a single SDL_Rect instead of the whole array? | |
Re: Maybe you should join a local user group so you can work directly with people of varying levels of expertise. | |
Re: try fprintf(fileHandle, "%04X", 156); | |
Re: Do you need to accept (and print) an unlimited number of asterisks? I would imagine something less than 10 would work for the exercise, right? | |
Re: It looks like you are doing the right thing if you want to completely process the shape as you read it. There are other options: 1) create a class for each shape and if the string contains the name of the class, feed the entire string to the class and … | |
Re: Here is a good resource: [url]http://dev.mysql.com/tech-resources/articles/dotnet/[/url] And here is some sample code for connecting to a MySql database. [CODE] Imports MySql.Data.MySqlClient Module Module1 Sub Main() Dim csb As New MySqlConnectionStringBuilder csb.UserID = "user" csb.Password = "pswd" csb.Server = "10.xx.xx.xx" csb.Database = "DB_NAME" Dim strSQL As String = "select COMMENTS from … | |
Re: You can download the [URL="http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&id=10121"]speech SDK from Microsoft[/URL] Or try this: [url]http://www.speech.cs.cmu.edu/flite/index.html[/url] | |
Re: You should store the list as the highest type you will need. If you are going to be calling Publication methods, it should be a list of publications. | |
Re: [Registers] [url]http://www.osdata.com/topic/language/asm/register.htm[/url] ...and believe it or not, there is a good explanation on this page of the stack: [url]http://www.vtc.com/products/AssemblyLanguageProgramming/AssemblyLanguageBasics/82691[/url] | |
Re: Some of this depends on the operatng system and if the database is on a server or on the same machine as the app. [Simplest form] Database is on a server different from the app. You will need to create a .JAR file containing all of the classes needed for … | |
Re: Do you just need the browser window to "take focus" or does something else need to happen. From what kind of app are you starting (another browser, console app, win forms, etc.)? | |
Re: Well, since you can't load something that is not there... Can you separate the projects and ensure the dependent one is compiled last? ...either by using separate projects or a build script that compiles the required pieces first? Also, if this is already broken into multiple projects, do you have … | |
Re: You want people to give you fully functioning programs with our comments and names removed and not expect you to just turn them in as completed work with YOUR name on them? | |
Re: What do you mean, "how to handle POST when submit buttons are used"? Are you asking how to get values sent by the user? On a GET, the values are sent through the Query String. On a POST, the values are sent through environment variables. ...or are you asking something … | |
Re: You need to create a structure that will be the element name on one side and the element value on the other. Make an array of those structs and fill the structs with values from the command-line. Once you have loaded that structure, then you can loop through it and … | |
Re: C++ is the lowest it will take, but you can use C-only-code in a C++ project. You will have to keep yourself from using enhanced features, but the result can be C. If you make a Win32 Console App and don't include any additional features, you'll be as close as … | |
Re: Did you (or can you) step through each step with the debugger? | |
Re: One way is to make your program a Windows Service: [url]http://msdn.microsoft.com/en-us/library/40xe80wx(v=VS.80).aspx[/url] | |
Re: Did you declare siStartupInfo and piProcessInfo? If so, where in the program did you delcare them? |
The End.