1,443 Posted Topics

Member Avatar for Shizuo

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]

Member Avatar for Mitja Bonca
0
104
Member Avatar for Jazerix

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

Member Avatar for Jazerix
0
210
Member Avatar for FoxSpirit

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.

Member Avatar for iampord
0
385
Member Avatar for Zssffssz
Member Avatar for robdb

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?

Member Avatar for thines01
0
148
Member Avatar for wajiha irfan
Member Avatar for raul8

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 …

Member Avatar for thines01
0
128
Member Avatar for rjcenteno

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 …

Member Avatar for thines01
0
126
Member Avatar for user543820

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 …

Member Avatar for Mitja Bonca
0
88
Member Avatar for bennetk2

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 …

Member Avatar for bennetk2
0
2K
Member Avatar for mcddewitt

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!

Member Avatar for hag++
0
190
Member Avatar for D33wakar
Member Avatar for pxndx

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

Member Avatar for thines01
0
2K
Member Avatar for shanki himanshu

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]

Member Avatar for sharathg.satya
0
136
Member Avatar for Shilpa Gonge

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

Member Avatar for QVeen72
0
390
Member Avatar for bert2385

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.

Member Avatar for thines01
0
49
Member Avatar for iacobus2

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.

Member Avatar for Tech B
0
620
Member Avatar for bettybarnes

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 …

Member Avatar for faroukmuhammad
0
271
Member Avatar for jayuma

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

Member Avatar for Ketsuekiame
0
267
Member Avatar for deanbrogada

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.

Member Avatar for Onlineshade
-1
189
Member Avatar for thinkingofaname
Member Avatar for Onlineshade
0
136
Member Avatar for dionisov

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 …

Member Avatar for dionisov
0
603
Member Avatar for himgar

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 …

Member Avatar for himgar
0
86
Member Avatar for Eddrian

[url]http://www.daniweb.com/software-development/assembly/threads/376100[/url]

Member Avatar for thines01
0
343
Member Avatar for coolbeanbob

Can you use the [URL="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express"]Visual Studio Express[/URL] edition?

Member Avatar for coolbeanbob
0
306
Member Avatar for kylelendo

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 …

Member Avatar for thines01
0
791
Member Avatar for rom.

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 …

Member Avatar for rom.
0
399
Member Avatar for CSharpUser

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 …

Member Avatar for CSharpUser
0
2K
Member Avatar for fragtech

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.

Member Avatar for WaltP
0
176
Member Avatar for Jennifer84

If you drop off the #show, does it work? Nevermind. It even fails at the root URL. Investigating...

Member Avatar for thines01
0
204
Member Avatar for ben1996123

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 …

Member Avatar for ben1996123
0
239
Member Avatar for evilguyme
Member Avatar for satish4206

Maybe you should join a local user group so you can work directly with people of varying levels of expertise.

Member Avatar for RvSon
0
181
Member Avatar for Museless
Member Avatar for bettybarnes

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?

Member Avatar for thines01
0
1K
Member Avatar for rjcenteno

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 …

Member Avatar for raptr_dflo
0
155
Member Avatar for bazaanah

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 …

Member Avatar for Netcode
-1
162
Member Avatar for Steven9999

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]

Member Avatar for Steven9999
0
121
Member Avatar for termin8tor

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.

Member Avatar for termin8tor
0
275
Member Avatar for Donald Njila

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

Member Avatar for thines01
0
129
Member Avatar for gedas

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 …

Member Avatar for gedas
0
232
Member Avatar for jmurph333

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

Member Avatar for nmaillet
0
639
Member Avatar for VIeditorlover

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 …

Member Avatar for thines01
0
153
Member Avatar for singh_soorma94

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?

Member Avatar for sirlink99
0
161
Member Avatar for dreadiscool

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 …

Member Avatar for thines01
0
3K
Member Avatar for pinkannu

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 …

Member Avatar for pinkannu
0
193
Member Avatar for lastbencher

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 …

Member Avatar for mitrmkar
0
309
Member Avatar for Ash11th
Member Avatar for PratikM

One way is to make your program a Windows Service: [url]http://msdn.microsoft.com/en-us/library/40xe80wx(v=VS.80).aspx[/url]

Member Avatar for termin8tor
0
225
Member Avatar for thecoolman5

Did you declare siStartupInfo and piProcessInfo? If so, where in the program did you delcare them?

Member Avatar for thecoolman5
0
917

The End.