Can-Ann's Q&A profile
Visual Studio The current project path
Heya all, How can I get the working directory of the current visual studio project It's probably easy, but I haven't figured it out yet. Thanks, Clemens Hi Herru, I'm not sure where you are getting this ServiceProvider object, but I'm pretty sure you cannot retrieve the EnvDTE.Project from a GetService call, as there can be multiple projects in a solution. The following macros illustrates one way to go about listing the path using the FullName property, which may give you some better ideas. Function GetMiscDumpPane() As OutputWindowPane Dim ow As OutputWindow = DTE.Windows.Item(Constants.vsWindowKindOutput).Object Dim pane As OutputWindowPane Try pane = ow.OutputWind ...Show All
Visual Studio 2008 (Pre-release) Adding new event handler to custom control does not fire event.
CustomControl cc = new CustomControl(); cc.MouseDoubleClick += new MouseButtonEventHandler(CustomControl_DoubleClick); private void CustomControl_DoubleClick(object sender, MouseButtonEventArgs args) { MessageBox.Show("Event Fired!"); } Can anyone tell me why this wouldn't work Is there something I have to do in my custom control to get this event to fire After digging further I found that the DragCanvas I was using was overriding the OnPreviewMouseLeftButtonDown event and had 'e.handled = true' so that no other mouse events would fire. Oh well, thanks anyways to those who responded. ...Show All
Visual Studio Express Editions Automation server can't create object
I have visual C++ 2005 edition and It won't let me create a new project. I choose a empty project and I get this error: "Automation server can't create object" Now i've searced around a bit and I found that my scrprit might be corrupted, but I have downloaded it and it still won't work. This is the link to common answer people gave: http://support.microsoft.com/kb/323885 I've also tried reinstalling many times and still get the same message. So I would really like to know why I can't create a new project and any suggestions on how to fix this. Greetings, I have the same problem here, it just came out of nowhere. Neither of these solutions described above worked. I changed the permission ...Show All
Visual C++ error C2259 after upgrading to 2005.
Tried to compile a project after apparently succesfully converting to 2005 pro. Getting error C2259: 'SAXContentHandlerImpl' : cannot instantiate abstract class 'SAXContentHandlerImpl' is derived from 'MSXML2::ISAXContentHandler'. Have thay added new virtuals to this or what Any ideas Thanks. Hi, thanks for your reply. This is what I get: error C2259: 'MyContent' : cannot instantiate abstract class due to following members: 'HRESULT MSXML2::ISAXContentHandler::startPrefixMapping(unsigned short *,int,unsigned short *,int)' : is abstract c:\development\congressdbuni ...Show All
Windows Forms SendToBack control
Hi Within the designer - how can I use sendtoback feature for controls used, any help would be great. thanks Kish_UNI wrote: Hi Within the designer - how can I use sendtoback feature for controls used, any help would be great. thanks what do you mean it is used to alter the child control collection indices. mainly to alter the order of the docking ...Show All
Visual C++ syncronization?
As i stated in my previous thread, I am new to VC++ and am creating one of my first applications. In this application i have a ListBox into which I allow the user to load a list of words from a file. I need to execute this on a separate thread in order to keep my Form as functional as possible incase a large list is loaded. However, when trying to access the ListBox from a separate thread, I get the following error: An unhandled exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll Additional information: Cross-thread operation not valid: Control 'LoadList' accessed from a thread other than the thread it was created on. What am i doing wrong NoobestNo ...Show All
Visual Studio Team System Wacky behavior of VersionControlServer.QueryHistory(...)
First, the server i code against is running with the RTM version of TFS and I use the client API to write a WinForms client app to display some files' change history and labels etc. This posting gave a simple example on how to use VersionControlServer.QueryHistory(): http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=435386&SiteID=1 However, i'm getting pretty wild results with the slotmode parameter. According to the MSDN documentation ( http://msdn2.microsoft.com/en-us/library/bb138960(VS.80).aspx ): slotMode is A flag that specifies how history entries are searched. If true , the returned history entries may reflect multiple different items that have at one point occupied the requested path in the database. If ...Show All
Visual Studio 2008 (Pre-release) x:Static works as element but not as attribute with statics from project?!?
I'm running Vista RC1 and playing with x:Static in elements and attributes and noticed a behavior that I'm not sure if it is by design or not. Here's the minimal repro: Start with a Window and let's use a static from the system as its title, using attribute syntax. (The static can come from any referenced assembly in this case, just not from the assembly being compiled): < Window x:Class = " XamlTests.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:s = " clr-namespace:System;assembly=mscorlib " Title = " {x:Static Member=s:Environment.CommandLine} " > </ Window > ...Show All
Software Development for Windows Vista How to test the GDI compatibility of an Application for Windows Vista
Hi, It would be really helpful if some one can tell me what are the methods that can be used to test an application to ensure the Graphical compatibility of it in Windows Vista. Hello Techorn, What do you mean by methods for testing an apps graphical compatibility Are you looking for methods that tell if desktop composition is enabled on the system (Can the system run glass) If an installation has Aero Glass enabled it means that the hardware supports DirectX 9.0 (which is fairly high end equipment). Does your application has a specific directX requirement You will also want to be careful if your application is doing any custom drawing using GDI+, here are some of the changes made to the WM_PAINT ca ...Show All
Visual Studio Team System Unable to Add New Objects
I'm having a problem adding new objects from Solution Explorer. When I right click on Tables and select Add New Item the Categories / Templates are blank. Therefore I can't add a table. I've tried re-installing CTP4 but to no avail. Not sure what's changed as I was able to do this before. How do I fix In CTP4 we do not allow you to add anything but a generic script type from Solution Explorer, you need to use Schema View if you want to add explicit types in CTP4. -GertD "DataDude" Development Manager ...Show All
SQL Server SQL 2005 - View with Data Column Filter
I am creating a view in SQL 2005 and am trying to filter out certain elements of a column that I do not want in my view. I have tried the following filters but they do not seem to work as the system kicks them back as erroneous syntax: IsNotOneOf (x, y,z) NotEqual (x, y, z) DoesNotContain (x, y, z) Any ideas of what syntax will work to properly filter out data in this view Sure :-) ...Where SomeColumn NOT IN (1,2,3) HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server create and attach data base
Hi, i want to create a database with out the LOG file I did not find a way to do that, I want to create database in 2 ways 1. With CREATE DATABASE command. 2.Attach an exsiting MDF file. is there any way i can do that, my problem is that i'm creating the data base on my local computer the using sp_detach_db to detach the DB files, then trying to attach DB files from remote computer on the LAN that i dont have write premmsion on, but then i get an error from SQL server saying: "[Microsoft][SQL Native Client][SQL Server]Unable to open the physical file " \\lab11\sqltest\pppSignaling_log.ldf ". Operating system error 5: "5(Access is denied.)"." what can i do to solve this problem thanks ishay ...Show All
Visual Basic FileSystemWatcher - Created events fires too early
I have been playing with a FileSystemWatcher, to start processing files as soon as one arrives in a folder. Specifically, I'm looking for a zip file, then unzip it. However, when I try to unzip a file as soon as I get the Created event, the file has often not finished being written, and therefore I get an error when I try to unzip it. This time period is very short, a tight loop without pauses trying to open it for write will return OK in 3 loops. Question ======= How do I get FileSystemWatcher to raise an event when a file has FINISHED being written, instead of START being written Thanks for the tips Jim 1. Agreed 2. I like the incremental idea. There's a parameter called intTimeOut (s ...Show All
SQL Server Sql 2005 Remote Connection
I am having a problem connecting to a remote SQL server 2005 instance. The remote server is for a website hosting account of mine. I can connect to the server from computers other than the problem computer just fine. I cannot connect to the server using any software including SQL Server Management Studio Express, Visual Web Developer, or even when trying to use aspnet_regsql.exe on the problem computer. The request to connect to the remote server never seems to leave my computer. When talking to my hosting service, they replied that they did not receive a request to connect to their server from me. I have shut down Windows Firewall as well as my third-party firewall with no change. The error message that I receive is: An error has occur ...Show All
Visual Basic C:\Documents and Settings\...\My Documents\Visual 2005\...\bin\debug\Reports *Spaces will not let me open .doc file in word*
Hi, if someone on here could help me, I'd really appreciate it. I am currently building a program that will be able to open excel and word documents in their appropriate programs. Heres my code: Dim Job As String = txtJob.Text Dim str2File As String str2File = "" str2File = Application.ExecutablePath str2File = str2File.Substring(0, str2File.LastIndexOf( "GaugeHelper.EXE" )) Dim wordstart As New Process wordstart.StartInfo.FileName = "winword.exe" wordstart.StartInfo.Arguments = str2File & "\Reports\" & Job & "\" & Job & ".doc" w.Start() I can get it to work, except for one thing, When you use the common folder name \Documents and Settings\ Word will try to ...Show All
