Software Development Network Logo
  • SharePoint Products
  • Microsoft ISV
  • Visual C#
  • .NET Development
  • Visual Studio
  • IE Development
  • Game Technologies
  • Visual FoxPro
  • Windows Forms
  • Smart Devicet
  • Windows Vista
  • Visual C++
  • VS Team System
  • SQL Server
  • Visual Basic

Software Development Network >> Kevin619's Q&A profile

Kevin619

Member List

ramyaVijay
Michael_P2234
astrocrep
bennettdan
Ravonies
ron nash
ssfftt
Frank J DeFalco
UltimateSniper
giddy
J P R
Annihil8
Nfrf
YhanT
dickP
artsai
Scherild
sqldummy
Michael Wittenburg
R.Tutus
Only Title

Kevin619's Q&A profile

  • Visual C++ Problem with reading and writing in file

    Hello everyone, This is my problem - I want to read first line form the text file, viewing on the screen and replace second line whith new string. Here my code: #include <iostream> #include <fstream> #include <string> using namespace std; int main () { string st; fstream iofile; iofile.open ("C:\\sample.txt", ios::in|ios::out); getline(iofile, st); cout << st<<endl; cout <<"Enter new string:"; getline (cin, st); iofile<<st<<endl; iofile.close (); return 0; ...Show All

  • SQL Server How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?

    How to delete/drop all the tables from SQL Server Database without using Enterprise Manager I tried using DROP Tables, Truncate Database, Delete and many more but it is not working. I want to delete all tables using Query Analyzer, i.e. through SQL Query. Please help me out in this concern. Nishith Shah Hay man what you are asking for,if you just check my reply, the answere is there ok, try this, this will delete/truncate all the Data from each table for in the database you connected EXEC sp_MSforeachtable @command1 = "DELETE FROM " EXEC sp_MSforeachtable @command1 = "TRUNCATE TABLE " I too explain it now, as sp_MSforeachtable is Stored Procedure, that will execute for all the tables for database & @command ...Show All

  • Visual Studio How do I KeepTogether rows from one record?

    I have a report table that spans many pages, each database record is presented on several rows. How do I "Keep Together" the rows of a record The "KeepTogether" attribute of the table seems to relate to the whole table rather than the rows that make up a record. Any ideas anyone Thanks John Hi, I'm migrating some Crystal reports to rdlc format and I'm facing the same problem, Is there any update on this any workaround Thanks in advance Turg ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Multiple monitor problem

    Hi everyone, I am writing a Direct3D application that run in multiple-monitor mode. If I leave DirectX window on primary display, everything is OK (CPU% is about 1%). As soon as I move DirectX window to second display, CPU usage jumps up 100% even though I have not drawn anything in the windows. Any help would be appreciated. If your D3D device was not created to use the adapter connected to the second monitor then Windows will try to show your 3D content by transferring the results from the first adapter's memory to the second one's. This operation is of course too slow and is all done via the CPU. Read on Multimon support in the SDK docs to see what options you have to deal with multimons in D3D. ...Show All

  • SQL Server Problems with Reporting services

    I just installed SQL Server Express Advanced. I previous had SQL Server EXpress installed, which I didn't uninstalled. The problem is that, when I look in Services, it is not started and when I try to start it, I get a warning: "SQL Server Reporting Services started and stopped, some services stop automatically if they have no work to do". I have IIS installed and running. I have disabled Apache web server. What could be the problem Thank you. I have solved the problem partially. I have re-installed the .Net Framework, because initially when I installed it, I did not have IIS installed. Now that IIS is installed I re-installed the Framework and the Server Status is up and running. So, in my humble ...Show All

  • .NET Development Setting Application Root Directory during installation

    Developing a COM+ EnterpriseServices component. Need to set the Application Root Directory to the install directory in order to read the app.config. How can I teach the installer to set the Application Root Directory of the Server Application to the installation path not always lucian, using a jscript to do installation When there are deployment wizards Found another solution create a installer.cs class and implement Install and Uninstall. What is left is finding out the installation folder.... Which I do now with: System.IO.Path.GetDirectoryName( Context.Parameters["assemblypath"] ); not sure if there is a better way.... /// <summary> /// Install the application /// ...Show All

  • SQL Server How to completly stop mirroring, eg disable the endpoints on the server

    We have tested mirroring with success. Now we want to completly disable mirroring, and have done this on all mirrored database. It seems though that the server stille maintains the mirror endpoints, hence you can do a "telnet localhost 5022". How can we disable the mirroring endpoints Martin Tan SQL DBA ...Show All

  • Visual Studio Build macros no longer working after upgrading from VS 2003 to VS 2005.

    I have a long and arduous deployment process set up, and although it took me a while to get all the kinks out, it was all finally working just great for many months.... and then I upgraded to VS 2005. Part of this deployment process involves building my solution (obviously) using a macro. The code I use to do that looks like this: DTE.Solution.SolutionBuild.SolutionConfigurations.Item( "Release" ).Activate() DTE.Solution.SolutionBuild.Build( True ) ...again... this worked just fine... for a long time. But now that I'm on 2005, it doesn't seem to want to work. And that's not to say that it gives me any errors... oh no... that would be way too convinient. It just runs, but doesn't really do what it's supposed to. After runni ...Show All

  • Smart Device Development Adding main menu items to a context menu

    Hi, Can any one suggest me how to add an already existing MainMenu item to a ContextMenu In my form i need to show a ContextMenu when a treenode is tapped and the menuitems should be different for different nodes, which already exist in the MainMenu. It throws an argument exception if the item is removed from MainMenu and added to ContextMenu. Additional to this CloneMenu() does not exist in the CompactFramework. So, what should i do - Hari ...Show All

  • Windows Forms Application settings are overrun after a click-once update

    Hello. I have an win-forms application which I deploy (off-line) using ClickOnce. My problem is as such. I make use of the application settings, in "settings.settings", with several user-scope and application-scope settiings. Whenever I publish an update (and the client updates) his application settings are overrun with the project settings at the time of the update. This means that each machine on the client needs to be reconfigured every deployment. With 15 machines at this time it is a harrasment, as we are in a test-phase and updates are frequent, often several times a day. What I do to access the user-configuration data is as follows: App.Properties.Settings set = new App.Properties.Settings(); int aNumericVal ...Show All

  • Visual FoxPro set printer problem.

    Hi; What's wrong with this: cPrinter = getprinter() set printer to name cPrinter It always errors "Error accessing printer spooler" On the other hand, set printer to name getprinter() works fine. Thx. You have to use macros or named variables: cPrinter = getprinter() set printer to name (cPrinter) HTH ...Show All

  • Visual C# FolderBrowserDialog Exception when creating folder on Desktop

    Hi, I have a problem with a FolderBrowserDialog. I use VS2003, C# language on a Windows 2003 System and I ran the test project from an Administrator user. So, I tried to specify a path to a folder using the FolderBrowserDialog. However, if I browse to the current user Desktop and press "MakeFolder", an exception occurs: System.Runtime.InteropServices.SEHException: External component has thrown an exception. at System.Windows.Forms.Shell32.SHBrowseForFolder(BROWSEINFO lpbi) at System.Windows.Forms.FolderBrowserDialog.RunDialog(IntPtr hWndOwner) at System.Windows.Forms.CommonDialog.ShowDialog() at TestFolderBrowserDialog.Form1.btnBrowse_Click(Object sender, EventArgs e) in The folder is created but the Fold ...Show All

  • Visual Studio Team System Solution with multiple projects can't perform Get Latest when connected to source control

    I have an ongoing development project that we are trying to use as a test project for TFS. The solution for this system consists of a number of VB.net projects. I have migrated the VSS data into TFS and can see the tree in the Source Control Explorer, however when I open VSTS and try to create a new local copy of the solution I get an error dialog. The steps I took are: Open Visual Studio File | Add Existing Team Project; select the TFS server and Project In the Team Explorer window, Brouse to Source Control and double click In the Source Control Explorer, browse to my solution directory Highlight all and select Get Latest (setting the local directory) Double click the solution file. After a while I get a dialog that stat ...Show All

  • Internet Explorer Development IE7's Shrink-to-fit is one size fits all?

    Printing in a web app isn't easy. I have an application that loads a page into an Iframe, and a button outside of the iframe that does the iframe.focus();iframe.print() ; thing to print out the contents of the iframe. Whats inside of the iframe is meant to be print out on legal sized paper (8.5"x14"), which isn't the same as normal letter paper (8.5"x11"). In previous IE versions this worked like a charm. IE7, however, decides that legel size is not appropriate and applies the shrink-to-fit to shrink my beautiful legal sized document into a letter sized box. When printing, the printer expects a legal sized document since that's whats defined in the printer settings, but only prints a letter-sized box of content si ...Show All

  • SQL Server Problem with picking the right algorithm

    Hi I'm using SQL Server 2005. The problem I have is as follows. I have several production lines and as with everything parts in the line tend to break. I have data from all the breaks that occurred in the last 2 years. What I want to do is predict the next break and the production line it's going to happen on. I would also like to go to a future date and check what possible breaks might occur on that date. I've run quite a few models but none of them helps me with future events. I think I might be using the wrong algorithm or I’m just not doing it right. If somebody can please suggest an algorithm and maybe help me with a web site that has a tutorial similar to my problem Thanks Elmo As Yimin says, this ...Show All

©2008 Software Development Network