|
ms
newsgroups
|
||||||||||||||||||||
|
||||||||||||||||||||
switch case and efficiency
Martijn Mulder -
21 Dec 2008 8:35 PM - 9 messages
I have well over a thousend cases after a switch. 1. Is there a practical limit to the number of cases? 2. Can I optimize (and uglify) my code so that switch-case runs faster? 3. How is switch implemented (binary search, linear search...)? ...
MySQL sample ?
Kid -
21 Dec 2008 8:36 PM - 5 messages
Hi Is there some good MySQL database sample use C# or VC or MFC ? Is there some good api or library that I can access MySQL without MySQL ODBC driver ? Thank for your grand help. ...
graphics
Michael -
21 Dec 2008 3:16 AM - 5 messages
Hello, I am trying to follow a graphics tutorial which gives the following code private void DrawShapesForm_Paint(object sender, PaintEventArgs e) { // references to object we will use ...
LINQ and data projection
Gary Nastrasio -
20 Dec 2008 5:28 AM - 11 messages
I have an array of data and I would like to project every 3 elements into a new data type. For example, I have this array: string[] myString = {"1.0", "2.0", "3.0", "7.0", "8.0", "9.0"}; ...
struct memory layout
jconnell -
20 Dec 2008 9:26 PM - 5 messages
I want to make a struct in C# that has binary compatibility with an existing struct in C++, so I can use C++.NET to do memcpy() transfers from a binary stream onto some structs in C#. I can't seem to figure ...
xml
SS IT Services LLC -
18 Dec 2008 10:00 PM - 5 messages
I need to generate an XML structure in code. Is there some assembly I should use or is the normal method just concatinating a string and building the XML that way? Scott SS IT Services, LLC ...
XML => Object stored in memory?
Hillbilly -
18 Dec 2008 10:33 PM - 5 messages
Seeking insight regarding which class/control/object is optimal to write XML into and append with additional XML while the object is in memory? The XML must then be saved to disk and sorting by node(s) would be a real nice gift ...
Help with RegEx
nomad -
19 Dec 2008 9:56 AM - 4 messages
Hi, I need to be able to retrieve values from a string made up of HTML. A colleague has mentioned using regular expressions to retrieve the value but this is proving quite difficult. If someome could point me ...
Anybody trying WPF?
RayLopez99 -
11 Dec 2008 10:51 PM - 5 messages
I asked this same question this past summer. Anybody trying WPF as an API? [link] I bought a book by Chris Wells but have not opened it. Too busy becoming a guru in C#3. ...
replacing characters in a string
Peter -
17 Dec 2008 9:10 AM - 8 messages
Hi in my application I get a lot of strings which I have to "clean up" before I pass them to a third-party library. The strings I have contain characters which are invalid for the third-party library, so I have to ...
installer class failure
alexia -
18 Dec 2008 7:56 PM - 8 messages
Hi, I created an installer project which installs my C# application. the installer using install class. The problem I am facing is in VISTA. If I install the application as administrator and than trying to run it from power user or user, windows retry to install the application. ...
Regex question
tshad -
20 Dec 2008 1:14 AM - 10 messages
This is really a regex question. I am wonding if anyone knows a good Regex expression that would pull a valid date from a string. I have used: strValue = Regex.Replace(valueIn, @"[^\d/]", ""); ...
char x='x'; why not char x="x"; ?
Tony! -
17 Dec 2008 8:34 PM - 7 messages
char x='x'; Why not char x="x"; ? I'm guessing double-quotes is incorrect because it signifies a string value which is not implicitly carried into a char bacause it's a smaller size and some data may be lost. ...
Multi threaded design patterns
Bill McCormick -
19 Dec 2008 10:11 PM - 4 messages
Hello, I'd like to bounce some things off developers and MSDN folks that are here. I have a Windows service MyService that is the main application. It will build a MyWorkObject in it's constructor and the OnStart and OnStop ...
Inheritance problem
Bill -
19 Dec 2008 1:32 PM - 6 messages
Hi, This problem is more difficult to explain than the ones in my previous posts. For this one, I just need some good design practice advice, from an intuitive point of view. I have three classes, named Plot1, Plot2 and Plot3. Plot2 derives from ...
how to convert a byte array with string,int and double embeded?
chrisben -
19 Dec 2008 9:43 PM - 4 messages
Hi, I send out a byte array through socket and then try to convert the data back. However, I run into some problems when I mix string with other datatypes For example sender array byte[] data = new byte[32]; string name = "chris" ...
Combobox doesn't work if the form has TopMost = true
brianushman -
19 Dec 2008 2:23 PM - 7 messages
If I have a combobox on a form and that form's property TopMost is set to true, the comboxbox doesn't work. I'll click on the combobox and it won't drop down, even though all the properties for the combobox ...
Inheritance - Accessing two levels above mine - Now with virtual+override
Bill -
19 Dec 2008 11:49 AM - 8 messages
Hi again, Ok, so it looks like I can access an ancestor member that is two levels above mine, if that ancestor has been hidden by means of "new". But what if it has been overriden with "override"? How can I access C1.fb() from inside C3.fb()? ...
About generic List<string>
Tony Johansson -
19 Dec 2008 7:27 AM - 6 messages
Hello! I have a List collection with several identical strings. Is it any way to count how many of each identical string I have in the list without going through the list by using some iteration like foreach I just wonder if it's possible to use linq in a suitable way here. ...
Mapping
shapper -
19 Dec 2008 1:54 PM - 7 messages
Hello, I am mapping a class Error to another class YError: YError ToY(Error error) { return new YError { Id = error.ErrorId, CreatedAt = error.CreatedAt, ...
Finding a specific element using LINQ
graphicsxp@googlemail.com -
19 Dec 2008 11:55 AM - 4 messages
Hi, I' ve converted an HTML page to valid XML document and now I want to find a specific node in the hierarchy. All I now is the id of one of its parents and the path from the parent ...
Transition from C# to VB.NET
Icon Iconoclast -
18 Dec 2008 11:40 AM - 8 messages
If I already know C#, how long would it take me to learn VB.NET? ...
Stack in launch
BenMoshe -
17 Dec 2008 9:30 PM - 4 messages
I use VS 2005 and develop in C# and C++ and use interoperability. I have an application which is composed of a few components and dll's. Problems is that sometimes, running under debugger it is stack in the middle ...
Search all nodes using Linq
graphicsxp@googlemail.com -
18 Dec 2008 5:28 PM - 17 messages
Hi, I've converted an HTML page to a valid XML XDocument. Now I want to search this XDocument using LINQ and I want to find all the nodes that have an attribute 'class' equals to 'mxb'. I've done that but it doesn't work : ...
how to use count on a collection
Tony Johansson -
19 Dec 2008 9:36 AM - 4 messages
Hello! I have this simple linq query. var totalRows = from o in ccrFormObj.myWorksheetRowList where o.WorksheetID == workSheetID ...
Inheritance - Accessing two levels above mine
Bill -
19 Dec 2008 1:12 AM - 5 messages
Hi, How can I access a (non-static) member method that is two levels above mine, from a member method that has the same name? How can I access C_A0.func() from inside C_A000.func() ??? Is this possible? Thanks a lot. ...
c# cannot change registry value
Chris -
21 Feb 2007 10:33 PM - 4 messages
I have Visual Studio 2005 Express Edition. I am trying to change registry value by: RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\My_app"); key.SetValue(name_of_value, new_value_string); I am getting error: System.UnauthorizedAccessException: Cannot write to the registry key. at System.ThrowHelper.ThrowUnauthorizedAccessException(ExceptionResource ...
Dynamically using object methods
tshad -
18 Dec 2008 10:28 PM - 4 messages
I have a function that uses goes through all the properties in an object and sets the value to null. The problem is that it uses a method in the property to set it. At the moment I just do: ...
Suggestion for C# language: Modification to the "new" keyword - Allow type inference in C# to use th
Nicholas Paldino [.NET/C# MVP] -
17 Dec 2008 10:25 PM - 22 messages
If any of you have the time or inclination, I'd love feedback/ratings/support (and while I loathe to say it, dissent) to a recommendation I am making for the C# language: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=388649 ...
Truely unique file name.
Mufasa -
15 Dec 2008 6:03 PM - 27 messages
What's an easy way to create a truely unique file name in a specified directory? I could use Path.GetTempFileName but I want to be able to specify the directory to create the file in. TIA - Jeff. ...
Dynamically add property values
tshad -
17 Dec 2008 10:05 PM - 6 messages
I am trying to add values to a property in my class dynamically. In my problem, I would have something like: string value = "somevalue" string name = "ColumnName" or string name = "ColumnType" I have a class that has ColumnName and ColumnType as properties (there are ...
LINQ to SQL Classes question
Jordi Rico -
17 Dec 2008 9:31 AM - 4 messages
Hi, well I have a question about something I thought would be trivial but it's driving me nuts. In my app I have a list of objects (let's say users) that have been loaded with a datacontext. I can add users, list them, etc. ...
Second message loop a Windows Forms application?
DoB -
18 Dec 2008 3:03 PM - 4 messages
Hi, The main message loop is started with Application.Run(new MainForm()); What if I wanted to create another message loop in a thread for a different form, say ThreadForm? How to do this? Regards, DoB ...
How to reference in c# script?
Bruno Neves Pires Silva -
16 Dec 2008 12:09 AM - 10 messages
Hello, Programmers. I'm making some scripts in c#, but how can I reference a class library created in visual studio ? Thanks in advance Bruno Neves Pires Silva ...
Design of a suer interface similar to visual studio
m.a -
16 Dec 2008 7:14 PM - 5 messages
Hello, I want to design a user interface similar to visual studio in win form. I am very interested in the property window. Is there any tool that can help me in designing such user interface? Any help is much appreciated. ...
Initializing form (dialog)
Alex -
17 Dec 2008 9:39 PM - 6 messages
Hello everybody, I'm just starting C#. I'm working on forms based application. The parent form has some buttons. If I click the button, some child form must pop-up. My question is - is there in C# something analogous to ...
Localization / Globalization / language versions - Where to start?
Ole -
17 Dec 2008 4:10 PM - 4 messages
Hi, I'm about to localize my C# Framework and Compact Framework applications into severel different languages but I'm a total novice regarding that, so where can I find some good information about the subject on the internet? What is the difference between Localization, Globalization and language ...
Draw vertical text?
Mark B -
17 Dec 2008 10:04 AM - 14 messages
I want to draw some text (the string value of a variable) on an image: H E L L O Does anyone know how to do this (e.g. using g.DrawString)? ...
Referencing object properties
michelqa -
17 Dec 2008 9:33 PM - 8 messages
Hi, I'm wondering what is the correct way to build a function to retrieve properties from an object. Ex: public string GetControlProperty(string PropertyName) { // this function must return the specified propertyName from the control object. int Hwnd=66666; // handle is already set somewhere else ;o) ...
LINQ add more where statements
Luna -
12 Dec 2008 6:10 AM - 7 messages
How can I add additional where filters to a query via parameter input? filter = title == "data1" public IList<something> GetSomething(int id, Where filter) { var a= from t in database.Test where t.id = id && //insert more filter query here ...
Bogus control property values
Ray Mitchell -
17 Dec 2008 6:11 AM - 4 messages
Hello, I have some existing perfectly-working code like the following to detect the state of a CheckBox check change. I decided to rearrange a few things into different files, and the existing code still works perfectly. However, if I ...
How to Verify if EventHandler for ValueChanged has been set?
richard.martino -
16 Dec 2008 6:04 PM - 8 messages
I have a huge Windows desktop application with over 100 individual controls, like TextBox, NumericUpDown, ComboBox, etc. I want each one to have its ValueChanged (or TextChanged) event handler set, like: ----------- System.Windows.Forms.TextBox cityTextBox; cityTextBox = new TextBox(); cityTextBox.TextChanged += new EventHandler(cityTextBox_TextChanged); ...
Would a string instance become a value type if it was a member of a struct?
Sathyaish -
17 Dec 2008 10:47 PM - 4 messages
And I've probably asked this, like, a thousand times. In .net, a struct is a value type, so it gets stored on the stack. struct foo { int a; byte b; } In the above code, both variables, a and b, would get stored on the ...
System.Net.Mail.SmtpClient.Send() Error: An invalid character was found in the mail header.
clevrmnkey -
21 Dec 2006 9:56 PM - 4 messages
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to the bare minimum: ...
Dynamically adding Sql type to a parameter
tshad -
17 Dec 2008 10:14 PM - 6 messages
This is similar to my previous question. If I have a set of parameters that I won't know until runtime what the parameter type will be, is there an easy way to do this? For example if I have: ...
get object size C#
ApeX -
15 Dec 2008 8:50 PM - 19 messages
Is there a way to get size of an object stored in memory? I have an xmldocument which i fill with the some data, and just before i call the Save method, i wanna get the number of bytes that xmldocument is using in memory? ...
Bind event to Datagridview - where's list of events?
Rich -
17 Dec 2008 5:52 PM - 4 messages
Migrating from VB.Net to C# - I am sure that I can perform all the same actions in C#. Right now working with a Datagridview control. The only list of events I can see in C# for the Datagridview is in the Designer ...
Port DllImport from VB to C#
paul f -
17 Dec 2008 12:57 PM - 4 messages
do you knoe how to implement this VB import properly in C#? VB: Public Declare Function dscDIOSetConfig Lib "dscud.dll" (ByVal board As Short, ByVal config_bytes As IntPtr) As Byte my attempt: [DllImport("C:\\dscud.dll", EntryPoint = "dscDIOSetConfig")] public static extern byte dscDIOSetConfig(short board, IntPtr ...
Procedure xxx expects parameter '@ID' which was not supplied
Andrew -
16 Dec 2008 3:44 PM - 10 messages
ERROR [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Procedure 'sp_StoreData' expects parameter '@ID', which was not supplied. using (OdbcCommand cm = new OdbcCommand()) { cm.CommandText = "sp_StoreData"; cm.CommandType = CommandType.StoredProcedure; cm.Connection = Connection; ...
syntax for app.startuppath to move back one folder
Rich -
17 Dec 2008 4:36 PM - 9 messages
Console.Writeline(Application.StartupPath); returns C:\WinApp3\bin\Debug I want to go back to C:\WinApp3\bin I tried Console.Writeline(Application.StartupPath + "\\.."); but this only returned C:\WinApp3\bin\Debug\.. What is the correct syntax to return C:\WinApp3\bin ...
FolderBrowserDialog won't open sometimes
Ray Mitchell -
14 Dec 2008 7:49 PM - 7 messages
Hello, I'm using VS2005 Pro & WinXP. I have the following code to open a FolderBrowserDialog, with its initial path set to the directory specified by "oldDirectoryName", which does exist. FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); ...
about a query with linq
Tony Johansson -
17 Dec 2008 10:13 AM - 5 messages
Hello! I have two collections. The first collection consist of two fields which are named CommandID and Name. The second collection consist of 3 fields which are named WorksheetRowID and Parameter and Value So I want to join CommandID with WorksheetRowID but there is a problem ...
Trapping an email sent from a device
Jordi Rico -
10 Dec 2008 9:31 AM - 6 messages
Hi, I'm facing a problem I don't know how to solve. We have an IP camera with motion detect. This camera can be configured to send an email when it detects any movement. Well, the problem is I need to catch ...
Am i calling the database twice?
K Viltersten -
16 Dec 2008 9:34 AM - 7 messages
I run the following code, which works well and gives me the expected results. string cmdStr = "select Stuff from There"; SqlCommand cmd = new SqlCommand(cmdStr, _sqlCon); _sqlCon.Open(); int res = cmd.ExecuteNonQuery(); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); ...
SQLException - message property was empty
QC -
16 Dec 2008 10:00 AM - 6 messages
Hi Friends, When calling SqlCommand.ExecuteNonQuery() method, i got SQLException. But the surprise thing is, the message property was empty. Could any one provide some input about what went wrong and why the property value was empty? Thanks in advance... ...
Cross Platform encryption/decryption
shamsh -
16 Dec 2008 12:53 PM - 5 messages
I have a COM object written in VC++ which has encryption code.I would like to decrypt the string which was generated by COM. COM is using RSA and cryptoAPIs for encryption and .net will have to use the RSACryptoServiceprovider. ...
Linq Style
Michael C -
16 Dec 2008 11:36 AM - 5 messages
var x = from c in customers where c.FirstName == "John" select c; vs var x = customers.Where(c.FirstName == "John"); I've been tossing up for a while which version of linq I prefer and I think I've settled on the second. It's not quite as friendly to read in some cases ...
Perplexed on logging both text and binary information to a file
Andrew Falanga -
15 Dec 2008 10:20 PM - 9 messages
Hi, On the heals of my previous post I'm now asking for the proper way of writing text and binary data to a log file. I have a class, in the singleton pattern, that will be used for logging program operations to ...
UserControl, GUI inside the application on runing time, PlugIn problem
Sandra Baum -
12 Dec 2008 7:38 PM - 5 messages
Hello, I search for a good example. My idea: UserControl1 -- DLL1 -- with the red textbox Textbox1 --- result = Textbox1 red UserControl2 -- DLL2 -- with the blue textbox ...
Can C# 3.0 not be used in websites?
Rick van der Arend -
19 Nov 2008 12:40 PM - 4 messages
Hello, In my (Visual Studio 2008) solution, I am not able to use C# 3.0 features (like the var keyword) in all of my projects. Does anyone know what could be the reason? I am working in a solution with an ASP.NET website and several class ...
CPU bottleneck
AMP -
15 Dec 2008 5:04 PM - 6 messages
Hello, I have a app that reads data from a serial port and then does some pretty basic sorting. My problem is that the CPU usage get to 50-60% during this. What is the correct methodology to find where the bottlenecks might ...
Getting IP address & Physical Address from code in c#.
Pioneer -
6 Dec 2008 6:03 AM - 18 messages
Hi, I need to get MAC address/physical ip address of machine. I am using below code: ManagementClass mc = new ManagementClass("Win32_NetworkAdapter"); foreach (ManagementObject mo in mc.GetInstances()) { string macAddr = mo["MACAddress"] as string; if ( macAddr != null && macAddr.Trim() != "" ) ...
get namespace & classes in other projects
hdjim -
15 Dec 2008 6:11 PM - 8 messages
Hello, I have a solution with several projects. Is there a way to get the namespace.class of each namespace.classes in all the projects from a single project? I have added a project reference to the main ...
Static methods/properties in interface?
Dathan -
15 Dec 2008 8:46 PM - 3 messages
I'm working with a data retrieval / reporting system that I've designed which is capable of generating sets of data from a database according to some criteria. The various data set generators are implemented via classes which inherit from my DataRetriever class, and ...
Getting the oldest file in a directory.
Mufasa -
15 Dec 2008 6:02 PM - 11 messages
Is there an easy way to get the oldest file in a directory without having to go through all the files comparing the file modified time? TIA - Jeff. ...
Array - Does it exist?
shapper -
13 Dec 2008 1:26 AM - 16 messages
Hello, Is there a way to find to check if a string exists in an array of string and not mind the case? I have trying and Googgling for a solution but I am not able to find it. If it is not possible, how can I transform the array into a list so I ...
noise reduction in image
anonymous -
12 Dec 2008 2:00 AM - 12 messages
I am looking for imformation about how to quickly w/low processing reduce noise in a image. I seen a couple of examples of other ways off [link] (at the bottom of the page) but I ...
Override the property
tshad -
14 Dec 2008 5:40 PM - 6 messages
I have a class that I have that tracks when an object has changed or is set to null. I use it for data I get from my database to tell me if I need to update or reset the data to nulls. I am making changes to it and want to be able to ...
Base Class constructor problem
tshad -
14 Dec 2008 10:57 PM - 10 messages
I am trying to move as much data from my child classes to my base classes and am having a problem. Original Class *********************** using System; using System.IO; namespace FtsData { abstract class testClass { protected object _objInitial; ...
Bitmpa.Save & GZipStream - error
Alexander Vasilevsky -
13 Dec 2008 2:47 PM - 5 messages
Hi, there is a code using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.IO.Compression; using System.Windows.Forms; namespace TestImageTypeSize { class Program { static void Main() { ImageFormat[ ] formats = new[ ] { ImageFormat.Gif, ImageFormat.Jpeg, ...
How to close a StreamWriter class when the program exits
Andrew Falanga -
12 Dec 2008 10:49 PM - 11 messages
Hi, I've implemented a logging class for my program that uses the Singleton pattern (discussed here: [link]). Now, my log file uses a StreamWriter class object for the file. I'd ...
ProvideProperty attribute
Joe -
14 Dec 2008 6:15 PM - 3 messages
Hello. I have a component that adds a property to other controls similar to Tooltip. The property is added in the Properties window as expected. The Get method return a collection which derives from List<>. When the user ...
Partial file hashing
schneider -
10 Dec 2008 10:19 AM - 11 messages
Hi all, I want to calculate an MD5 hash of a file just to a certain position and then skip the remaining bytes, for example the first 600KB of a 1MB file. Copying the si gnificant part of the file into a byte[] is not an option since the ...
Dllimport System AccessViolationExecption
paul f -
12 Dec 2008 1:52 PM - 7 messages
Hi got an unhandled exception when I tried to call the dscDIOInputBit function contained in a 3rd part dll file, can you help??? here is the code.... using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; ...
WPF Add-In: UriFormatException when trying to use SiteOfOrigin
Wonko the Sane -
10 Dec 2008 8:57 PM - 7 messages
Hi Gurus, We have an WPF Add-In that we use to interact with our main WPF application. In order to localize it, I am trying to use a pack command to build a Uri as follows: string resourcesFileName = @"pack://SiteOfOrigin:,,,/MyPath/MyFile_us.xaml"; ...
Compare and Null
shapper -
14 Dec 2008 4:59 PM - 5 messages
Hello, I created a method to check if two objects (string, int, ...) are equal. The objects should only be compared if they are not null or in case of a string also empty. I am using the following: // Equal ...
Getting tags OTHER than blobb
K Viltersten -
9 Dec 2008 2:30 PM - 4 messages
I have a syntax as follows. XElement elem = ...; IEnumerable<XElement> enum = elem.Elements("blobb"); Now, i'd like to recompose it in such way so i'll get the list of tags NOT named "blobb". Can it ...
Broken WCF service reference in VS 2008
Bill McCormick -
26 Nov 2008 2:42 PM - 16 messages
I have somehow broken a service reference in one of my projects VS2008; it will no longer run the Update Service Reference. I made 2 changes: 1. Added a new endpoint to App.config 2. Merged the assembly that provided the contracts into another assembly. ...
what does this statement double? pPlanMinimum; mean?
c676228 -
12 Dec 2008 6:01 PM - 6 messages
Hi all, I am looking the code developed by our vendor and I came across a lot of statement with a question mark attached to a datatype. What is that? I am just a beginner for C#. Thanks, ...
Check extension
shapper -
12 Dec 2008 1:27 PM - 7 messages
Hello, I am creating a method that given a path and a list of file types (doc, docx, pdf, ...) checks if the file is of one of those types. I am using: public static bool FileType(string path, string[] types) { ...
Value equality
tshad -
14 Dec 2008 3:08 AM - 5 messages
I was reading about referential equality vs value equality and don't understand why I am always getting value equality wrong on 2 objects that I just created. The values should be the same (the referential equalities should be different). ...
linq --> changing a value?
Berryl Hesh -
13 Dec 2008 7:47 AM - 6 messages
I start with a list:, {"one", null, "three"}. I want to change the null value to say "<nothing>" and pass along the entire result (now {"one", "<nothing>", "three"}. I can select the null value doing something like the line below, but is ...
Private, Public, ... ?
shapper -
11 Dec 2008 5:08 PM - 7 messages
Hello, I have the following class: public class TagHelper { private MyAppDataContext database = new MyAppDataContext(); public static bool Find(string name) { bool found = database.Tags.Where(t => t.Name == ...
Filewatcher - what happens if a file is created while processing another one?
Mufasa -
12 Dec 2008 6:20 PM - 4 messages
So if have an object of type filewatcher watching a directory - what happens if while I'm processing a file created event another file is created in that directory? Will the event be fired again and be running while the first one ...
Convert doc, xls, pdf, rtf to plain Text (string) - I will pay for
Frank Uray -
12 Dec 2008 12:37 PM - 4 messages
Hi all I am looking for a C# class to read all text informations (including spaces) out of files. I need a C# class with just one function like this: public string GetTextFromFile(string local_PathFile, string local_FileType) ...
show stderr output dynamically
Andrus -
3 Dec 2008 6:36 PM - 4 messages
Long-running backup program mybackup.exe wrotes status messages to stderr How to show messages written to stderr if this program is running ? I tried code below but it shows stderr output only after program is completed. Andrus. using System; ...
Case insensitive generic list search ?
hdjim -
11 Dec 2008 3:48 PM - 12 messages
I have a generic list of strings List<string> which I use the Contains method to search but Contains does not provide a second parameter to ignore case. What is the best way to do a search on a list ignoring ...
Sanity check on call to imported DLL function
Charles Calvert -
9 Dec 2008 6:01 PM - 5 messages
All, I think that I've been staring at this for too long. I need a sanity check. Problem: To get values from an unmanaged DLL written in C++, I set m_data.TunerID = 1 and pass it to the imported function GetData(). ...
Compare Values
shapper -
12 Dec 2008 4:42 PM - 10 messages
Hello, I am creating a validation class and I defined a few rules. One is the following: public static bool Equal<T>(T value, T compare) where T : struct, IComparable<T> { return value.CompareTo(compare) == 0; ...
TickCount
tobiwan_kenobi -
10 Dec 2008 2:52 PM - 16 messages
We are having some problems with time-synching our machines. We have a system that logs stages of a job. But because of time-synching our database machine (from which we get the source date), sometimes record 50 records a ...
Developed using NextGeneration, the .NET Code Generator Try AdSense Reporter, the charting tool for AdSense publishers |
||||||||||||||||||||