kesim's Q&A profile
Visual C# Memory usage
Hi, I have a treeview wich is filled based upon the schema information of a database. The schema information is stored in an object of the class MetaDataItem [Serializable] public class MetaDataItem { #region "Private variables" private string _name; private string _description; private MetaDataType _type; private bool _isRoot; private List<MetaDataItem> _childItems; #endregion &n ...Show All
Software Development for Windows Vista Age of Empires II Multiplayer does not connect
After installing AOE II (2.0a) it runs fine on Vista RTM. However, when trying to connect to a game hosted on another (XP) machine the multiplayer game on XP can not be found (is not displayed in AOE on the Vista pc). Likewise when creating a multiplayer game on Vista it can be seen from XP but no one can connect to it. Firewall has been configured to allow AOE II on UDP and TCP. What else should be done regards, Martin. I couldnt find the answer on the Microsoft website. Did you find an answer - I have the exact same issue with Vista, XP and Age of Empires. I have tried everything thanks Jon ...Show All
.NET Development updating the web.config file for Dependent Assembly
Hi, I have webservice application that uses some assemblies whoes version number keeps changing and are stored in some folder on the same machine as my webservice. Every Time the assembly version changes i need to change the binding redirect and code base in the web.config file. EX : < dependentAssembly > < assemblyIdentity name ="ABCD" publicKeyToken ="Sometoken" culture ="neutral" /> < bindingRedirect oldVersion ="1.0.0.0-99999.99999.99999.99999" newVersion ="1.0.1445.38584" /> < codeBase version ="1.0.1445.38584" href ="file:///C:\Program Files\TPA\ABCD.dll" /> </ dependentAssembly > ...Show All
Visual Studio Team System Specifying Remote Machine name for certain tasks
I'm working with Microsoft UK's SDC code (See http://www.gotdotnet.com/codegallery/codegallery.aspx id=b4d6499f-0020-4771-a305-c156498db75e ) and it doesn't appear that we can specify remote machines for the creation of Application Pools or web sites --- only CreateVirtualDirectory has a machine name. Am I missing something I don't think this forum is going to be a good place to get questions on these tasks answered - the Team Build team doesn't have any particular expertise with them, and I haven't seen too many users posting re: them either... The gotdotnet site where the tasks can be downloaded has a message board - perhaps there or some other forum would be a better spot. Good luck, and if you get yo ...Show All
.NET Development How To Easily Change Connection To Access Database Created Using "Add New Data Source" And Draging Table To Form
Hello, I created a small application that works, but I want to be able to change the location of the database in a more simplier way. By this, I mean to accomplish this task, I could just delete my dataset, binding source, table adapter, and binding navigator. Next, I would add a new data source and connection to point to the new location of the database. But, this would mean that every time I do this I have to also change properties such as color etc etc etc. So, I'm looking for an easier way to change the location of the database in my application. In addition, I have to hard-code the full path to my database using "C" drive etc. Is there any way I could just put the database file in the same folder as ...Show All
Visual Studio Bug: Interihance Hierarchy VS2005 incorrect when using inner classes
Hi, The inheritance hierarchy when using the VS2005 template is incorrect when using inner classes. I have the following hierarchy: class A : object class B : object (class B is an inner class of class A) class C : B When I view the class C-documentation the tree is being displayed as: Object (hyperlink to msdn) B (hyperlink to class B-documentation) C (no hyperlink because this hyperlink is the current file) When I view the class B-documentation the tree is being displayed as: Object (hyperlink to msdn)   ...Show All
Visual C# Calling methods of a class without creating an instance of it
Hi, I'm sure this probably has been answered before, but somehow I couldn't find it, so really sorry about that. But how do you call methods of a class without having to create an instance of it I mean, in my project I have something like: public class FileOperations{ public void read_config_file(...) { (...) } } And I want to call the read_config_file(who doesn't depend on anything but the filename and a property where it'll write the config values) without having to do: FileOperations fileOp = new FileOperations(); fileOp.read_config_file(); I was a poor (poor like in noob) Java programmer but I used humm I believe it were static methods in abstract classes, something like that, don't re ...Show All
Software Development for Windows Vista How can I change the channel config?
I using IAudioChannelConfig interface to set channel config. It returns S_OK. And the value I read back is right. But it doesn't work correctly. When the original config is KSAUDIO_SPEAKER_STEREO, and I set it to KSAUDIO_SPEAKER_QUAD, the back left and back right channels are still no sound. The same thing happens in using SetSpeakerConfig() function of DirectSound. How should I do OS: Windows Vista RC1 WDK: Microsoft Windows SDK 6.0 DirectX SDK: 2006,Aug. Did you found any solution so far I try to do so... I saw one control panel beeing able to set the speaker configuration and Mitch from MS reply to me that if you own the driver there is more than a way to do it! But, he di ...Show All
Windows Forms Progressbar WinForm popup
How can I make a progress bar popup in C# WIN form when a button click event has raised and close it when my code has gone to a certain point Palmi wrote: How can I make a progress bar popup in C# WIN form when a button click event has raised and close it when my code has gone to a certain point I think the best way is to make a new form that has only the progress bar control and size the form to only accomodate the progress bar, then set the form properties FormBorderStyle to none so that the form border does not appear then you can use something like :- Form_Progres show = new Form_Progres(); show.ShowDialog(); ...Show All
Visual Studio 2008 (Pre-release) RC1 with .NET 3.0 install error
I am getting two errors when trying to install the 3.0 WinFX runtime...I either get that I need to adjust in control panel because it is already installed or I get that I am running the wrong version of windows. In control panel I don't see any kind of WinFx check box and all available check boxes are checked...I want to use the xaml from wpf this is just getting in the way. Thank you for your time, Steve Scheberle Hi Steve, I'm sorry for the delayed response. What OS is running on the machine where you don't see WinFX (or .NET Framework 3.0) in the add/remove programs Both of the situations you describe seem, well, odd :-) thanks, chad ...Show All
Visual C++ VS2005 linker error with typeid
Hi, I have the following code: _pReturnValue = (typeid (*pDevice)).name (); This piece of code used to compile and run fine on VC2003 and VC 6.1, but in VS2005 it gives the following error: error LNK2019: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall type_info::name(void)const " (__imp_ name@type_info@@QBEPBDXZ) referenced in function "protected: char const * __thiscall CNiDeviceSpyAutoLogger::_GetDerivedClassName(class C4882Device const *)" ( _GetDerivedClassName@CNiDeviceSpyAutoLogger@@IAEPBDPBVC4882Device@@@Z ) Can someone tell me what I need to do to get this code compiling and linking again Thank you, Anand Bingo ...Show All
Windows Forms Datagridview - Specific color on one row
Hi all. Is it possible to mark one row with a specific color I have a datagridview with one or more contracts.(Datasource dtContracts). I would like to mark rows with a specific date RED. (if date column ct-mend is beyound today....it means that this contract is finished ). Is this possible Thanks. Yes. You should be able to do it using the DefaultCellStyle property. I wrote a small example and tested it to make sure it worked. Here is the code: public Form1() { InitializeComponent(); dataGridView1.Columns.Add( "Column1" , "Column1" ); dataGridView1.Columns.Add( "Column2" , "Column2" ); dataGridView1.Columns.Add( "Column3" , "Column3&quo ...Show All
SQL Server Problem getting some users to be able to run reports (probably security of some sort)
I am able to deploy and run reports from my screen at work, but some non-developers cannot run them. They can see the reports, but get the following error message when they click on the report: An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'DataSource1'. (rsErrorOpeningConnection) For more information about this error navigate to the report server on the local server machine, or enable remote errors -------------------------- ----- - I assume the preceding error has something to do with credentials. I am using Windows security authentication for this. One user has worked through this and is now getting cannot run report query (one of the repo ...Show All
Visual Studio Changing section supress formula in VB(or any) code at runtime
Is there a way to change the fromula that decides whether to suppress a section from within VB when creating the report I tried the normal sectionformat.enablesupress = true but it does not work because I have a formula for suppressing the section in the CR report.rpt file. So im setting the section to suppress but I think that when the report is created, CR goes through the supress formula and overrides my earlier setting. Unfortunately I cant seem to access this supress formula through code. There is no namespace 'thing' sectionformat.enablesupress.text or formula etc. Ive got around this by supressing the objects in the section in code and setting the section to 'suppress if blank' so that I can still use the hard-coded suppre ...Show All
Visual Studio Team System Building a server to client application
Hi, i work for a company called Submission Technology and i've been given the task of developing some software for a client/server messaging application. a great example of these would be Windows Messenger. Us, as the administration should be able to send messages to clients, the client receives a popup (similiar to how windows live messenger notifies you when you have received an email or message) the development environment is Visual Studios 2005 and C#.. my question is: what would be the best procedure to build this type of software , is there a messenger API does VStudios provide tools to develop something like this At the end of the day, whats the best way to go about building this type of application thanks in advance ...Show All
