Naheem's Q&A profile
Visual Studio Express Editions Visual C++ Error...Please Help
G'day, Ive recently come upon an error, which prohibits me installing programs and so on. It occured when attempting to update and install Net Framework 1.1 Service Pack 1 of microsoft update and when installing Age of Empires 3. The error is as follows: Microsoft Visual C ++ Runtime Library error Runtime Error! Program: C:\DOCUME~1\Anthony\LOCALS~1\Temp\SL83.tmp This Application has request the Runtime to terminate in an unusual way. Please contact the application's support team for more information. Help would be much appreciated. Cheers. Tony Although the game appears to use Visual C++, it is unlikely that it is Visual C++ express and we do not have access to the game source code. ...Show All
Visual Basic How can I cycle through all the System.Drawing.Colors?
I worked out the Console version to cycle through all 16 available colors: Sub Main() Dim x, y As Integer For x = 0 To 15 Console.BackgroundColor = CType(x, ConsoleColor) Console.Clear() For y = 0 To 15 Console.ForegroundColor = CType(y, ConsoleColor) Console.WriteLine("Background: {0}; Foreground: {1}", x, y) Next y Console.ReadLine() Next x Console.ResetColor() Console.Clear() Console.WriteLine() End Sub I also worked out a program that cycles through 4 colors in a Windows form: Private Sub btnCycle_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCycle.Click Static x As Integer x = x + 1 If x = 5 Then x ...Show All
Visual Basic Editor changes keyboard @ and "
Hi, While in the VS code editor (VB or C#) it occasionally swaps the use of the @ and " keys - so the @ key produces the " character. Other keys change too. While typing I may be pressing some key combo that makes the switch, but I'm not sure what. If I have several instances of VS open it can change at different times - not all at the same time. The only way back is to close and re-open the IDE. Any ideas Thanks tj-uk wrote: So, Alt-Shift changes it per-app. Suppose I ought to be more familiar with Windows shortcuts. Thanks again. Correct, the IME keeps track of where it's being used. You can disable the Alt+Shift shortcut through the Languages control panel. On US ...Show All
Visual Studio 2008 (Pre-release) June/July CTP - RequestSecurityTokenResponse Guidance
We were using RequestSecurityTokenResponse class from System.ServicModel.Security.RequestSecurityTokenResponse since february CTP. Did not realize that this was gone in June CTP and later CTPs. This caused our security token service code to break. We were using this class to construct a SAML token. Here is our service contract: [ServiceContract(Namespace = "OurNamespace")] public interface ISecurityTokenServiceInterface { [OperationContract(ReplyAction = Constants.RequestSecurityTokenResponseAction)] Message GetSecurityToken(); } In our implementation of STS, we have following code: private RequestSecurityTokenResponse GetRequestSecurityTokenResponse(SecurityToken token) { RequestSecurityTokenRespo ...Show All
Visual Basic Through VB IDE, how can I find out if a particular program or EXE is running or not?
Through VB IDE, how can I find out if a particular program or EXE is running or not Please advise on what function to use. A code snippet would be more helpful. thanks. Thank you for your suggestion. It's a .net class that isn't readily available in VB6. So I would have to create interop in .net to make it look like a COM so VB6 can use it. I decided just to use .net instead of vb6. :) Thanks again. ...Show All
Windows Forms multiline problem
i have likes this equation; "label1.text = textbox.text" when my users click my button my form get the index of textbox to label but it arrange auto size for label and enlarge the width of label ;;; but i want this, when text is reached to 10 letter so text must continue to new line; summary i need multiline property in label; is it posssible and if it is yes how can anyone help to me; your sincerely; selamin aleykum muhammed ; muhammed have you read my this topic; http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=586510&SiteID=1 this is the my main problem about labels; i how can i do this with multiline problem i have to do two of them; i want to tell my purpose i have an webpart p ...Show All
SQL Server Retrieving data from .MDF???
Dear fellows, Up to the moment I've got enough knowledge for read data stored into .LDF files by dbcc log and so on. It's very useful and interesting. Now, I wonder how to retrieve the same information but on MDF files. At first, I want to make sure that is not possible by mean of traditional methods (dbcc or something like that) I suppose so but I'd like to hear opinions regarding that. Thanks in advance for any idea, though or further information. If you're just interested in poking about though, checkout this link . ...Show All
.NET Development Build connection string like COM?
I have an application that can support different database connections (Access, SQLServer, Oracle) and I want to let the user pick the provider and the data source at run time. In the COM world you can use interfaces such as IDBPromptInitialize and IDataInitialize... to do the heavy lifting. I want to do the same thing in my .net application. I've found the OleDbEnumerator and factory classes, and the OleDbConnectionStringBuilder, but there doesn't seem to be a cohesive method to all this. Is there anything that is a little more 'ready made' or do I have to manually enumerate the providers, and then manually enumerate all the possible key/value pairs for their connection string properties Thanks, Ken ...Show All
Windows Forms Printing - Getting notification of print
I would like to write an application that sends print jobs to a printer and notifies the user when the job actually prints. If the job doesn't print it would be nice if I could tell the user the printer is out of paper or is powered off but this isn't a must. I really just need to notify them when/if a job successfully prints. I've done some looking around and found code which lets you monitor a print queue making a bunch of API calls. I'm wondering if there is an easier way to get notification when a print job prints from a network printer. I'm currently sending the job using the PrintDocument class but it doesn't give you a way to track the print job (not that I know of anyways). I appreciate any links or other informatio ...Show All
Smart Device Development Deploying CABs to a device via ActiveSync using an MSI with installer class
I'm trying to deploy CAB files from my application to a device using a MSI project using ActiveSync. This method requires the CAB and ini files to be in a sub directory of ActiveSync. So I'm using an installer class to copy the CAB and ini files from the default c:\programfiles etc to the ActiveSync dir. The default dir is hard coded. This method is described in the msdn "Deploying >NET Compact Framework 2.0 Applications with cab and msi file" After a bit of tweaking this method works ok as long as the user does not change the installation folder from the default to something else. If this happens the installer class fails to find the cab and ini files and consequently the deployment fails. Is there any way of ...Show All
Audio and Video Development video on transparent form
I place a AxWindowsMediaPlayer component on form. When this form opacity 100% video is visible, but when I set opacity the video disappear. Try this forum for your question: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=8&SiteID=1 ...Show All
Visual Basic Using tableadapter cannot populate table
Hi, I am very new and just started to learn to use MS Visual Studio VB.Net 2005 to do programming to create database to populate data/information into table/forms. But no matter how I try, the table/form is empty. In other words, I cannot insert data/information into the table/form. Pls help and advice as soon as possible. Thank you. Rgds, cehor If your DB is an Access it should be pretty straightforward, the use of the wizard works for most of the time. If your DB is in XML, TableAdapter does not work, instead use XmlReader. Otherwise check about your connections settings, especially the credentials. good luck ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Connecting to port on Controller or Main console
I have a USB device I can send packets to from windows. How can I communicate to it from XNA Is there a DDK for xbox Ralf, Is there a specification to build custom device to Does XNA support device drivers ...Show All
SQL Server SQLCMD slower than OSQL for very large files.
Hi. I'm trying to track down why applying a largish .SQL file full of INSERT INTO statements executes in about 2min using OSQL and about 12min using SQLCMD. To explain, internally we're using RedGate tools to generate 'update' scripts to deploy data from our development databases. In the case of a 'full' deploy our data scripts end up being in the order of 100Mb or so in size (so quite small really). We add 'GO' commands every 500 lines or so to make sure the batches are applied regularly. I'm changing our patch scripts to use SQLCMD instead of OSQL (for a number of reasons not least being UTF8 data support), but have found that at the moment the same exact file is applied roughly six times slower with SQLCMD than using OSQL. The commands ...Show All
Visual C++ Need info regarding how to print unicode characters using VC++
Hi, I need info regarding how to print unicode characters using VC++ Regards, Nishant For those that are concerned, this question is also in the VC General forum at Need info regarding how to print unicode characters using VC++ . ...Show All
