Answer Questions
Pat11 Does Visual C# 2002/2003 work with .NET 2.0?
hi all i have visual C# 2002 STD; i dont know the price of visual C# 2005 but i dont want to get it cause am saving for longhorn(yep am broke) will visual C# 2002 work with .Net 2.0. if(true) with generics support Hi, to use newer versions of .net you may use sharpdevelop or the express editions. You can view a list of pricing here: http://www.microsoft.com/presspass/press/2005/mar05/03-21VS2005PR.asp However the exp ...Show All
santoshkumark Best practice on returning a list of objects in order to loop through in a method
Hi, I'm working on an existing application, which produces reports of individual user. Now I have to amend the app so that reports can be produced for all users. I planning to create a class call AllUsers, which has a method called getAllusers(). This method queries the database, runs a stored procedures to get a list of all user ID's. Then I want to loop through this list and create a user object (using the existing user object class) f ...Show All
erd remove specified character [] from string
Hi, I need to know How can I excluding any characters of a string except a specified set of characters defined by Char[ ]. Example: if I have Char[ ] x = {..,..,..,.........}; string y; and y is a mixture of characters in x and other characters not in x so how can I return a string z that contains only the characters belong to x and excluding all others Thanks in advance for any help. Aya. ...Show All
Jetto Error accessing win32, VC++ 2005 dll in C# 2005
I'm trying to call a win32 library function that I have authored in VC++ 2005 from C# 2005. I get an exception from the C# program that reads "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I cannot step into the function in the dll for some unknown reason, so I have no idea which parameter is causing the problem. Here's the function declaration in VC++ PEAKDETECT_API void ...Show All
Audalio import csv data into database
Hello, I'm a absolute beginner by programme asp.net with c#. I have to develop a tool, there I need to import some csv-files in the sql-database. I realy don't kown how to start. Can sombody help me, please thx Dabro thx for help. I fond a example in www thats help me to understand the topic. dabro Thanks dabro for the reply! I'm ...Show All
weezer24 Use of ReadLine
I'm using the command ReadLine of StreamReader to getting data from a text file, but when file has a accented word (like FIGUEIREDO) they return the word without the accented letter (FIGUEIRDO). The code I'm using is: StreamReader sr = File.OpenText(txtRetornoOrigem.Text); String line; while ((line = sr.ReadLine()) != null) { MessageBox.Show(line.ToString(), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } ...Show All
LATurner un named error when turing on the windows search deskbar
i installed wds because outlook 2007 prompted me to (nothing but trouble trying to do that ) finnally got it to install without getting acsses denied and outlook doesnt ask for it now but when i got to open the deskbar i get a window with the yellow ! mark and not text any ideas would be good. thx Hello farkewie, The WDS 3.0 beta does not yet include a user interface. As such, the deskbar should have b ...Show All
nka4 passing a string (varchar) to a stored procedure
Hello, I am using VS 2003 and SQL 2005. I can successfully pass an integer to a stored procedure and have it execute correctly, however when I try to pass a parameter with a string, it bombs out when trying to load my dataset. If I run the stored procedure directly on the server, it works great and returns the two rows, its just passing it in C# where it fails. It is a simple query looking for any row with the last name of "Brown". ...Show All
yatingg Questions about using Active X controls in C#
Hi, I am trying to use a activeX control in C#. I add the control to references. I need to call one of the function of the ActiveX Obj. I got confused here. It was defined as **.Register(int hWndCtrl, object Flags); VC++ provided sample as HWND hwndTop = GetDlgItem( IDC_EDITTOP ); hRes = m_pIDgnDictEditTop->Register( (long)hwndTop, CComVariant() ); In VC#,& ...Show All
isdelnorte C# Generics
Dear All, I have used C# 2.0 generics to build a class. the thing is that when i investigate the code using IlDasm, i could find the box with T parameters mentioned statements out there. but the main advantage is that boxing will not happen when using generics. can anyone justify this or suggest me whts wrong . regards, sundararajan.s Hi , This is the code that i use. when i view the class performadd< ...Show All
StevePO form size
hi, the form i am making contains i think 60 textboxes which are hidden to check if the values being pass is correct. it almost occupy the design page and when i add the listboxes and buttons i can't put it at the lower level. i think the page is already occupied by the textboxes. is there a way i could adjust this one. i don't want to delete the textboxes coz they're important. i have seen web pages which contain so many data ...Show All
JerryHerrera Keeping the info
I have several classes inside a class file, at the top of each one is: Info T = new Info(); other N = new other(); 'info' and 'other' are declared in another class, these are filled with information when the app is running, they are then needed later for a different process, the thing is, i dont know how to access the stored info from an ...Show All
Richard S command prompt return immediately when running console application
By default, a console C# app will hold the command-prompt until the app exits. Is there a setting in the .NET framework that will cause the command-prompt to return immediately This is sort of analogous to running a command in the background in unix by appending & to the command. sean_n wrote: when i run other apps from the same shell (win xp command prompt), i get the prompt back immediately. how do i make my C# app work ...Show All
EricV C# project always rebuild if Xml Documentation is set
Under Visual Studio 2005 Beta 2, I noticed that the C# projets are always rebuild if the option to generate xml documentation is set (and this make all the projects that depend on the project to always rebuild aswell) . The following steps can create the problem I'm talking about: 1) Create a new "Class Library" C# project 2) Build it. It should build it (i.e. you see in the output "csc.exe ..."). 3) Build it again. It should not build it (ie. ...Show All
qdewolf Dynamic menu bar
Hi. Your help is very much appreciated. I am building Win app in which I'm allowing the users to add entity-types (i.e. entity-type = client or supplier,etc..) at run time .(I dynamically add tables in the db to support this requirement [I add client table, supplier table, etc.). However, I want to menu bar to reflect the existing enitity types. So I want the menu bat to look something like: Clients | Suppliers .... Find Find Add ...Show All
