irs's Q&A profile
Software Development for Windows Vista UAC Compliant application
I have a win32 application which is working very well under XP. I am testing on a Vista box and unless i elevate the application to "Run as Administrator" it won't run.Also my app.won't run to fullest extent since my app.writes to specific system folders, access HKLM in registry etc. I am planning to change those pieces which are accessing system folders and registry inorder to work well with UAC in vista. Do i need to do any specific thing to work on vista apart from above I am not planning to recompile the code base on Vista or i won't be using any features specific to Vista. All i wanted is to say to my customer is that my app.works on Vista too :) I have found the following resourc ...Show All
Windows Forms RichTextBox font size mismatch with a label
I have a custom control that is a RichTextBox combined with a Label. They have the same Font (i.e. label.Font = this.Font; where I have extended the RichTextBox class), but the label's font does not align properly with the RichTextBox's (i.e. it appears smaller than that of the RichTextBox's). I have been unable to determine why this is. Does anybody know what would be the cause of this ...Show All
Smart Device Development VS2005 can't find SDK 1.1 for SmartPhone app using Localization
Hi, I get the following error trying to compile a CF 1.0 targeted application in VS2005: Error 14 Localization of projects targeting .NET Compact Framework 1.0 requires version 1.1 of the .NET Framework SDK, which is not detected on this machine. ViewerSP I have the .NET framework 1.1 installed, as suggested, which I downloaded from: http://www.microsoft.com/downloads/details.aspx displaylang=en&FamilyID=262D25E3-F589-4842-8157-034D1E7CF3A3 Under my Program Files\Microsoft Visual Studio 8\SDK directory I only have one sub-folder named "v2.0". If VS knew about a 1.1 SDK I assume it would be put here( ) Any help is appreciated. regards, Scott Powell. VS 2005 does not insta ...Show All
Windows Forms Generic Drag and Drop (no hardcoding source in target's events)
All the drag & drop examples I have seen on msdn and google are between 2 controls that are aware of each other. The target control knows exactly what the source control is and vice versa. However, in a more realistic environment, the target control shouldn't need to know where the source is coming from or even modify the source at all. For example, let's say I have two listview as source (lvSrcA, lvSrcB) and two listview as target (lvTarA, lvTarB). The rules are as follows: lvSrcA to lvTarA - Move lvSrcA to lvTarB - Copy lvSrcB to lvTarA - Copy lvSrcB to lvTarB - Move The ideal way to implement this is if in the target's dragdrop event, the target can ask the source what to do. Right now, lvSrcA will always have to ...Show All
Visual Studio Express Editions Data transfer between a Com port and a Text box
Hi Everybody, I am having Visual studio 2005 Express Edition with me. I want to transfer data between a Text box and a serial port. Is it possible If so, can anyone guide me in doing this. Warm Regards, T.Dilip Chakravarthy. In the knowledgebase on our homepage you may find a small program for serial port communication, which does what you need. The program is complete with source code and a very detailed description. The URL is: http://www.innovatic.dk/knowledg/SerialCOM/SerialCOM.htm Best regards Innovatic, Carsten Kanstrup ...Show All
Visual Basic Detection of Insertion and Removal of USB devices
I am having problem with my FYP that my application is based on the detection of Insertion and Removal of a device. I am aware that this would happen using Win32_VolumeChangeEvent class or WMI. (Please notify me if I am wrong). Kindly solve this problem and send the code for Console Application in VB.NET. Please do not send code in any script language or C#. Also to get the device information. IamWasim wrote: I am having problem with my FYP that my application is based on the detection of Insertion and Removal of a device. I am aware that this would happen using Win32_VolumeChangeEvent class or WMI. (Please notify me if I am wrong). Kindly solve this problem and send the code for Console Application in VB.NET. Please do no ...Show All
.NET Development System.Security.AccessControl Namespace
Hello! I need several classes from the System.Security.AccessControl Namespace (FileSecurity, FileInfo.GetAccessControl method...) and that namespace seems to be new in .Net Framework version 2.0. i have installed that version but my visual studio is using the old version of mscorlib.dll i.e. file version 1.1.4322.2032 and when i try to reference the new version of the file mscorlib.dll (which is part of .NET framework version 2.0) i.e. file version 2.0.50727.42 a get the message that the reference to that file could not be added with the explanation that the file is not a valid assembly or a COM component!! Please help! it is quite urgent... Goran. Yes I expect .NET 1.1 does not recognize an assembly compiled in .NET 2 ...Show All
.NET Development Clipboard in Webservices
How do i use Clipboard in webservices I see that the Clipboard class is under System.Windows.Forms which cannot be used in webservices Yuva Hi, The clipboard is associated with the windows user profiles. (ASP.NET does not load a user profile by default, and it does not security privilegies to do it unless you impersonate with an Admin account). Regards, Pablo. ...Show All
Commerce Server DataWarehose setup configuration's
Hi! We have successfully developed and setup a CS2007 solution for one of our customers. We have waited with the report part since we will use std cs2007 reports out of the box. But... The customer wants to split the installation for DW database and Analysis services. Is this possible The DW.Pup has no configuration part to address DB DW Servere and Analysis server on separate servers. The installation of DW.Pup creates the database but not tables and procedures. The DW.Pup fails with Microsoft OLE DB Provider for Analysis Services 0x80004005: Cannot connect to the server 'PLAZA02'. The server is either not started or too busy. Database created on PLAZA02 but no User Tables. The configuration: DB Serve ...Show All
Windows Forms Problem: Can a Form == a Control??
This is quite an interesting problem (well I think so, but then again, I am a bit strange). I have a .NET 2.0 application that consists of a number of panels that can be dragged around and docked - not unlike the Visual Studio IDE in fact. In these panels I can put any control I care to choose. All well so far. Now then. I have another .NET 2.0 application which fulfils some functional need (as applications tend to do) but it was a bit of a nuisance that it was a separate app. I wanted it to be included as part of my aformentioned panel app. So, after having a look at the object hierarchy for Form, I noticed that it derives from Control. "Yipee!" says I, theoretically I can drop an instance of this entire app as a Contro ...Show All
Visual Studio Express Editions Connecting to SQL Express
I'm trying connect to SQl Express using the Visual C++ Express, but I can't...... Can anyoune help me Thank's 1) are both SQL and C++ installed on the same machine SQL Express doesn't allow remote connections by default. 2) If they are on the same machine, is SQL Server running Go to Control Panel, Administrative Tools, Services and see what the SQL service status's are. SQL has to be running to connect to it.... -Tim <MSFT> ...Show All
Visual Studio 2008 (Pre-release) ListView row value warp
Hy, I wrote a ListView with a GridView that populates from a database, the columns have fixed widths, my question is: Is it possible to warp the data in a row so that you can see the whole text on multiple lines, now the text is only in 1 line and not completly visible. Thanks for your help, you can add TextWrapping = " Wrap " to make the text wrap ...Show All
Visual Basic How do you trap errors from System.Drawing.dll?
When I execute the following code, I get the error - An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.Drawing.dll. In this example it occurs because the wmf file is very large and PictureBox1 size mode is Auto. I know I can prevent this error, but that's not the point. The point is I can't trap it. The error never gets caught. Can anyone please enlighten me as to why this is possible and what if anything can be done about it I thought exception error handling was supposed to prevent this type of thing from happening On a separate note, it would be nice to know (or be able to calculate) the size limitation of the PictureBox control. My guess is it's hardware dependent and therefore not docum ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA with C# Professional version
I can find any of this in the FAQ so I'll ask: Is there a way to get/install and use the XNA framework with the professional version of C# My Visual Studio Professional already as C# installed. I'd like to be able to play with XNA without playing to many installation games Thanks, Gary Not yet. I tried already a week ago (when trying to get XNA working on my x64 platform) to get it to work in VS 2005 Pro, but it is not that easy. Yes, it is quite annoying, especially since my beloved Code Rush doesn't work in Express But maybe it is possible to copy some files over and get it to work, will try again in a few days when I get annoyed Code Rush is still missing. In the future Ms will make bigger versio ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Files on Xbox360
I'm in the process of writing my master thesis about hybrid shadow casting methods using the Xbox360. I have a few questions I would love to have clearified. - Say I wanted to use a .3DS file to represent my scene and models. Are there a way to get this file to the xbox360 without using the content pipeline since it doesn't support this format. I know this might be a simple problem, but I just can't seam to figure out how to do it. I know that Abi's RocketCommander uses some custom .level files which is just placed and copied directly. Would this work for .3DS files as well - In case it does, how would I access it Normal file IO This whole reason for using the .3DS file format is the fact that it incapsules geometry, cameras, ligh ...Show All
