SoheilsX's Q&A profile
SQL Server Replication to IP addressed server
we have an outside company that replicates to us and we are known to them via an IP address. We get an error now...Sql Server 2005 now does not support a server Alias, IP address, or any other alternate name are not supports. Specify the actual Server Name I tried putting in the hosts file on their server 168.168.110.2 SQL2005 able to connect to our server through Studio Manager...no ...Show All
.NET Development List<struct>.Contains(struct) - death by GC
My program slowed when it shouldn't have, and I traced it to huge amounts of garbage caused by using the List<struct>.Contains(MyItem) function. Using the CLR profiler, I found out that all of the garbage is two classes: 1) A bunch of boxed MyItems (it's a struct) and 2) Some other class which looks like the function is using reflection (sorry, I didn't write down the name). I think List<struct>.Contains(MyStruct) s ...Show All
Visual C++ virtual inheritance and glue implementations
Hello, I have come up with the following framework: interface DECLSPEC_NOVTABLE IEngine abstract { virtual int silly( void ) const { return 0; } virtual void smart() = 0; virtual ~IEngine() {}; }; template < int P_I> interface DECLSPEC_NOVTABLE ISillyEngine: virtual public IEngine { int silly( void ) const override { return P_I; } }; class SmartEngine: virtual public IEngine { void smart ...Show All
Windows Forms ViewState
I have a windows form where I'm trying to use ViewState but it's not working properly. do you have to enable ViewState in a config file or in the properties of the form Any examples would be great. thanks I'm surprised it's working at all. Viewstate is part of ASP.Net, not Windows Forms. ...Show All
Visual Studio Express Editions timed events
hi... i was just wondering if there was some sort of command to wait a certain number of seconds before it went on to do the next command. If i need to do this a certain way with complex code, show the code if you could. threading.thread.sleep(100) 'wait for .1 seconds Information at: http://msdn2.microsoft.com/en-us/library/d00bd51t.aspx Ed ...Show All
Windows Forms Change default printer when printing many pdfs
I'm writing an application which prints out many pdfs at once (hundreds) according to a list the user makes. i.e. they pick what they want to print from a listbox. I'm using the following code to print the pdfs which works great: ...Show All
Visual FoxPro How to upgrade a menu from FoxPro for DOS
I'm a very old, retired, CCOBOL and ASSEMBLY programmer with some experience with dBase and FoxPro from the command window. A charity has asked me to get an old FoxPro for DOS program working on a donated used computer which contains VFP6.0. I have gone over the data files and they seem to be OK. The indexes have been converted to CDX type and that works. The old DOS program worked by relying on append and browse commands which all work. The nee ...Show All
Visual Studio Team System Offline mode help - Finding editable files not checked out
I understand that offline mode wasn't a priority for V1. We can always just attrib a file as writable and party on. However, when I do get my laptop connected back up to the network it would be nice if there was a TF command (even just a command line command) that would let me know which repository files I have that are editable but not checked out. It would also be essential that the command works recursively so that I can jus ...Show All
Windows Forms Multiline Attribute used in TextBox.Text property
Hi, Anyone know of the attribute I need to apply to my own text property on a custom control in order for it to behave like a textbox - text property In the textbox - text property it shows a little drop down box in the property editor to allow multiple lines to be added. What I want to do is to use the same attribute on a different property of a custom control to allow for multi-line input. Any ideas Thanks, Pete. ...Show All
Visual Studio accessing custom tools options settings
I've created a custom tools option page using the VS2005 .Addin method described here: http://msdn2.microsoft.com/library/b389wd38(en-us,vs.80).aspx Now, I need to access the properties on my custom page in my addin. From the documentation in the "Controlling Tools Options Setting" section it seems like it is not valid to use the DTE.Properties(...) API to access my custom pages. How do I get access to those pages from my addin ...Show All
Visual Studio 2008 (Pre-release) DLinq [InsertMethod]s
It would be helpful if [InsertMethod]s did not need to be public. Thanks. Thanks very much. I haven't checked an [UpdateMethod] or [DeleteMethod] but the same would apply to them. ...Show All
Visual Studio Tools for Office adding column heading from a list with VB.NET onto excel using the offset method
I keep this error: object reference not set to an instance of an object List exists and everything is in it. The object here is to load the column heading from list onto the excel spread sheet. Using the offset method from the range class,which is part of the sheet class… ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX DirectInput
Hello, I've downloaded and installed C# Express 2005 and the Feb '06 DirectX SDK. I create a new project, add a reference to DirectX 2.0.0.0 but everytime I try to create a DirectInput keyboard it fails on the Aquire call. I've used the same code that everyone seems to recommend: keyb = new Microsoft.DirectX.DirectInput.Device(SystemGuid.Keyboard); keyb.SetCooperativeLevel(this, CooperativeLe ...Show All
.NET Development Windows Services Vs console application
Hi all! I would like to know if there is any differences in terms of capabilities, between a windows services application and a normal console application I am building a multithreaded application to act as a server (either as a windows services or console application ) and I was wondering which one would be better. Thanks!!! thanks for your reply. It was helpful indeed. ...Show All
Visual Studio Team System Hourly Error in eventlog, Should I worry?
Every hour I get the following message in the eventlog: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 6-10-2005 10:38:19 Machine: 0000VSDEVSERVER Application Domain: /LM/W3SVC/3/Root/services-2-127730686805622064 Assembly: Microsoft.TeamFoundation.Server, Version ...Show All
