JJ1983's Q&A profile
.NET Development App.Config Problem VS2005 RC1
Hi in the msdn i found this http://msdn2.microsoft.com/en-us/library/ms134757 that i can give a section a source. In the help i found this <pages configSource="pages.config"/> But i doesn#t work so i have tried this < section name = " Siag.TestProject.TestService.BusinessLogic.Agents.Properties.Settings " type = " System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ...Show All
Visual C# Custom dictionary keys identity
I implemented a reference class (MyKey) that I use as key of a dictionary (Generic.Dictionary<MyKey, MyValue>). The problem is that ContainsKey always returns false, except when I pass the very object that I used as key. I tried to override Object.Equals: no change I then tried to implement IComparable, then IEquatable<MyKey>: still no change What should MyKey implement for this to work Chris. ...Show All
Visual C++ developing windows service using MFC
Hi all I have a project where user will send the simulations to remote PC in the network for running the simulation in distributed fashion. Now i want to implement this as service. There are few question which i m not able to get 1. How does a user interact with service. My user interface will be a MFC based GUI.For example if user press send, then service will get the file name from the gui and send it to some pc in network and then wait ...Show All
SQL Server Configure SSIS Logs (Providers & Logs and Details Tab)
The project I am currently working on has a requirement to do certain amount of logging within SSIS. Client has asked me to log only to event viewer if the package has failed. Everything else they want to log it to a text file. I enabled the package container and added "SSIS log provider for Windows Event Log" on Providers and Logs tab and selected "OnError" on details tab. It works fine when I tested that. Secondly I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. directsound q
if i have a directsound buffer, how do i play it twice at the same time caz if u go: buffer.Play(); buffer.Play(); the second Play call doesnt do anything caz the first one is still running For each sound you want to play simultaneously you create a SecondaryBuffer All the secondary buffer will mix inside the PrimaryBuffer automaticly and you normally don't fill directrly the primary buffer To see if on ...Show All
Visual C# Refactoring: Encapsulate field.
Hi All, Just started to look at VS2005 beta 2 - I don't seem to be able to use the encapsulate field refactoring function. I select a private class level variable and click encapsulate field. The IDE then prompts for the property name and displays a code preview window which has the original field renamed to that of the property (highlighted) and no get/set type code. Am I doing something wrong here Cheers, JW. ...Show All
Visual C# Why are my Toolbox components dissappearing or unavailable?
All of the components in my Toolbox window are greyed out and my custom installed tools tab has dissappeared. The only way I can regain the use of the components is to exit VS and restart. I have made sure the components are checked in the "Customize Toolbox" window. Can anyone shed some light on what is going on mihooper, Can you please give me some more details on how you get into this state 1.) Whic ...Show All
Windows Forms TextBox, enter key, shift+ enter problems
Here is what I basically want to do: I have a multi-line textbox. When I press enter I want it to fire a button press event ( I am pretty sure that I should not be using the AcceptButton property because of what else I want  ...Show All
.NET Development Serial communication - Baudrate
Hi, I want to communicate my application with another machine into RS232..But these "machine" changes its baudarate from 19200 to 38400 every minute so i can not communicate all the time.I want to implement an "auto detection algorithm" to succed that in C#..Have you any idea how to do that ...Thanks a lot!!! The simplest way is to try to open comunication using several baudrates and return one that succeeds. you have to ...Show All
Visual C++ Places Bar on CFileDialog
Hello all, I'm using a custom save dialog inherited from the CFileDialog. The problem is that the Places Bar is hidden, and I can't show it. Can anyone help me please !! Are you using MFC 4.2 with VC6 If this is the case the following link is the answer: http://msdn.microsoft.com/msdnmag/issues/0800/c/ ...Show All
Visual Studio Express Editions File Read/Saving Question.
Is it possible to open a file and insert a string to the end of it without having to read the data then resave it all Yes My.Computer.Filesystem.WriteAllText(<FileName>,<Content>, <Append>) so My.Computer.Filesystem.WriteAllText("C:\test.txt", "xyz", True) will append xyz to the end of the contents of c:\test.txt ...Show All
Windows Forms Web application User Agent Name
Hi I am working on the Web application that Play a role as the web browser for few particular sites. And a application server for other. Anyway it is the application Which call a web page access through the web domain (like http://www.example.com)&n ...Show All
Visual C# Closed TextWriter
My app reads multiple files and creates a temp text file which contains from 100,000 to 200,000 records. After the file is creates, it then reads the newly created text file and processes the records that were extracted and writes them to a permanent output file.. The problem I'm encountering is that the app writes the first record and proceeds to the next record in the file, processes and processes it successfully, however; when it tries to ...Show All
Visual Studio Team System Load of property 'FxCopInputAssembly' failed.
OK, So this one took me a little while to understand when I started getting it on a project I migrated to VS2005 Beta 2. So I thought I would save others some trouble and make a note of it here. I started getting 4 copies of this warning the full text of which is: Load of property 'FxCopInputAssembly' failed. The 'FxCop Input Assembly' must be under the project folder. I started digging through the project settings looking for a referen ...Show All
Windows Forms Network Browser Control Like Explorer
I am trying to get the list of computers seen by the My Network Places explorer window. (I am trying to make a custom Explorer-type control) So far, I have the following code snippet. However, this grabs all the computers that were ...Show All
