Paulius's Q&A profile
.NET Development Strange Issue Consuming WebServices
Hi, I'm developping a WinForms application that consumes several Webservices (all of them are in the same server). All WebMethods calls are Asynchromous. When I debug the application, breaking the Common Language Runtime Excetions into the debugger, sometimes I get the socket exception "An existing connection was forcibly closed by the remote host Web service" and then the IO exception "Unable to read data from transport...". I can't catch these exceptions in my code (I have try catch structures on every web method call, BeginInvoke and EndInvoke methods) , I supose that these exception are produced on the threadpool w ...Show All
Visual Studio Express Editions Refresh Desktop in C#
Our skool has unfortunately put adirty big picture of the user on their desktop and disabled the default backround changer on windows. As everyones picture looks like they have smoked an acre and a half of dope...i made it my mission to rescue people from this embarresing photo. So I designed an .exe file that modifies the users .htt file, to input a picture that they desire and get rid of their profile pic. I am looking for a way to refresh the desktop to save a little time and effort for the user of the program from having to minimize to the desktop and press F5, as most people at our skool are computer illiterate and would not know how to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Starting Game Development
I Have a Very Very Deadly Game StoryLine But i am extremely new to the programming. I have no idea about programming . I will be very gratefull if any body tell me how to begin, which language to learn and everything else. I have a great imagination and story writing power and my very sure my game will rock the world if could turn my imagination into a game. I wouldn't want to discourage anyone to build the cool stuff that they have in mind. I am programming for 15 years already and the first thing I did back then was try to build a sierra-like adventure. Although I didn't manage to succee ...Show All
Windows Forms short, bit interpretation (BitConverter)
When I have a array (lenght=2) with values 4 and 1, over "little-endian" architecture... the storage will be: pos 0 1 [4 , 1] The method BitConverter.ToInt16(arrayBytes, 0) return 260 (a short. My conclusion is: 1 bit in upper bound is 256 and 4 bits in lower bound... the interpretation is 260 )... regards...I think this... ¿is correct ...Show All
Visual Studio problems with OleUndoEngine
I'm building a custom (form) designer using September CTP and I'm trying to implement undo/redo functionalities using the OleUndoEngine together with CodeDOMComponentSerializationService as described in VS SDK. My designer uses the DesignSurface for designing controls and I added the CodeDOMComponentSerializationService to the designer host which I acquired from the design surface. Then I created an OleUndoEngine instance and passed the host as its service provider. The problem is that when I try to undo any action on my designer inside the VS, the StackOverflow exception is thrown without any further details. I would be grateful ...Show All
SQL Server Log Reader Agent Lacks A Required Privilege
I'm using our development ID to set up peer-to-peer replication. I am following the steps outlined in the BOL using SQL Studio 2005. When I created the initial publication, I read the section on permissions and assigned the development login ID db_owner. Indeed, to eliminate any possible issues (I thought), I gave it db_datareader, db_datawriter, and all the db admin rights and made very sure the db_denydatareader and db_denydatawriter roles were not checked. I did this through the Logins section of the Security folder and applied the same rights to both the distribution and the publication database. Nevertheless, when I run the LogReader ag ...Show All
SQL Server template.ini differences, typos, possible superfluous/omitted content
The SQL Server 2005 Enterprise and Developer editions have identical template.ini files. SQL Server 2005 Express with Advanced Features has a template.ini with additional entries. These entries do not appear appropriate for Express and thus would be superfluous. Notice that the Note in the Express template.ini says an upgrade to SQL Server Express requires NT authentication, so it doesn't make sense to include SQL login parameters ( UPGRADEUSER and UPGRADEPWD ) in a template.ini for Express. Also notice that the SKUUPGRADE parameter is included in the Express template.ini file. This doesn't seem to belong there because the comment ...Show All
Visual Basic Display a list of files being copied during the copy process.
Im using the My.Computer.FileSystem.CopyFolder object to copy the contents of a folder on a CD-ROM to a folder on the harddrive. Is there anyway to have a label on my form that changes with each file being read. All my code is atm is this: My .Computer.FileSystem.CopyDirectory(UpgradeProgPath.Text, CurProgPath.Text, True ) Just a simple label that says "Copying: filename.ext" IE: Copying update.exe And have it change for each file in the folder being copied. Is it possible to do this at all Or is there a better way to do it than the My .Computer.FileSystem.CopyDirectory method I use using Synchro in .net 2003 but i'm trying ...Show All
Visual Basic Dynamic queries on Access databases
I have been programming computers since 1962 in just about every computer language that exist, but I have spent the past 12 hours trying to accomplish in VB 2005 what I accomplished in VB 6 with 3 statements: Set DB1 = DBEngine.OpenDatabase("C:\DataFolder\DataDB.mdb") Sql = "SELECT * FROM TABLE1 WHERE INDEX = 1432;" Set rs1 = DB1.OpenRecordset(Sql) I am no closer now that I was at 6 AM this morning. I really need some help! I can access the database and read/write data to it but cannot find the way to create and excecute the Sql statemen ...Show All
SQL Server CTE in a DSV named query
Hello, I have a CTE that I want to put into a DSV named query. here is the CTE (which anyone can run): WITH mycte AS (SELECT TOP (200) object_id, name, column_id, system_type_id FROM sys.columns) SELECT object_id, name, column_id, system_type_id FROM mycte AS mycte_1 I can put that into the named query editor and run it, no problems. Upon clicking "OK" I get: Incorrect syntax near ')' Incorrect syntax near the keyword 'with'/ If this statement is a common table expression or an xmlnamespaces clause the previous statement must be terminated with a semicolon. So, I put a semicolon i ...Show All
Visual Studio mscorsvw.exe
When installing Visual Studio 2005 Beta 2 (and when install has finished) a process named "mscorsvw.exe" runs, and takes up 95/100% CPU. I've no idea why this is. That, and when trying to start Visual Studio 2005 - It opens, then immediately exits. I've done the un-install of previous versions in perfect order, and yet the problem continues Can anyone shed any light i had a pb with mscorsvw : it was taking 95% of the CPU and had been running for hours. actually, the pb was due to an issue in the installation of MSVS2005-beta2 on W2k3 Server : Microsoft lists this issue in vs\readme.html file on the instal ...Show All
Windows Forms Building deployment project from command line
I have a simple deployment project in a VS2005 solution that essentially just takes the primary output of one of the other projects in the solution and drops it where I want on the hard drive. What I need to do is build the project via the command line in an environment where the projects' relative paths to each other are the same as in my dev environment, but where the solution file is not accessible. My problem comes from the fact that command line builds of the project like "devenv <project-name>.vdproj /Build" seem to rely on finding the solution file to work. I've looked through the vdproj and sln files and don't se ...Show All
Visual Studio Team System Centralize suppressions (no more attributes) in VS2005
Using VSTS, how can we avoid having to suppress violations all over our codebase I'm aware we can suppress things at an assembly or module level, but that's not my intent. I want to have fine-grain control, yet don't want my codebase polluted with all those attributes. This is the only reason we can't use the built-in Code Analysis in VSTS -- it screws with the code. I just want a separate analysis file that can store all the information it needs to, and stays completely separate from the source, but still get the benefits of VSTS and Team Build integration. Is there a way to hack the teambuild/msbuild stuff to use .fxcop project files but ...Show All
Visual C++ Running a very simple Win32 app on a comp without VC++ 2005 Express
Hi! I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx Compiling and running the following program on the dev computer works like a charm: http://www.winprog.org/tutorial/simple_window.html I then changed to release-mode, turned off debugging in the project properties and copied the .exe to another computer without VC++ 2005 Express on. I pretty much expected problems, so I wasn't very surprised when I got the error message saying that there was something wrong with the program configuration, like the one here: http://forums ...Show All
Smart Device Development Barcode Reader
hi everybody i am mehmet from turkey i am making read Barcode number by BarcodeMachine. but my BarcodeMachine integrated PDA. when reading barcode number by machine then number sending to on PDA application in textbox but i not sending to textbox. how to Hi, I'm studing about barcode reader... I'm looking for information about this How did you do it Can You give me some idea from where I can to begin thanks ...Show All
