Lappu's Q&A profile
Windows Forms clarity of images
Does anyone know the best way to expand an the size of an image without losing clarity or resolution Or at least how to lose the least amount. Thanks in advance, smtraber The issue is that you can't GAIN quality, so as you increase the image size, some pixels will need to be interpolated. To do this at the highest quality possible, do this first: gr.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; gr.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; assuming that gr is your Graphics object. I believe the first line is all you need, actually. ...Show All
Visual Studio Team System Using VS2005 (beta 2) with custom rules
Hi, I'm trying to integrate custom FxCop rules using the Code Analysis capabilities of VS2005 beta 2 and I'm hitting some problems :( I've written a very simple custom rule which loads and runs OK under the stand-alone version of FxCop 1.32 I've then changed the FxCop and Cci references (and imports) to hook up to the integrated version of FxCop (SDK under "Team Tools") so I can load the rule for use in the IDE but that's where it all goes a bit pear shaped! I've copied my compiled DLL into the "Rules" subdirectory and hey presto my rule assembly name appears in the rule list on the Code Analysis tab in the IDE ...Show All
Visual C# Check whether string contains uppercase letters
I want to create a password validation method so i want to check whether sring contains at least 1 uppercase letter... how do i do this public void ChangePassword(string UserID, string oldPassword, string newPassword) { if ( IsValidPassword(UserID, oldPassword) ) { if (newPassword.Length >= 8) ...Show All
Smart Device Development Writing programs compatible with PocketPC/Smartphone 2003 and WM5.0
Hello I'm wondering what I have to think about if I want to write programs that will run on all of the following platforms: PocketPC/Smartphone 2003 WindowsMobile 5.0 PocketPC/Smartphone I have a program written in c that I only need to provide with a screen buffer to using GAPI and pass on any keypad inputs. The rest the program handles itself. The reason is that we develop for all kinds of platforms and we need it to be as independant as possible. So what really I'm looking for is a wrapper that will build and run for all of the above platforms. Is that possible or do I need to write a specific integration wrapper for every one of those pl ...Show All
SQL Server Problem Connecting to SQL Express when 2005 Developer Edition installed
Hi all, I have been writing applications in C# that use sql express databases as their data stores. These programs functioned correctly when they were written. I recently installed SQL Server 2005 Developer edition on the same machine. I had to uninstall the express edition before the installation would complete, and reinstall it afterwards. I can connect to and manage sql express with the management studio, but my applications cannot connect to sql express. I have trouble connecting to sql express database files within visual studio, unless i change the connection properties to 'User Instance=False'. this does not fix the app ...Show All
Visual C# C# File signature
Is there away in C# to search or get the signature of a file This is a simple explanation of file signatures: "On a windows system a file signature identifying the type of file is normally contained in the first 20 bytes of the file. For example a Windows Bitmap file with the file extension .bmp would contain "424D" hexadecimal in the first 20 bytes." File signatures are also used in antivirus programs. An antivirus mathces a file signature with its database to see if the file is infected. Anyone know how to get file isgnatue in C# code thx Regards Alan Do you mean using a tec ...Show All
Software Development for Windows Vista Webcam to synchronize with Flash (SampleGrabber capture latency)
Hi I am in the midst of developing a Directshow filter dll which allows me to interface with a webcam. MY problem is that when i try to run SampleCB() from the samplegrabber, it only starts capturing after a 30ms delay. If I use ->getCurrentBuffer() to obatin the last buffered frame, it returns me a frame that was captured more than 50ms before I even requested for the snap shot. I believe this is because SampleGrabber duplicates or calls these functions only when it receives each frame. If the frame rate is 30 frames per sec. Then the interval between frames is about 30ms. Hence if the request is in between, I would not get the exa ...Show All
Visual FoxPro Grids are readOnly. How do I put text in them?
Hi there. Kind of embarrassing asking simple question when other people post such advanced requests. I am new here. I got as far as creating a form with two grids and other controls I need. There is a Pageframe that switches between pages and I have each grid on the corresponding page. All the way I am making comparisons with dBASE stuff which I hope soon will be a thing in the past. Anyway, when I run the form all rows in grids appear to be read only. I cannot enter any information in any columns. I want preempt a question about the tables. I did creat a database with two tables I need, made appropriate fields and indexed them. The field na ...Show All
.NET Development could not find localhost when creating new project
Hi friends am new to .net and writing a small web service application.am using vs 2005 beta2. i created new project (asp.net web service) and new project dialog box i selected location as "http" and name of project name i entered as http://localhost/customer orders webservice and as soon as i click ok i get following message saying "Could not find a Web server '<localhost>'. Check to make sure that the Web server name is valid and your proxy settings are set correctly. If you are sure that everything is correct, the Web server may be temporarily out of service. " my question is how can i enable or start my "localhost" my pc runn ...Show All
SQL Server Development Procedures
Hello, Recently my partner in crime (so to speak) and I have been asked to develop procedures and/or methods for our software development group. Currently we're running SQL Server 8 with several Access apps and Crystal Reports. In a nutshell, I'm looking for resources. We're supposed to develop a process (we're both DBA's) where our development team can formally submit new stored procedures, views, or whatever they've come up with to solve for buisiness requirements. It'll be our job to take thier scripts and execute them on the production database after ensuring someone has tested the logic and signed-off on it. Unfortunately, ...Show All
Visual Studio How can you skip the UI when you run a recipe?
I'm trying to run a recipe from a toolwindow. I've figured out how to find my Guidance Package, build an arguments dictionary and run the recipe. All this works great, but I don't want to show the UI defined in the recipe since I'm filling in all the arguments before I call the recipe. Is there any way of running a recipe and skipping the UI My current work around is to copy the recipe and remove the UI. I could probably figure out how copy the recipe and remove the UI in code so that I wouldn't have to pollute the package.xml, but that seems to be a bit too smelly. ... and if you haven't heard it lately: Great work guys! ...Show All
Visual Studio How to create a own template with DTE(IWizard)??
Hello all, I want to create the template with wizard page. UserInput is the right one. The form has one button named "Finish", When we click Finish the new project will be added. How to deal with the "Create project and solution" method and now I want to know how to do "Create the project" in RunFinished() method(Maybe the right method is not it) using System.Collections.Generic; using System.Text; using EnvDTE; using Microsoft.VisualStudio.TemplateWizard; namespace TestWizard { public class WizardeImpl : IWizard { # region IWizard Members public void BeforeOpeningFile( ProjectItem projectI ...Show All
SQL Server Pre and PostExecute Event handler called more than once
I have a task configured on the post execute event handler of a package expecting this task to be executed only once after the completion of all the other tasks in the package. But I found the task configured on the post execute event of the package getting executed as many times as the number of tasks in the package + 1 . Is there any workaround for this problem Yes, The reason this happens is that events "bubble-up" from a container to all parent containers and are caught by any eventhandlers that exist on those parent containers. To stop this behaviour you'll need to create an eventhandle ...Show All
Visual C++ Opengl error in VC++
Okay I have a win32 program. I include gl.h, glu.h and glaux.h. I create some variables using Gluint and have no errors but when i try to call glClearColor(0.0, 0.0, 0.0, 0.0); I get the error LNK2001: unresolved external symbol "void __stdcall glClearColor(float,float,float,float)" ( glClearColor@@$$J216YGXMMMM@Z) I am using Microsoft visual studio and VC++ 6. Can anyone help ...Show All
Visual C++ *.xsd add query (2005)
When i add query in Design View of my *.xsd file - all ok. But, when i add one more query - appears such errors that i even do not know what to think... Point in that, that all what i created was in a visual mode by the studio designer view, instead of in a code. Thus it turns out that all these mistakes have been made by visual studio personally. So I dare to believe that it's you bug :) ------ Build started: Project: SI_prj, Configuration: Debug Win32 ------ Compiling... SI_prj.cpp c:\documents and settings\serge\desktop\vs projects\si_solu\si_prj\Form1.h(112) : error C2039: 'SI_DataSet' : is not a member of 'SI_pr ...Show All
