1,443 Posted Topics

Member Avatar for Alokkumar11
Member Avatar for thines01
0
40
Member Avatar for phorce

You can add the punctuation to your alphabet OR you can have it eliminate things that are NOT alphabet or punctuation.

Member Avatar for Red Goose
0
108
Member Avatar for lxXTaCoXxl

Put the triple slashes /// at the top of a method or class. When you fill out the comments sections in that "structure" you will see those descriptions when you hover your items. When you hit the third slash, the structure will appear. Here is a simple one, but on …

Member Avatar for lxXTaCoXxl
0
94
Member Avatar for violette
Member Avatar for Akill10

I created a VC# 2008 Express project then loaded it with VS 2008 Standard and added a class diagram. When I re-loaded it in VC# Express, the class diagram FILE was there, but the content looked like this: [CODE] <?xml version="1.0" encoding="utf-8"?> <ClassDiagram MajorVersion="1" MinorVersion="1"> <Class Name="TestCDiagram.CThisThat"> <Position X="0.5" Y="0.75" …

Member Avatar for Akill10
0
110
Member Avatar for slim1_1

Well, you'll need a counter that counts (loops) from 20 to 65 so you can add the deposits and compound the interest. ...then print the result. I assume this will be a C# Console Application with the values shown using Console.WriteLine(); ( ? )

Member Avatar for slim1_1
0
144
Member Avatar for rajeshpodder007
Re: help

You would need to write an application that catches the menu's on-click message. Are you familiar with Win32 programming? Is this for a virus or spam-bot?

Member Avatar for rajeshpodder007
0
95
Member Avatar for danuzje

In either case, I would put the file operations in a try/catch block. the exception.Message will tell you the error. It is [I]probably[/I] that youur account does not have permission to write in the root of C.

Member Avatar for sknake
0
217
Member Avatar for rajeshpodder007

No. Not unless you write your own browser that re-writes how right-click works. You could potentially create your app as an "Accelerator" depending on what it does: [url]http://www.pressthered.com/how_to_create_an_ie8_accelerator/[/url]

Member Avatar for codeorder
0
179
Member Avatar for triumphost

You could do it in either language. If you don't like it running in the browser, you make a command-line version. [CODE] ######################################################################## # Read content from a web page $fileInFile=fopen("http://server.ext/Resources/SmallTextFile.txt", "rb"); while(!feof($fileInFile)) { $strData = fgets($fileInFile); printf($strData); } fclose($fileInFile); [/CODE]

Member Avatar for thines01
0
361
Member Avatar for KarpedByC#

You should give your variables an initial value when you create them (especially chars and strings).

Member Avatar for zachattack05
0
393
Member Avatar for noobprogrammerr

If the variable "estatename" is part of "context" then: [CODE] ... where e.eventDate >= DateTime.Now && e.estatename.Equals(EstName) ... [/CODE]

Member Avatar for thines01
0
96
Member Avatar for noobprogrammerr

Take a look [URL="http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/bec110c9-fcab-4236-aeb3-5f71663f6bb7"]at this[/URL]

Member Avatar for thines01
0
58
Member Avatar for noobprogrammerr

Are you saying you are creating a web service and you want to return a string array of State Names? ...something like this, but a regular list? :[url]http://www.geocommunicator.gov/TownshipGeocoder/TownshipGeocoder.asmx[/url]

Member Avatar for thines01
0
280
Member Avatar for noobprogrammerr

[url]http://www.daniweb.com/software-development/csharp/threads/389484[/url]

Member Avatar for thines01
0
49
Member Avatar for noobprogrammerr

Are you using IIS? Are you running the web server on your development machine or a different server?

Member Avatar for thines01
0
134
Member Avatar for noobprogrammerr
Member Avatar for thines01
0
337
Member Avatar for alphabetic

10MB of anything? You could make a program that watches the content of the temporary Internet files path and alarms when the amounts increases by 10MB.

Member Avatar for alphabetic
0
75
Member Avatar for pseudorandom21

Probably because some things require dynamic memory allocation and type-checking.

Member Avatar for thines01
0
136
Member Avatar for ramy84

The first thing I notice is that you are using "choice" as an integer and NOT comparing the ascii value of the number 1 key. You are comparing the number 1, which is something different. [CODE] if (choice == 0x31) { FileRead wr = new FileRead(); wr.ReadData(); } [/CODE] ...or …

Member Avatar for thines01
0
1K
Member Avatar for kab5zb
Member Avatar for shers
Member Avatar for thines01
0
44
Member Avatar for valestrom
Member Avatar for thines01
0
89
Member Avatar for maggoteer

To connect to the remote server, you would replace "localhost" with the remote machine's IP address or machine name. I would also adapt the use of the SqlConnectionStringBuilder so you won't need to worry about spelling and punctuation ([B]Like the space between USER and ID[/B]).

Member Avatar for maggoteer
0
126
Member Avatar for Nandomo

