MarkHarris's Q&A profile
Software Development for Windows Vista DX 8.1 and 9.0x games do not work.
I cant get DX 8.1 or 9 games to work at all. I installed the DX 8.1 redist and DX 9.0b redist but my software cannot initalize the DX objects I even tried to run in XP SP2 compatibility mode with no luck. I can get 9.0x games to work and it is making me mad please tell me how to solve it. ...Show All
SQL Server 2005 SQL Reporting Service XML Data Source (WebService)
Does anyone know how to ensure a WebService/WebMethod needs to be serialized to ensure is compatible with Reporting Services' new XML Data Source when passing parameters to the report. I have had success on using the Report Server WebService http://localhost/reportserver/reportservice2005.asmx and using the Query designer to pass the SoapAction call <Query><SoapAction>http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListChildren</SoapAction></Query> and associating the data set parameters to the Designer GUI parameters (which I may say is not documented well on BoL) But when using ANY ...Show All
Visual C# c# asp.net static variables
i'm a little confused with c# static variables. i understand what static variables are, however it seems their lifetime goes beyond the lifetime of the page call (in asp.net). eg. a static variable in some class public static int m_test; EXAMPLE SENARIO: 1. call the page and print the variable (value is 0) 2. call the page again and set the variable to 100 3. call the page again and print the variable (the value is now 100) I am a little concerned because I am assuming the static variables exist in the scope/lifetime of a single page call. however with the above example, i can no longer assume that the variable's value is 'clean' (because it ...Show All
SQL Server raw file destination and environment variables
when using a raw file destination it would be nice to be able to use an environment variable for the filename property. like %my_extract%\data.txt instead of c:\my_extract\data.txt You could use the script task to define a SSIS variable, storing the file name, built using the environment variable. Then you can use this variable in Raw adapters by using the File Name from Variable access mode. HTH. ...Show All
Visual Studio Tools for Office replacing text in header & footer
I know how to find and replace text in a Word document using Visual Basic 2005 (see code below), but I don't know yet how to change the header and footer. Can anyone give me a clue dim aWord as new Word.Application dim rng as Word.Range aWord.Documents.Open(doc) rng = aWord.ActiveDocument.Content rng.Find.ClearFormatting() rng.Find.Text = sourceTxt rng.Find.Replacement.Text = newTxt rng.Find.Execute(Replace:=Word.WdReplace.wdReplaceAll) aWord.ActiveDocument.Save() aWord.Quit() Hi, There's a great article on doing this on the Word MVP site at http://word.mvps.org/faqs/macrosvba/FindReplaceAllWithVBA.htm ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animating a leg
hi all, I'm trying to create a simple animation of a leg. The leg would be made out of two parts and each part would be a mesh (could be just Mesh.Cylinder). I know how this should work in principle but when I have to calculate the matrices all goes wrong... Here's my idea: Given the angles of rotation for both parts rotate and position the upper part (which will maybe be someday connected to a torso) then rotate the lower part and connect it to the first one... Could someone give me a simple example of how to correctly multiply the matrices in order to achieve the desired result thank you, sa o ...Show All
Visual Studio 2008 (Pre-release) MSMQ error opening queue
Hello. I'm trying to use msmq to establish communication between and indigo client and an indigo server. I've set the endpoint like this on the server: <endpoint address="net.msmq://localhost/private$/indigotests" binding="netMsmqBinding" contract="ProgrammingIndigo.IWeather" ...Show All
Windows Forms Child Form
Simple question, I just can't remember how I did it years ago using VS Pro 6.0 and can't find it. But using VS.Net 2003 now. I have the main form. I created another form and can open it just fine in the program. It shows on top of the main form. What I want is for it to use the main form. That is, the main form's menu is still visible and the child form is placed ontop/in place of the main one, not another window opening. Thanks, Zath You need to be more specific. What kind of environment are you dealing with Is this an MDI application What do you mean be placing the ...Show All
Visual Studio Team System How to delete a /$folder from Source Control?
After deleting a team project using the " TFSDeleteProject", although all the work items and sharepoint site and reports are all gone, the source control project is not being deleted. I've tried "TFSDeleteProject" with the "/force" option and also followed the instruction on this discussion forum: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=4809&SiteID=1&PageID=2 with no luck. Is there any way of deleting this Thanks! Try tfsdeleteproject /force. If that doesn't work then I'm afraid you're stuck until Orcas ...Show All
Game Technologies: DirectX, XNA, XACT, etc. can i implement XACT_CALLBACK_NOTIFICATION function in a c++ dll
hi all, iam trying to implement a XACT_NOTIFICATION_CALLBACK function in a c++ dll problem is xact is not calling this function . when i implement the same mechanisam in win32 (exe) it is working perfectly . i dont know what is the problem is . any methods or code samples are wel come i dont know whether it is RIGHT or WRONG to implement this notification mechanisam in dll one more thing when i try to click on some of the controls in the XACT IDE it is giving an error like OBJECT INITIALIZATION NOT FOUND what this mean It should w ...Show All
SQL Server Application Roles in SQL 2005
We have an an application that was written using OLE DB (ADO) against a SQL 2000 Server that uses an Application role to give rights to the database objects. It connects, calls sp_setapprole and goes on. If the database needs to LOCK a record, it is creating a new ADO Connection and instantiating the Approle again. This model has been working fine up til now. Now we are installing a SQL 2005 server for the latest version of the product we are working on and are running into an error. The error is Error: 18059, Severity: 20, State: 1. The connection has been dropped because the principal that opened it subsequently assumed a new se ...Show All
Visual C++ __PRETTY_FUNCTION__
Hello, what is the equivalent to the macro __PRETTY_FUNCTION__ as it is defined for g++ thanks in advance, andreas namespace A { class A { public: void Func(ostream &os) {...}; }; } VC++ has the following macros: __FUNCTION__: returns just the name of the function. For the above code that's A::A::Func. __FUNCDNAME__: returns the decorated name of the function. For the above code that's Func@A@1@QAEXAAV $basic_ostream@DU $char_traits@D@std@@@std@@@Z . __FUNCSIG__: returns the signature of the function. For the above code that's void __thiscall A::A::Func(class std::basic_os ...Show All
Visual Studio Express Editions VWD Couldn't be extracted
Hi, I receive an error during extraction of the vwd.img file, it asks me to retry, ignore or quit. I try retry but same prompt re-appears, when I click ignore, files are extracted but installation encounters problems. Please let me know how to fix the issue. Thanks Zubair Yes, the problem was with the download size of the file, re-download solved the problem. Thanks Zubair ...Show All
Visual Studio Team System Associating data with a test - selected records
Is there a way to select what rows are used on a data driven test I made the mistake of connecting to a table witn 10,000 records! Yes, you should be able to use a view for data-driven unit tests. With SQL Server 2005, at least (I tried this on the Express edition), views should appear in the dropdown for the Data Table Name property (they may actually appear twice, due to a known bug, but both copies will work). If you don't see them there for some reason, you can also just type in the name of a view as the tableName argument to the DataSource attribute. A view specified there should be treated the same as a table. ...Show All
Architecture workflow engine and rule engine performance
Please give me your criticakl comments on performance degradation issues arising out of usage ofworkflow and rule engine vis a vis increase in scalability and agility I think that at the end of the day it doesn't matter what performance degradation (if any) you have - it only matters does the architectural appraoch of workflows and/or rule engine fits your solution. for example, for business rules do you have complex business rules does your business rules change frequently, do you have a lot of business rules . Once you decide this is the right direction - you need to evaluate the performance and scala ...Show All
