Venkata Prasad K's Q&A profile
Visual C++ Getting a Collection of sublcass objects. Is this possible?
I have a question on C# clases. Lets say I have a base class of type Employee. Then assume I have sublcasses of Employee cales HourlyEmployee, SalariedEmployee, etc. Is there any good way to get like an array or ArrayList that contains one instance of each subclass type without explicitly having to insert them one at a time manually I would like some recomendations on this if you have any. I hava a situation where I might have to add many sublasses and maintaining the manual entry into something like a colletion would be painful. Thanks C# questions should be asked in the C# forums. As for the question, I suggest that you enum the classes of a namespace or assembly and build your tree ...Show All
Visual C# NO error, but I got only part of what I want to get.
No error was complained! The following program is to write a whole year's month,day,weekday in a MSSQL table. But somehow, for many times I have tried, but each time I got only part of what I intend to get: the whole year with 12 monthes, instead, I only got 3 or 4 months' content in the table. Can anybody tell me why calendar.dll using System; using System.Configuration; using System.Data; using System.Data.SqlClient; using database; namespace calendar { public class calendar { private int _nian; //year private int _yue; //month   ...Show All
SQL Server error when connect to sqlserver from another machine
hi .. i install sqlserver and make app with vb6 using ADO to connect to the database and successfully i put that application on another pc on the network when i open it it says "can't login computername\guest" !! any help thanks in advance. It's hard to describe "domain controller" and related stuff in short words. I recommend you find some documents related to Windows Networks to read. Are you sure your client is running under the user account you created and you used that account to login to the server It means you may need to login the client Windows system and run your client app under that account. If you user Administrator or even logon the computer without a user/password, it won't work. ...Show All
Visual Studio 2008 (Pre-release) Xbap and standalone applications in Vista.
I came across some errors while developing wpf applications in vista. So I have a couple of questions. I would appreciate anybody who makes an effort to go through them and answer. I have tried to document what I tried in some detail. Question 1 I created an xbap (formerly known as WBA) application using a standard template provided in VS 2005.Hit F5 to start application with debugging, so my xbap application launches within IE. This is the expected behaviour. Until this point everything looks good. Go to the bin\debug inside my project directory and double click on the xbap application there. I get an error message. Well this no the expected behaviour. "Application cannot be downloaded. Check for network connectivi ...Show All
Visual Studio Express Editions input validation
hi all.......... how can i set at a textbox so that the textbox only allow numeric value to be enter into it.....and will pop up error message if non-numeric is input to the textbox Because i want to set textbox to accept money value..... please provide me the solution if anyone know... thanks Hi There is no Numeric TextBox by default avalible or (I didn't see it yet in VS2005) you have to create your own NumericTextBox for this purpose or you can use a numeric dropdwon. Here is a Numeric Text Box Code :: (Customize it according to ur need) using System; using System.ComponentModel; using System.Windows.Forms; namespace ApplicationManager.Library.Controls { public class WinNumericText ...Show All
Visual Studio 2008 (Pre-release) ParserContext incorrectly turns relative paths into absolute
If I understand well, ParserContext permits to resolve relative paths. For example I can specify an image using "Images\1.jpg" while the ParserContext specify the Base Uri to resolve this relative path. The problem is during save. If I use XamlWriter.Save the absolute path is saved so if the xaml is moved to another folder, the xaml resources cannot be reloaded anymore. So what is the trick to solve this Thanks, Raffaele This is a limitation of XAML serialization. See http://msdn2.microsoft.com/en-us/library/ms754193.aspx Best advice would be not to use it and implement your own method of serializing objects, which is what most xaml editors do by keeping a logical copy of the tree and implementing their own s ...Show All
Visual Studio Tools for Office Word - This is not a valid Style Name
Hi, There is no appropriate forum to ask this question but I think this is the best place to ask. I am doing a complex XML/XSLT tranform into RTF. Please don't confuse this with an XLM/XSLT question because it's not. It's actually an RTF question. The output product of this transform is an entire mental health directory in Word 2003 RTF Format. For some of the formatting I have to create a table. The XSLT template has paragraph style definitions, Table Style Definitions, Font definitions, color definitions and page setup information. I obtained this header for my template by simply setting a page the way I wanted and cut and pasting Word RTF output. This has worked very well for the first half of ...Show All
.NET Development ODBC Access using Server Explorer gives TABLE_CAT error - Kludge Workaround
Hello I am having a problem accessing the ODBC tables from the Visual Studio .NET 2005 version I am trying to use the Server explorer (View a Server Explorer) option in VS 2005 to acce ss the data through one of our properiatiary database. I am able to successfully login and execute Select Queries in the Queries BOX. But when i try expanding the drop down of TABLES and VIEWS in the right pane after connecting through the system DSN, I am getting the following error. Microsoft Visual Studio Column 'TABLE_CAT' does not belong to table Tables. This method works fine with the VS .NET 2003 version. I was trying to find out if this could be a problem since couple of folks had reported this problem in ...Show All
Visual Studio Express Editions Authentication problems when trying to connect to SQL server database
Hi Trying to connect to SQL server express database using vb.net express. When i use the SQL management studio to log into the database i log in using windows authentication. When i try connect using vb i use the following connection string: conn.ConnectionString = _ "server=MEISENSTEIN\SQLEXPRESS; database=wellness clinic; Integrated Security=True; User Instance=True; Connect Timeout=30" but receive the following error: Cannot open database "wellness clinic" requested by the login. The login failed. Login failed for user 'MEISENSTEIN\Michael Eisenstein'. Any ideas why i can't login using windows authentication. Any help would be appreciated. Hi, This is ...Show All
Visual Studio Command line build can't find odbc32.lib - but it's there!
I have a console application written in Visual Studio 6.0 that I'm trying to get to build using Visual C++ Express (plus the PSDK). So far I've had success. However, I'd like to protect this application with source control, and I'm running into a problem. The application is already under source control. With VS6 I can check out a fresh sandbox and build it from the command line using nmake makefiles that invoke msdev. I have converted the makefiles to use msbuild instead, and the command line build works. Now, I've checked in the new makefiles and the .sln and .vcproj files, so when I check out a fresh sandbox and build, Visual C++ Express will be used. But when check out a fresh sandbox and do a command line build, I get a link error ...Show All
SQL Server Backup problem
Sorry if i am in wrong place. i read http://msdn2.microsoft.com/en-us/library/aa225964(SQL.80).aspx the 1st two commond successfully executed USE master EXEC sp_addumpdevice 'disk', 'MyNwind_2', 'c:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MyNwind_2.dat' --Create the log backup device. USE master EXEC sp_addumpdevice 'disk', 'MyNwindLog1', 'c:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MyNwindLog1.dat' But following command gave me an error which is in the last of this post ( red colored ) -- Back up the full MyNwind database. BACKUP DATABASE test TO MyNwind_2 -- Update activity has occurred since the full database backup. -- Back up the log of the MyNwind database ...Show All
SQL Server Capturing "NaN" and "Infinite" values
Anyone know of a clever way to detect "NaN" and "Infinite" values coming from OLAP cubes ...Show All
SQL Server How does Database Mail work in SQL 2005
I successfully setup a database mail account and profile. I would now like to use database mail to setup up a job to email a mail group a report on a set schedule. Thanks For information on using Database Mail with SQL Server Agent take a look at this: http://msdn2.microsoft.com/en-us/library/ms186358.aspx If you're asking how to use Database Mail to email reports from Reporting Services, that's not possible. Reporting Services has its own email infrastructure. Take a look at the following topic: http://msdn2.microsoft.com/en-us/library/ms159155.aspx ...Show All
Visual Basic Running clock
Hello all. This is my first post, so pardon the noob stuff. I am trying to get a running clock inside a text box. I have everything setup except getting the clock to refresh itself every second. txtClock.text = TimeOfDay My question is how do I refresh the clock. I been thinking about putting it in a loop statement, however, I can't get it to run (endless loop). It complies fine but won't display anything. I don't want a specific time for it to end, that’s why there is not a (i += 1) in the loop. Dim i As Integer = 0 Do While i <> 1 txtClock.Text = TimeOfDay Loop Any help would be appreciated. You could use the timer control (it's in the toolbar) Jus ...Show All
Windows Forms how can i change the source code of a webpage with webbrowser control??
i want to add some source code to a webpage to add some functions for my own uses.... for example a webpage has a javascript function a(str){ ..... } i want to add an other function b to filter out some text.. so function a(str) {b(str); .... }.. for example, there are some ad blockers will block some of the ADs, and replace the AD's picture with "AD Blocked" or something,, but the page is still the "original page" not a new blank page with the original page's source code,,.. if you open a new blank page and write the original page's source code to it,, it will affect the browsing,, it'll consider as a different host's page,, the child frames from the original page can't access thei ...Show All