You can read a string from a file and trim leading a trailing spaces "using trim()". You can use split("<delimiter goes here>") on Strings You can use charAt(num) on strings to get a specific character. [CODE] import java.io.*; public class DW_391778 { private static void DemoTrim(String strData) { System.out.println('['+strData.trim()+']'); } …

Member Avatar for Nandomo
0
201
Member Avatar for federerforehand

[url]http://en.wikipedia.org/wiki/Indent_style[/url] Indenting (in Java, C, C++, C#) is pretty much making your code more readable. It [I]implies[/I] levels of execution and logic, but is purely a code management technique. Some other languages actually use indention to control execution. I love homework. [CODE] import java.util.Random; public class Card { public String …

Member Avatar for hfx642
0
221
Member Avatar for dew97

It should only give you an error in the "department" table if the F/K does not exist in the "class" table. What is the error text you are receiving? Also, what is the specific action you are doing in the department table?

Member Avatar for Reverend Jim
0
124
Member Avatar for mesanda
Member Avatar for JNicoleKMC5

The MS Windows search function would let you find things in text files quickly like that. Other than that, what compiler are you using? It would be easier done in C++/CLI if at all possible.

Member Avatar for vijayan121
0
170
Member Avatar for shenanigans902

Your function was missing a final return option. If c is truly the final option, then change it to this: [CODE] public int mid(int a, int b, int c) { if ((a != b) && (a != c)) { return a; } else if ((b != a) && (b != …

Member Avatar for thines01
0
1K
Member Avatar for subone

You don't need to use loops. You can [CODE]System.out.println(number1+number1+number2+number2);[/CODE] unless you need to create a function. [CODE] private static int sumInclusive(int number1, int number2) { return number1+number1+number2+number2; } [/CODE]

Member Avatar for aspire1
0
305
Member Avatar for morfious90
Member Avatar for EricaMitchell
Member Avatar for anas2ahmad
0
99
Member Avatar for dd2308

Are you attempting to stay connected to the database at all times or only when a query happens?

Member Avatar for dd2308
0
161
Member Avatar for VIPER5646
Member Avatar for VIPER5646
0
146
Member Avatar for shandoosheri

Here is a quick-n-dirty version: [CODE] using System; using System.IO; namespace DW_390448 { class Program { private static void Usage() { Console.Write("DW_390448 infile outfile"); } static void Main(string[] args) { if (!args.Length.Equals(2)) { Usage(); return; } try { using (StreamReader fileIn = new StreamReader(args[0])) { using(StreamWriter fileOut = new StreamWriter(args[1])) …

Member Avatar for thines01
0
185
Member Avatar for Zarl

Compile it. If you are using Visual Studio, select the Build option from the menu. If you are in release mode, the executable will be in the bin\release directory or the bin\debug directory for debug mode. You will need to distribute the main.exe file as well as any .dll files …

Member Avatar for thines01
0
84
Member Avatar for lbgladson

I fixed a couple of typos in your coin class: [CODE] public class Coin implements Comparable<Object> { private double value; private String name; public Coin(double aValue, String aName) { value = aValue; name = aName; } public int compareTo(Object c2) { return (int) value; } } [/CODE]

Member Avatar for lbgladson
0
139
Member Avatar for bluehangook629

Yes. If you're familiar with web services, you can bind to this one: [url]http://www.webservicex.net/uszip.asmx[/url] It's a really easy way to get functions that perform a great service :)

Member Avatar for bluehangook629
0
102
Member Avatar for kothaisaravan

It really depends on the interface to the java web service. Is it public where we can see it?

Member Avatar for thines01
0
216
Member Avatar for 8mir

Not to beat a dead horse, but I'm surprised no one mentioned Regular Expressions [CODE] Imports System.Text.RegularExpressions Module Module1 Sub Main() Dim strTextBoxText As String = "asdf asdf <e2>code</e2> asdf asdf" Dim strCode As String = "Not Found" Dim rxE2 = New Regex("<e2>(?<target>.*)</e2>") ' If rxE2.IsMatch(strTextBoxText) Then strCode = rxE2.Match(strTextBoxText).Groups("target").Value …

Member Avatar for thines01
0
221
Member Avatar for c#learner

Here's a technique. Let me know if it's too fancy :) [CODE] using System; using System.Collections.Generic; using System.Linq; namespace DW_390972 { using KVP_S2I = KeyValuePair<string, int>; class Program { private static List<KVP_S2I> lst_kvpMonths = new List<KeyValuePair<string, int>>() { {new KVP_S2I ("January", 31)}, {new KVP_S2I ("February", 28)}, {new KVP_S2I ("March", 31)}, …

Member Avatar for nick.crane
0
100
Member Avatar for Aghtar
Member Avatar for ndayala

Do you mean this? [CODE] #include <string.h> typedef struct Deity { char name[80]; char religion[80]; int numAppendages; } Deity; int main(void) { Deity* pDty = new Deity(); strcpy(pDty->name, "Fred Johnson"); strcpy(pDty->religion, "Methodist"); pDty->numAppendages = 6; printf("%s\n%s\n%i", pDty->name, pDty->religion, pDty->numAppendages); delete(pDty); return 0; } [/CODE]

Member Avatar for MonsieurPointer
0
108
Member Avatar for Ascar

The tokens are char*, right? All you need is an array of char* of the size you need. Keep a counter as an offset and increment it on each loop. Are you keeping all of them? How many pointers/tokens do you need?

Member Avatar for MonsieurPointer
0
642
Member Avatar for DoubleGee
Member Avatar for renzlo

I would not suggest a RegEx if the target contents are ALWAYS the same value with random spacing. I would just remove all spaces from the input text and search for substring containment (Contains()).

Member Avatar for renzlo
0
196
Member Avatar for Taximus

Check out Interfaces. You can have a list of Interface elements that will let you define a required Draw() method. Anything that goes in the list will have a Draw() method and will be referenced as the interface type itself. Check out [URL="http://www.daniweb.com/software-development/csharp/threads/389664"]this thread[/URL]:

Member Avatar for skatamatic
0
289
Member Avatar for bigredaltoid

It looks like you've done everything except add the 16 credits: [CODE]myList2 = [] myList = [] myFile = open('lab11.txt','r') for myLine in myFile: myList = myLine.split() myList[3] = int(myList[3]) + 16 myList2.append(myList) print myList2[/CODE]

Member Avatar for bigredaltoid
0
194
Member Avatar for YourGamerMom

use double-equals in the comparison. == [CODE]if(grid[0][0] == 2){printf("\n_");}[/CODE]

Member Avatar for YourGamerMom
0
99

The End.