Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~10.7K People Reached
Favorite Forums
Favorite Tags
c# x 14
c++ x 7
perl x 1

29 Posted Topics

Member Avatar for aditya55
Member Avatar for ChrisHunter
0
565
Member Avatar for LithMaster

This is a problem with your use of public, protected, and private. Probably somewhere in your inheritance chain. Most likely forgot to add public infront of a class declaration somewhere.

Member Avatar for xolisamthobeli
0
166
Member Avatar for ninjaneer

You'd be better off (if possible) creating a mixed managed/native DLL in [URL="http://msdn.microsoft.com/en-us/magazine/cc163681.aspx"]C++/CLI[/URL] and adding that DLL as a reference to your C# project.

Member Avatar for Ramy Mahrous
0
1K
Member Avatar for Karil

Define "an interface for a C# program". I have to assume you don't mean an interface like IEnumerable, so I'm not sure what you mean.

Member Avatar for natpu
0
143
Member Avatar for alc6379

A dynamic count of threads isn't always a good idea, in fact it's often a bad idea. Since you have a quad core machine you should start with 4 threads (one per core), then try 8, 16, 20, etc until you see the logrythmic effect of too many threads. Adding …

Member Avatar for alc6379
0
3K
Member Avatar for scatterjoy
Member Avatar for raj416

[QUOTE=dickersonka;668317]Or you could just go the easy route [code] string s= "sample"; s = "daniweb " + s; [/code][/QUOTE] This is better, unless you do it often. Remeber each + used allocates and floats another copy of the string.

Member Avatar for nvmobius
0
677
Member Avatar for y_itay

Personally, I'd make an interface... let's call it IFilterable with a required method let's call Filter. [code] public interface { bool Filter( ); } [/code] The each object in the collection could have a member of type IFilterable that defines the filter is should be using and you could then …

Member Avatar for y_itay
0
636
Member Avatar for tan4ik

You're asking for a lot here. Why is it you want to do this in C# and not Flash or some easy to animate platform?

Member Avatar for nvmobius
0
149
Member Avatar for kaloon
Member Avatar for nvmobius
0
130
Member Avatar for Wiizl

I don't see where you Timer is declared. It's quite possible that it's losing scope and being garbage collected.

Member Avatar for nvmobius
0
555
Member Avatar for pejy69

Well first thing I see the lines [code] // Display tax Console.Write("$"); Console.Write(dectax); // Keep window open Console.ReadLine(); [/code] Should be placed outside the last if block because you'll want them displayed every time. The next thing I see is that it looks like you're doing the math wrong. From …

Member Avatar for nvmobius
0
108
Member Avatar for toadzky
Member Avatar for nvmobius
0
156
Member Avatar for weimei

You're looking for DRM software - online... from people willing to give free help... yeah, makes total sense...

Member Avatar for nvmobius
0
101
Member Avatar for stewie griffin

huh? I'm gonna guess what the heck you mean here, and hand you an answer. [code] List<string> a = new List<string>(); List<string> b = new List<string>(); using ( StreamReader reader = new StreamReader(File.OpenRead(FILE_PATH)) ) { string line = null; string[ ] parts = null; try { while ( (line = …

Member Avatar for nvmobius
0
103
Member Avatar for inoxmum

My guess: Windows Server uses much better security modeling than Winows XP does. You really should develop on Windows Vista with UAC turned on (make sure you never trip the UAC dialog with your code!). Most likely you need to fix the NTFS permissions your files have so that they …

Member Avatar for nvmobius
0
137
Member Avatar for mrjoli021

A standard piece of code I find myself using and reusing, time and time again... [code] using ( FileStream fileStream = File.OpenRead(CONFIG_PATH) ) { Regex entryRegex = new Regex(@"^\s*(?<name>\S+?)\s*\:\s*(?<value>.+?)\s*$", RegexOptions.Compiled | RegexOptions.IgnoreCase); using ( StreamReader reader = new StreamReader(fileStream) ) { while ( (line = reader.ReadLine()) != null ) { …

Member Avatar for nvmobius
0
110
Member Avatar for mrjoli021

You can do it, but it's not recommended. Usually people who want to do their own scheduling set up a Windows Service to do so. You can create one easily with Visual Studio in C#. AFAIK .Net cannot interact with the Task Scheduler directly. There might be something in all …

Member Avatar for nvmobius
0
104
Member Avatar for ansari.wajid

Use a System.Text.RegularExpressions.Regex object. [code] Regex linkRegex = new Regex(@"<link>\s*(?<link>[^<]+)\s*</link>", System.Text.RegularExpressions.RegexOptions.Compiled); Regex titleRegex = new Regex(@"<title>\s*(?<title>[^<]+)\s*</title>", System.Text.RegularExpressions.RegexOptions.Compiled); if ( linkRegex.IsMatch(myString) ) { Match match = linkRegex.Match(myString); string theLink = match.Groups["link"].Value; } if ( titleRegex.IsMatch(myString) ) { Match match = titleRegex.Match(myString); string title = match.Groups["link"].Value; } [/code]

Member Avatar for nvmobius
0
402
Member Avatar for karabela

You'll have to trust me on this, but you really DO NOT WANT to store the image in your database. Instead store a file path or Uri to the image in your database and read it from disk when you want to display it.

Member Avatar for nvmobius
0
277
Member Avatar for rapture

The basics are there but a few suggestions for you: [code] using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.IO; public class Program { private readonly string SERVER_PATH = @"\\server\directory"; private readonly string LOCAL_PATH = @"C:\users\username\documents\images"; private readonly string CONNECTION_STRING = "@some;sql=connection; string"; [STAThread] public static int Main( string[ …

Member Avatar for nvmobius
0
1K
Member Avatar for bondo

Check the way your decimal columnis defined in SQL server. It's possible you've defined it to not allow values >= 1.0. Use MSDN to reference how to properly specify the column. Do the same check on your stored procs, they need to match exactly for expected behavior.

Member Avatar for bondo
0
190
Member Avatar for arupa

if youjustneed the fast lookup ability of the dictionary, I believe the compact framework supports the System.Collections namespace, so you can just use a HashTable object which is even faster.

Member Avatar for nvmobius
0
80
Member Avatar for masterjiraya
Member Avatar for masterjiraya
0
90
Member Avatar for SubProf

If you're only trying to emulate a click of the back button, don't use C# use Javascript. Add this code to you page: [code] <button onlick="window.history.go(-1)">Back</button> [/code]

Member Avatar for SubProf
0
84
Member Avatar for amith003

Are you using web controls or realy code? :-P As a developer who started in C then migrated to C++ then to C# I tend to avoid as many of the built in controls MSFT offers with the .Net runtime. My suggestion to you is either A) Use remoting (it's …

Member Avatar for amith003
0
94
Member Avatar for ebiemami
Member Avatar for zead

What the...?! Logical AND is a CPU operator that flips bits, how could you possibly do that to a System::String object? You're looking for either a System::Text::RegularExpressions::Regex or &&. In C this would "work" in that you'd compare bits in the pointer, but in C# you don't have direct access …

Member Avatar for nvmobius
0
68
Member Avatar for masterjiraya

... Just compile it as C++/CLI and change all the * to ^, and all the cout to System::Console::WriteLine() calls. Then fix the compiler complaints.

Member Avatar for nvmobius
0
282

The End.