fletchdaf's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Direct3D View Matrix: porting problem from OpenGL
Hi, I am porting an application from OpenGL to Direct3D. OpenGL does not have a View Matrix and a World Matrix as Direct3D, but just what is called the ModelView matrix. I have the following lines of code in OpenGL: Code: glMatrixMode(GL_MODELVIEW); //Work on the ModelView matrix glLoadIdentity(); //Clear everything glLoadMatrixd(myModelViewMatrix); //Load my ModelView matrix Now I would like to port this to Direct3D, and this is my suggestion on how to do it: 1. Convert from OpenGL right hand coord sys to Direct3D left hand by scaling myModelViewMatrix with (1, 1, -1). (should I to newMat= myModelViewMat * scal ...Show All
Windows Forms Is there a way to convert a control to a different type of control?
I want to convert a textbox into a label. Is this possible I guesss asm.GetTypes() which returns an array of available types. ...Show All
SQL Server RSS feed with ISO8859 encoding
We have an XML source that reads an RSS feed. The document uses ISO8859 encoding, which causes an error in SSIS: "System does not support ISO8859 encoding". Is there any way around this Thanks, Dirk You were all right. I had the code ISO8859 -15 in my feed, but as described the code is not supported. I didn't knew the importance of the "-xx" at the end so I did not post my extension "-15". After some mails with the developer of the feed I was able to get the RSS feed now with "UTF-8" encoding - This works perfect! Thanks for the help! ...Show All
SQL Server Need Enlightenment on an AS2005 Error
Dear Anyone, File system error: The following error occurred during a file operation: Insufficient system resources exist to complete the requested service. . We're using AS2005. We get this error during our DW process -- specifically during the partition process. Around 3 to 5 partitions are processed in parallel during this operation. We're using a server box with 4CPUs and 8GB of memory. Both SQL Server and Analysis is on a single box. 32 bit is our version of SQL2005. Can anyone please enlighten me on what is causing this PLease! =] Thanks, Joseph ...Show All
Visual Studio Team System Work Item Type Diff between Import and Export
It is interesting that when you use witimport to import a work item type and then export it using witexport that the files are different. This process fully qualifies field names and adds some fields as well. (<FIELD name="Authorized As" refname="System.AuthorizedAs" type="String" />) I can understand the purpose of adding the <HELPTEXT> sections, but why are additional fields being added Correct. This is a core field which present on every work item type - even if it is not defined in the XML. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creating mesh from VertexBuffer and IndexBuffer - got some problem
Hello In my code, I make a terrain from an image. After it is doone, I would like to save it like a Mesh. But there is some problem with my code and I always get some problem, when calling terrainMesh.SetData() with VertexBuffer and also with IndexBuffer. If somebody could help me, please. Here is the code: // Create the vertex- and indexbuffer and set their data vb = new VertexBuffer ( typeof ( Vertex ),numvertices,device, Usage .None, Vertex .Format, Pool .Default); vb.SetData(verts,0,0); ib = new IndexBuffer ( typeof ( int ),numindices,device,0,0); ib.SetData(ind,0,0); // Create the vertexdeclaration ...Show All
Visual Studio Express Editions What is the right product
Hi All, I am trying to make sense of the new product lineup for Visual Studio and weather or not we are going to upgrade from VC++ 6.0 or not. We are a small house with a few programers and one MSDN Subscription (Mine) we typically only buy VC++ becasue that is all we do (We dont do JAVA c# or VB or anything else for that matter) and we work on multiple platforms (UNIX, Linux, WIN32). I am presently porting to WIN64 and Linux64. It seems as though the new product line is rather expensive for people just looking to upgrade their VC++ can we just get the STD edition and the SDK for the rest of our developers Anyone know if t ...Show All
Visual Studio 2008 (Pre-release) Where can I find the @ServiceHost directive attributes?
Hi Can anyone tell me where I can find the list of what attributes can be specified in the Service host directive for an svc file <% @ServiceHost ... %> Language=C# Debug="true" Service="typename" Factory="typename" CodeBehind="pathstring" Steve Maine has a fine post describing the thinking behind the updated @ServiceHost functionality and design at http://hyperthink.net/blog/2006/06/23/The+ServiceHost+Directive.aspx . Andy. ...Show All
Visual Studio Express Editions How do I get my free e-books?
I downloaded, installed and registered the beta editions before Nov. 7th. I have yet to get an e-mail though telling me how to access my free e-books. I have a benefits page where I can download icons and pictures but nothing about e-books. Anyone know what's going on Thanks. Since no one is replying I'm guessing everyone else has their e-books If so how did you exactly get to them ...Show All
Visual Studio Plugging in the SDC WiX tasks to Team Build
One for the sdc team! I am trying to use the CompileMsi task from Microsoft.Sdc.Tasks, the documentation uses the following example: <CompileMsi SourceFiles="SourceFile1.wxs;SourceFile2.wxs" OutputFile="OutputFile.wxsobj" ...Show All
Visual Basic Can't download Refactor
I went to the download site and clicked on the link http://downloads.devexpress.com/VBRefactor/Refactor!VB.NET-1.0.33.exe But I'm getting " The page cannot be displayed" error. Anybody else experience this John ...Show All
Microsoft ISV Community Center Forums (0x800A03EC): Paste method of Worksheet class failed
I just recieved this error message when i try to copy and paste some text using the right click method in excel. Any ideas why (0x800A03EC): Paste method of Worksheet class failed Hi Mike, The engineer needs additional information before he can investigate your issue: As there is too little error information of the issue, we can’t find useful information to resolve the issue. Would you please ask our ISV to provide us more detail information of the error. 1. > At least the description of the error is required. 2. > The source of the error is required. 3. > The scree ...Show All
Microsoft ISV Community Center Forums Application.FileSearch in Excel 2007
There is an issue which I am facing after I installed Office 2007. I had written a small VBA which would search for a file and if found will rename the file. I used Application.FileSearch then. Now I am tying to do it again but unfortunately there is an error prompted stating that 'the object does not exist' Set fSearch = Application.FileSearch defPath = "H:\SourceSafe_1_Feb-28_Feb_2006\SecondSet" Set rg = Range("MyFiles") fSearch.LookIn = defPath I have been frantically looking for changes in the VBA object model especially for Excel but cant seem to find them. Hi, I only have 2003 so this is just advice ...Show All
Visual Studio Team System Can't do Team Build with Tests
Whenever I try to run a Team Build that contains a test suite, the Build operation fails. When I look at the result, it says "An error occured during publish operation." What does that mean, and how do I rectify it Thanks in advance. David Mullin Here is a post that might help solve your problem - http://blogs.msdn.com/team_foundation/archive/2005/04/26/412118.aspx Thanks, Anu ...Show All
Visual C++ LPCTSTR in VC++ 2005
Greetings! I'm converting programs written on Visual C++.NET 2003 to Visual C++ 2005. While building them with Visual Studio 2005, I got hundreds of errors like: "cannot convert parameter 1 from 'LPCTSTR' to 'const char *'" or "cannot convert parameter 1 from 'const char *' to 'LPCTSTR'". I wrote a simple application to duplicate it (see below): #include "stdafx.h" #include "windows.h" int Work(LPCTSTR s) { return strlen(s); } int _tmain(int argc, _TCHAR* argv[]) { const char s[] = "ABCDE"; const char *p = s; Work(p); return 0; } Does anyone know how to solve it I don' ...Show All
