Berni Ployer's Q&A profile
Visual C++ trouble with fstream::open nMode parameters
Hi all, I am a C++ noob and am working through a book aimed at game programming. I am currently working on opening, closing, and otherwise dealing with file streams and have some questions about some example code in this book. I am using Visual C++ 2005 Express Edition Beta 2 and have the MS Platform SDK installed as well, just so you have an idea of my authoring environment in case that is an issue. In the example I am working on, I am experimenting with various modes of opening a file using fstream::open method, and I am running into problems with a couple of the nMode parameters in the example. The 1st parameter I am having problems ...Show All
Visual Studio Express Editions When checking for Visual Studio 2005 updates, but all I ever get auto updated is Windows XP
I am always checking for Visual Studio 2005 updates, from within the Visual Studio application. But all I ever get auto updated is Windows XP, of the last 40 or 50 updates, all I have gotten are windows XP updates. It seems that I would have gotten at least one update for standard edition C# since I installed my original copy I don't think there has been any yet, there will be a service pack soon as I understood it. Check here http://msdn.microsoft.com/vstudio/downloads/updates/sp/ There hasn't even been a update for VS 2003 .NET ...Show All
Visual Studio Express Editions I think the solution is simple:
Im just trying to get for loops to work properly and just basically messing around. This does actually work properly; yes i realize the names are retarded but they just came out :P Basically in this program you highlight an item in the textbox, and when you press ok that selected item will come up in a messagebox and say "you have selected so and so" Anyway... my question is how would i get this to display "You have selected nothing" when the user clicks the ok button and nothing is selected in the listbox. for ( int counter = 0; counter < listBox1.SelectedItems.Count; counter++) switch (li ...Show All
Visual Studio Express Editions Cannot Access Free Registration Materials via Thank-You Emails
Hi everyone. I'm trying to access the free downloads that come with registration, but I only see the Web Developer downloads listed. I don't see the icons, components, or book that come with C#. I assume they would all be listed on one page, but they aren't there. How can I find them Thanks, John Salerno P.S. I don't understand how to download what *is* there either. The link to the Web Developer book says it's a pdf, but when you download it, the file is an aspx file that won't do anything when opened in WD. When opened in an internet browser, it just tries to download itself again. Maybe the site will be updated and fixed tomorrow. ...Show All
Visual Studio Express Editions Help with SaveFileDialog???
Hi Ladies and Gents, Please can you help with the below The SaveFileDialog is appending to my text files and I can't find a way to get it to overwrite whatever existing text is in the save file. Please can someone advise me Private Sub SaveToolStripMenuItem_Click_1( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click Dim Save As New SaveFileDialog() Dim myStreamWriter As System.IO.StreamWriter Save.Filter = "Plain Text Files (*.txt)|*.txt|All files (*.*)|*.*" Save.CheckPathExists = True Save.Title = "Save" Save.ShowDialog( Me ) Try myStreamWriter = Syst ...Show All
SQL Server Server: Msg 8624, Level 16, State 1, Line 62 Internal sql server error After running SP4
I upgrade our client server with SP4 recently and got problem in one stored procedure which was working perfectly on SP 3a. "Server: Msg 8624, Level 16, State 1, Line 62 Internal sql server error" the script which gave the above error is Delete a From [CRM].dbo.Portfolio_Role_Assign a Inner Join [CRM].dbo.Portfolio_Assign On PRA_Portfolio_AssignID = PA_Portfolio_AssignID Inner Join [CRM].dbo.Portfolio_RoleMap On PRA_RoleID = PRM_RoleID Where Not Exists (Select 1 From Account_Relationship Join Interested_Party ip On ar_ipid = IP_id Join [Portfolio]..MapAccountEx MapAccountEx On VendorID = @VendorID and ar_Acco ...Show All
Windows Forms Simulating Key events _from_ keyboard
Hello all. Does anyone know why Form.Show() resets the Form's X and Y coordinates after showing (this program uses dual monitors) Bounds before: 1024, 0, 1024, 768 this.Show(); Bounds after: 0, 0, 1024, 768 //trying lots of methods to set the Bounds... arg this.Bounds = screen.Bounds; this.Location = screen.Bounds.Location; this.SetDesktopBounds( screen.Bounds.X, screen.Bounds.Y, screen.Bounds.Width, screen.Bounds.Height ); Console.WriteLine( this.Bounds ); this.Show(); //this.Visible = true; does the same thing Console.WriteLine( this.Bounds ); Thanks for the help! Edit: FormStartPosition.Manual works! thanks! ...Show All
Smart Device Development Auto discover com port and baud rate
Hi All, Currently, I am developing a GPS application in C# Compact Framework 1.0. The application has been up and running, until I start to deploy it to other devices that have different serial port number and different baud rate settings. Can I know how do developer usually work around this "different settings in different devices" issue I think there are a lot of possibilities if we try to check one by one. Isn't it Ex: Com 4 -> 2400, 4800, 9600, 19200 etc Com 5 -> 2400, 4800, 9600, 19200 etc Com xx -> xx xx xx Please help and thank you for the replies You mig ...Show All
Visual C++ Visual Studio 2005 Team Suite
When I compile my application it display only result not compiling process. How do i set compiling process for each file in Visual Studio 2005 team Suite in output pane Build Window display only this message ---------------------- Done ---------------------- Build: 0 succeeded, 1 failed, 0 skipped please tell me how do i solve this problem Tools + Options, Projects and Solutions, Build and Run. Choose a setting in the MSBuild Project build output verbosity combobox. ...Show All
Visual Studio Numeric operations on MSBuild properties
Is there a way to perform numeric operations on property values For example, incrementing a numeric property by one The only operators I've found so far are comparisons - am I missing something obvious Yes, you can pass in a parameter that either specifies the entire build number, or any piece of it. The announcement will go up at http://blogs.msdn.com/msbuild/ , and will be one of the entries in our "here's what we blogged this week" announcement at the top of this forum. I'll probably post here as well, since there's so much interest in it. Neil ...Show All
Windows Live Developer Forums 500 x 500 ?
I am designing my app @ 500x500 as the documentation mentions this, but it seems like this resolution is too big as the app doesnt fit in the messenger window and scrollbars are visible. Also, why is there a limit of 500x500 when the msn app window can be resized and there is a possibility to scroll within the window Can I somehow resize and lock it to 500x500, hiding the scrollbars when the app is started I'd really suggest using the overflow:hidden css property for these. Messenger does automatically resize the window based on your resolution; if you don't have enough space it does try to move th ...Show All
Visual Studio Ensuring 1 Print Attempt
I'm creating a system that prints checks and my client wants the system to only allow any particular check to be printed once - only one print attempt per check . Even if the printer jams or the thing messes up and the print job fails that is okay as long as an attempt to print can only occur once per check. (Policy would have us create the check again from scratch) I tried disabling the reportviewer control after the print button is clicked, and that works, but the print dialog box gives the option of printing multiple copies and I could find no way to shut that off. If I could find a way to shut off "Number of Copies" in the print dialo ...Show All
Windows Forms Do I hear C# anytime soon???
I was wondering if there will be a C# sample of TaskVision anytime soon I myself learned C and Java and had no problem getting used to C#. For somebody who has never had to deal with VB, it is certainly a time-consuming effort to read this code. Why do you think Microsoft even added J# code to their library of quick s ...Show All
Visual Studio Express Editions Finding the highest integer in a set of numbers or string of numbers
Hello, I have an xml file containing a number of news items each with a unique id field. What i'm trying to do is finish off my add news procedure. So far it creates the new item fine, all that remains is to get the program to make the variable, for the id) one higher than the biggest id already in the xml file. I'll try to explain: xml file has many items e.g.: <item id="4"> <item id="8"> <item id="9"> etc. and i can get those id's and put them in a long string like this: |4||8||9| (The |'s are to separate the numbers up so you don't get 148921, because from this my program wouldn't be able to tell the ...Show All
Visual Studio Express Editions Getting started walkthrough and the cardgame program
Does this program actually do anything All I get is a brief flash of a DOS window What a way to start! Gordon The program compiles and runs.....it just doesn't do anything. With a module being called cardgame.cpp I expected some sort of game to start unless the whole thing is used just to demonstrate how to but breakpoints in..... but then why not use simpler program like x = 10; y = 5 ; I am slightly mystified as to the relevance of the program PS by the way I include system("pause"); and compilation error occured Thanks Gordon ...Show All
