Warren LaFrance Jr's Q&A profile
Visual Studio Team System Overwrite Drop Location and keep output from project files!!
Hi All, Is there anyway that I could by pass drop location and keep the output as I set in the project files Best Regards, Thanks so much for your responded Steve. You are right. I wish to have a build that output binaries to be in the folder that define in the project build configuration's output path. Here is the reason. I've a build project which multi solution files, and mix of Desktop application, web application, web service.... After the build is done, I've to run a script to create zip package for Desktop, web....etc. If I let it output to drop location, I won't have the exactly folder structure when I run zip package. In addition, all the web site files, non-binaries will be missing. ...Show All
Smart Device Development BinaryReader.Close() does not return from call
Hello I'm going to start by presenting the scenario first. I am developing a multithreaded application where i open a connection to a server and continuously read from the stream in one thread with code similar to this public void Runner() while(isRunning){ m_input.Read(data,0,data.Length); } } Now, on the main Form of the application i display data that i read from the stream and i have a button that can disconnect from the server ( the server works as a module inside http server, and the stream is actually obtained by making a HttpWebRequest and getting the response stream ). The code looks similar to this public void disconnect() { isRunning=false; if(m_input!=null){ m_input.Close(); //this is the ...Show All
Visual Studio Team System To exclude or not to exclude!
Hi, I have been using FxCop for a couple of weeks now and I often find myself with a dilemma whether to exclude a message or not. The reason being is that it seems that some messages are aimed at people who developer libraries/controls for public consumption. This is not my situation the product is stand alone and will never be used as a library. A couple of errors spring to mind: DoNotExposeGenericLists and CollectionPropertiesShouldBeReadOnly. I just feel that there are situation where the usage of the assembly effects the decision whether to exclude the message or not and maybe some comments in the docs to give guidance would help I would be interested in your thoughts on this matter as I a ...Show All
Visual Basic vb6 Sendkey with Vista
I typically turn on the keypreview property so that I can trap the enter key and transform it to the tab key so that my users can use either the tab key or the enter key to shift focus to the next tab stop. However, since upgrading to the Vista Operating system. The enter key gets trapped as usual but when converting the keystroke to a tab key it does not get sent. Here is the code that I use for this functionality. Any Suggestions The compiled code works as usual, but in the IDE the Sendkeys "{TAB}" is ignored. Private Sub Form_KeyPress(KeyAscii As Integer) Call TabEnter(KeyAscii) End Sub Public Sub TabEnter(KeyAscii) &nb ...Show All
Visual C# Chess in C#
Someone Know where have a example a open source about chess, because I'm wanting to see a modol.. Thank you! There are many Chess applications written in C#, take your pick: Valil.Chess Yet Another Chess Board Control #Chess A Chess Program using C# Just to name a few. ...Show All
Visual Studio 2008 (Pre-release) WCF hosting: NT Service X IIS?
Hi Everybody! We are starting a new project for a high available web system and we are thinking about using WCF to provide the required services. Probably we will use server clusters in order to provide the required availability, but we don't know yet if the solution shall use 3 levels of clustering (web, application/business and database) or 2 (web/application and database) as it depends on the customer budget. I'd like to know which solution would be more suitable: hosting the WCF services as NT Services or within IIS. Could you help me regarding the pros/cons of using each one considering: 1 - How easy each one adapts to the clustering hardware solution 2- Performance 3 - Security ...Show All
Visual Studio Express Editions Another question
Is there a watch list in VS express like the one in borland c++ compiler I need to watch an element to see how it changes. Thank you. I am having a trouble with my code: [code] inline double convertToDouble1(std::string& s) { std::istringstream i(s); double x; if (!(i >> x)){ try { throw "Not a number!" ; } catch ( char *g) { cout << "Error!" << g; cout << " Enter a number!" << endl; c.getReal1(); } } return x; }[/code] his is the definition of my function and here is how I use it: [code] void Complex::getReal1(){ complex1.real=0.0; std::string s ; cout ...Show All
Visual Studio 2008 (Pre-release) How to replace remoting by WFC without svcutil ?
Hello, I have a small app that previously used Remoting. I need to convert it to use WCF. The app contains three assemblies, one client, one server and one interface, e.g. Interfaces.dll: interface IMyService { string MyMethod1(string arg, ...); } Server.exe: set up remoting. Implement IMyService Client.exe: Connect to server, use IMyService implemented by Server.exe Pretty straightforward. Anyway, the schoolbook examples of WCF all use svcutil.exe to generate code for the service from a "live" server. While this is probably a very good approach for writing clients to known services with fixed interfaces, I dislike this approach for a number of reasons, mainly: - I want to co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Codeplex Team explorer
Is there a tutorial on how to release project files to codeplex from XNA environment I followed all the steps signed up for codeplex, installed team explorer, connected team explorer but i'm lost as to what to do next. do i upload the files one at a time from the codeplex website what about the solution files Is there a way to add the whole solution at once through teamexplorer ok i figured out what i was missing out on, thanks to the videos on teamsystemrocks the next step that i was missing was i needed to create/edit a workspace in the team system IDE and then add the project folder. thanks! matt ...Show All
.NET Development CDO Email and .NET 2.0
I recently deployed a new web app written with Visual Studio 2005, so we had to install .NET Framework 2.0 on the server. Now one of the older .NET applications (for which I do not have the source code) throws an error message when trying to send email using CDO (the message says "Could not access CDO.Message object"). I never uninstalled the 1.1 framework, and from what I read the two should be able to exist side by side. I think my only options are to either find the older .dll for CDO and make sure it is in the right place, or rebuild my new application to use the Framework 1.1. Are these my only options Can they even be done (i.e., can you build a web app in VS 2005 that will work with .NET 1.1) Any suggestions will be appr ...Show All
Visual Studio 2008 (Pre-release) Computer needed to develop WPF applications
Hi! I'm curious what computer do you think is needed to properly develop a WPF application under Vista and run them. What processor, graphics card and how much Ram. Currently I have a P4 3Ghz, 1GB Ram and an (old) Geforce FX 5700LE graphics card, and Expression Blend works very slow for me. Also many applications don't work slow too (programs like Nostalgia, Denounce form Thirteen32 and UniveRRS). I have an 2.1 Aero experience index in Vista. Perhaps the graphics card is giving you a low experience index. The overall index is the lowest of the individual indexes. I have a Pentium 4 2.8 Ghz with 2 Gb Ram that I bought over 2 years ago. It originally used the on board video so when I installed Vista I bought ...Show All
SQL Server The attempt to add a row to the Data Flow task buffer failed
Hi, I am trying to transfer the data from flat file to sql server.When I am running the package on local server(network server) it works fine.But when I use it to transfer the data to online server it starts and shows 2771 rows transfered and remains on that only, dosent stop or give a error. When i stop the execution I get the following errors: [DTS.Pipeline] Error: The pipeline received a request to cancel and is shutting down. [Loose Diamond File [1]] Error: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020. [DTS.Pipeline] Error: The PrimeOutput method on component "Loose Diamond File" (1) returned error code 0xC02020C4. The component returned a failure code whe ...Show All
.NET Development Encrypted app.config causing error for other users
Hi, I have a windows application using .net 2.0 and it has to access the asp.net membership database. So, I have the connection string for the memebership database in the app.config. I used the following code to encrypt the connection string section in the app.config. System.Configuration. Configuration config = ConfigurationManager .OpenExeConfiguration( ConfigurationUserLevel .None); ConfigurationSection section = config.GetSection("connectionString"); if (section != null ) { if (!section.IsReadOnly()) { section.SectionInformation.ProtectSection( "RsaProtectedConfigurationProvider" ); section.SectionInformation.ForceSave = true ; config.Save( ConfigurationSaveMode .Full); ...Show All
Software Development for Windows Vista Bind the CurrentItem property of the ForEach activty
Hi everybody, I'm trying to use the ForEach activity provided on http://wf.netfx3.com/files/folders/control_flow/entry93.aspx. I have an array of "User" an I want to print the name of each User in a messagebox. I want to use my "MessageBox" Activty that have a property "Text" Here is my problem: I want to bind the text Property to the field "Name" of the CurrentItem. But CurrentItem doesn't appear on the binding list. The CurrentItem is of type "Object", maybe this is the problem.. Someone can help me Yep, you won't be able to bind it directly because the CurrentItem property is of type Object: types don't match, so no binding is allowed, plus since you don ...Show All
.NET Development System.Net.Sockets.TcpClient.Protected Property error
Hi, I'm new to socket programming. Just want to handle multiple clients. i took the following artcle as reference. http://www.devx.com/dotnet/Article/28083/0/page/3 the pbm is '---get the client IP address _clientIP = client.Client.RemoteEndPoint.ToString ---> this line gives me an error like 'System.Net.Sockets.TcpClient.Protected Property Client() As System.Net.Sockets.Socket' is not accessible in this context because it is 'Protected'. What does it mean How to get the IP address Thank You. This is because the Client property on the TcpClient class has protected scope. See the protected keyword in c# for more detail:http://search.msdn.microsoft.com/search/Redirect.aspx title=p ...Show All
