Mitch5713's Q&A profile
Visual C++ Dependencies modified by pre-build event
I have a custom tool that scans all .c files in my project, and then, if any of them have changed, rebuilds a single auto-generated .c file, also included in the project. I run this tool as a pre-build event. This all works fine. The problem is that when I change a .c file and compile, the pre-build event runs, runs my tool, and modifies the auto-generated .c file. But the dependencies have already been checked, and VC has already decided that the autogenerated file does not need to be recompiled. So I then have to compile _again_, in order to get the autogenerated file to recompile. Is there any way to force a re-checking of dependencies after the pre-build event Alternatively, is there a way to force my auto-generated C file to be ...Show All
Visual Studio Using custom UITypeEditor in language project property pages
Hi, I have a language project, for which I'd like to assign custom editors for some of the properties on the property pages of the project. If I use the 'predefined' editors - like FileNameEditor - it works fine, but not for my own editors (just displays a simple text-editor, as if no customer editor was specified). The same happen if I try to use a custom TypeConverter as well. These custom editors/converters are defined in the same assembly in where the VS package/project/everything are. If I test them outside VS (with a simple winform PropertyGrid, referencing the package assembly), they're working as expected. I've tried putting them into the IronPython sample project, and specifying them as editors/converters for some of the properti ...Show All
SQL Server problem with rank on freetexttable
Hello, I'm having a problem that I'm hoping one of the Sql Server guru's on this forum can help me with. This applies to SQL Server 2005. I'm working on an appliction that used the FTE index ranking feature. We're having a problem that all of the rank values start coming back as ZERO. If we rebuild the index for the effected table, the rank values start working, but eventually it stops working again. Recently, the rank values have been reverting to zero within a minute of the rebuild. For reference, below is the sql code that we are using to get our search results. select row_number () over ( order by RANK DESC ) as rowNumber , [KEY] , rank from freetexttable ( searchIndex , *, 'outlook' ) ...Show All
SQL Server Optimizing datediff
Hey all, I run a monthly delete that's recurring; delete data > 2 months old. For December, I thought up two ways to do this: Query 1: delete from daily_statements where daily_statements < '2006-10-01' Query 2: delete from daily_statements where datediff(month, statement_date, getdate()) <= 3 I've plugged in Query 2 into the job step because it can be run at any time without having to change the value, but it took 22 minutes to delete 2.5 million rows versus 4 minutes to delete 5.3 million rows for the other one. Is query 2 the best it can be Thanks! If the statement_date column is indexed, the 2nd query search argument is not efficient since the use of the DATEDIFF function on the column will eliminate the use of the inde ...Show All
Visual Studio 2008 (Pre-release) Viewport3D BUG ?
In Vista RC1 Viewport3D content becomes aliased when window is resized, even when I specified RenderingOptions.EdgeMode="Unspecified" in root Page object. How can I make 3D scene always antialiased We have encountered spurious out of memory errors in this situation in the past, which triggers our code to disable 3d (though not 2d) anti-aliasing - it sounds like you're hitting this. The best thing to try would be to update to the latest drivers from ATI and see if that fixes the issue for you (I believe they are at https://support.ati.com/ics/support/default.asp deptID=894&task=knowledge&folderID=5712 ). -Adam Smith [MS] ...Show All
Visual C++ Template Selection Visual C++ 2005
Keyword C++ Template Matching Selection I thought in many circumstances the more specialized template is chosen. So the actual template selection by the great compiler seems contrary to my expectation. This concerns overloading the operator = via templates in a C++ class. Desired: To have member template methods (operator =) called in certain object types thus producing other or same objects. Expression Templates. I want to manually write these templates for the educational value. (template frenzy).( I dont want use boost::lamda ... just yet). Other metrics being equal .. I would like to use a lesser number of member functions. Actual: I get template matching that is contrary to my intention. (I dont understand the actual template ...Show All
SQL Server Install regular SQL Server Management Studio over SQL Server Mangement Studio Express (SSMSE)
I installed SQL Server 2005 Express edition with the SQL Server Mangement Studio Express (SSMSE) on my work laptop. When I tried to manage the SQL Server 2005 instances on our servers, I couldn't expand/drill down on the DB Maintenance Plan. This prompted me to find out that this may be one of the features that are lacking in the "Express" version of the SSMS. Therefore I'm in the process of finding a way to 'upgrade' my SSMSE to regular SSMS. I popped the installation disc of "SQL Server 2005 Standard Edition" and there are client tools/components that I can install which I believe SSMS (Management Studio) is part of it. However when I clicked through the wizard I was told that all the components are already instal ...Show All
SQL Server How to manually attach reportserver database using rsconfig or rskeymgmt
Please i installed sql server 2005 and it did'nt create the databases nor virtual directories, What i did is, copied the database from another comouter including temprs database and also created virtual directories (reportserver and reports both) http://localhost/reportserver or http://localhostreports both does'nt work and also when i opened the report server configuration utlity to see, there also i have Red X marks under report server virtual directory and also for reports virtual directory everything looks greyed out saying <Not Set> Please help, how to manually run the rsconfig.exe or rskeymgmt to create news keys and initialize again. when i run rskeymgmt -d or rskeymgmt -s anything i do it gives me a message ...Show All
Visual Studio Team System WorkItem Attachments - How to upload?
Hi, I am building a asp.net page to add workitems to TFS. It calls my custom Web service to add the workitem. I guess this web service should be deployed onto the same server as TFS. I can add an uploadFile control to upload a file to the web server. If my TFS server is different to my web server, then how do i get the file into TFS thanks Cc You can use TFS WorkItemTracking Object model to add WorkItem attachments. You can find TFS SDK at http://msdn2.microsoft.com/en-us/library/bb130146(VS.80).aspx . Also refer to http://blogs.msdn.com/narend/archive/2006/07/29/how-to-configure-wit-om-on-a-web-application.aspx for more details on how to use WorkItem Tracking OM from a web ...Show All
Visual Studio Team System How to break up projects?
Are there any comprehensive books or papers on TFS I'm looking for some insight into what you need to take into consideration when creating projects under TFS. We currently have over 50 solutions in our organization, and hundreds of "projects" in those solutions. Should I be creating a TFS project for each solution we have I haven't found any documentation which describes what a TFS project is supposed to represent. As a matter of fact, I haven't seen any particularly good real enterprise examples. For example, it would be great if MS gave their TFS structure. They probably use it the most, so I'm sure they've run into all of the different issues. To give a little insight into the issues I've been pondering I'll give a little ove ...Show All
SQL Server XML DML question
I am trying to insert XML node which holds XML variable into another XML variable. Commented code, when inserted node is static, works. Using sql:variable() function I get syntax error. Who does know what is wrong here Can the function be used at all in this context DECLARE @mainxml xml , @addxml xml , @s varchar ( 1024 ) SET @mainxml = '<root><a><b>bvalue</b></a></root>' SET @addxml = '<c>cvalue</c>' SET @s = cast ( @addxml as varchar ( 1024 )) --SET @mainxml.modify('insert (<c>cvalue</c>) as last into (/root/a)[1]') SET @mainxml . modify ( 'insert sql:variable("@s") as last into (/root/a)[1]' ) SELECT @mainxml ...Show All
SQL Server Output from Execute Package Utility
For some reason I have yet to determine, my job didn't run last night so I used Managment Studio and right clicked on the main package (in msdb) and selected Execute Package from the context menu. The progress output from this utility is formatted very well and is easy to read. However, I could find no way to save this output. If there was some way to get a log in this format from a scheduled job, I would use it. Is there any way to capture the formatted output from the Execute Package Utility Will a silmilar formatted like this be available from Agent Jobs IanO ...Show All
SQL Server Execute As error
I have a stored procedure that needs to run with elevated privliges, so I tried setting it to run as one of the db owners. When a regular user tries to execute the SP, I get the error Cannot execute as the database principal because the principal "joejoe" does not exist, this type of principal cannot be impersonated, or you do not have permission. What do I need to set up so a user can be impersonated If I try to impersonate dbo, I get the error, Cannot execute as the database principal because the principal \"dbo\" does not exist, this type of principal cannot be impersonated, or you do not have permission. ...Show All
Software Development for Windows Vista CallExternalMethod Activity, Workflow Idle Issue - URGENT
HI, I created a custom composite activity embedding CallExternalMethod Activity and HandleExternalEvent activity to interact with the Workflow host (ASP.NET appln). I have a simple workflow like this, 1)CustomActivity1 2)Parallel Activity i) CustomActivity 2 ii) CustomActivity 3 3)CustomActivity 4 When the workflow gets executed, the steps 1 and 2 works fine. But when i complete both the items in the parallel activity, my workflow idles (fires the workflow idle event) without evaluating the next CustomActivity4. I have this Workflow Idle issue only when i place my customactivity within a parallel activity. Any help on this. thanks. Does the parallel activity rea ...Show All
.NET Development XML Instance document cannot detect attribute
Good Day guys, here's my problem: I declared this global attribute in my schema document. By the way, I'm using VS .NET 2003. < xs:attribute name ="OutputId"> < xs:simpleType > < xs:restriction base ="xs:byte"> < xs:pattern value ="[1-4]" /> </ xs:restriction > </ xs:simpleType > </ xs:attribute > I also declared this global element: < xs:element name ="Output"> < xs:complexType > < xs:sequence > < xs:element name ="MinOutputVoltageLimit" type ="xs:float" /> < xs:element name ="NomOut ...Show All
