perstam's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Get triangles from ID3DXMesh
How can I retrieve vertices and indices from a mesh file I have loaded into an ID3DXMesh object And load indexed data into system memory struct SVertexNPT { D3DXVECTOR3 position; D3DXVECTOR3 normal; D3DXVECTOR2 texcoord; }; std::vector< SVertexNPT > md_Vertices; std::vector< DWORD > md_Indices; LPDIRECT3DVERTEXBUFFER9 pVB; SVertexNPT* pVertex; pMesh->GetVertexBuffer( &pVB ); pVB->Lock(0,0, (VOID**) &pVertex, D3DLOCK_DISCARD); DWORD n =pMesh->GetNumVertices(); for (DWORD i=0; i<n; i++) { md_Vertices.Add( *pVertex ); pVertex++; } pVB->Unlock(); ...Show All
SQL Server Reducing storage space by moving rarely required columns to separate table while sharing Primary Key constraint
Dear all, In my current database design, there is one table (PState) which has a Primary Key (int) and a few other fields. During development, a pattern started to arise; for certain rows in PState, I wanted to specify an additional set of columns (over 10 of them with quite large lengths) for each row in PState. However, as these additional columns would only be required in approximately 20% of the rows of PState, there would be plenty of NULL values in PState if I would make this table wider than necessary. So, I decided to create a separate table with those optional columns (PStateWFI). In order to attach these additional columns in PStateWFI to PState in the cases they were needed, I would obviously have to create a Foreign Key c ...Show All
Visual Basic Connect to Access Database
Please any one can help me to connect to the access database , that is in the web which i want to connect using a windows application. Got it. It makes sense. Thanks much! ...Show All
SQL Server SQL Express user permissions?
I'm trying to build a web application using SQL2005 Express and Visual Studio Express. It all works OK on the local machine, but gives an error "Login failed for user xxxx\ASPNET" when used remotely. I can't find where I can set login permissions for SQLServer 2005 Expresss - can anyone help, please Thanks John This looks like a problem in the login control. The error reported probably has nothing to do with the actual error. The "login failed" error should always be logged to the errorlog file, if it did indeed happen. Probably the control is reporting incorrectly the error. Try contacting the VS team if this is a VS control. From what you have told me, there seems to be no problem with how ...Show All
Windows Live Developer Forums Configure the 3d plugin
when i installed the 3d plugin, i got a dialog with detail-settings once, i chose 'high' and closed it, now i want to reconfigure it, but cant find a way to display the dialog again. helphelphelp Go to http://maps.live.com and choose Options . It's in there, under 3D view options. ...Show All
Windows Forms strange program error...
Hey, in this code: public int Print( int charFrom, int charTo, System.Drawing.Printing. PrintPageEventArgs e) { do { CHARRANGE cRange; cRange.cpMin = StartPosInRichTextBox1; cRange.cpMax = StopPosInRichTextBox1; RECT rectToPrint; rectToPrint.Top = Convert .ToInt32(e.MarginBounds.Top * AnInch); rectToPrint.Bottom = Convert .ToInt32(e.MarginBounds.Bottom * AnInch); rectToPrint.Left = Convert .ToInt32(e.MarginBounds.Left * AnInch); rectToPrint.Right = Convert .ToInt32(e.MarginBounds.Right * AnInch); IntPtr hdc = e.Graphics.GetHdc(); FORMATRANGE fmtRange; fmtRange.chrg = cRange; fmtRange.hdc = hdc; fmtRange.hdcTarget = hdc; fmtRange.rc = rectToPrint; fmtRange.rcPage = ...Show All
Windows Forms Threading, Binding
Could someone tells me how can I update a List (of objects) from thread other then control's thread. I have a DataGridView bound to the list and when I update the list from other thread I got 'InvalidOperationException': Cross-thread operation not valid: Control '' accessed from a thread other than the thread it was created on Regards, Vasil The code is very trivial. From other thread I do this: MyObjectList.Add(New MyObject) So, I update list from other thread and exception comes up. Maybe I should do this update using Invoke method on DataGridView ...Show All
Visual Studio 2008 (Pre-release) It is too difficult to start a new WCF service
I am starting to get really frustrated. I have been using the an old CTP of .net 3.0 and been developing fine. It is nice and quick and simple 1. file->new web site 2. choose C# WCF website 3. hit compile. and all the WSDL etc. is auto generated 4. tell my client to add a new service reference Now that i've installed on the latest September CTP there are a thousand steps 1. file->new web site 2. choose C# WCF website 3. hit compile. and nothing is setup. 4. read a few websites about how to enable WSDL. 5. Realise that you then have to setup some endpoints 6. realise that none of it works 7. post on MSDN Any help would be great. I was half way through a project but can't continue any further until i can actually create a new serv ...Show All
Visual Studio Team System Server Restore
I have a server that was infected with a virus and therefore had to reinstall windows. The machine, domain and service accounts are all the same between the two installations, but when I try to execute "tfsadminutil sid /change sbdweblocal sbdweblocal" it tells me "ERROR: Could not access database". The application pools for TFS are using SBDWEBLOCAL\TfsServices as their identity and I've verified that this account has access to the database by logging in as it and opening each table in the SQL Server Management studio. I'm pretty sure this is a SQL server security issue, but I'm not quite sure what to check next. thanks, Aaron I was able to find that Reporting Services were not setup corr ...Show All
SQL Server Unable to access Server
I am unable to get past ClientHandshake and connect to a particular SQL Server. Is there any way to attach one of its mdf files to another server without first detaching it. That is, without detaching it from the server I can't access If you do think that you have access to the server wouldn't it be better to find out why you can not get the connection rather then just moving the problem to another server ...Show All
Visual Studio Express Editions Unable to create a schema from the XML editor
I'm as green as they come with regards to Visual C# 2005 and XML, but according to this help article shouldn't I be able to create a schema from an xml file using the XML editor in Visual C# Express Well, for some weird reason I can't find the button at all! So I ask you, where is the button Did you ever find the button Having just installed Vis c# Express, I'm having the same issue... The referenced link was http://msdn2.microsoft.com/en-us/library/ms255829.aspx by the way. Thanks in advance, -kare. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. aaaaaaaarrrrrrrrrrrrrrrrrgggggg!!!!!!
I do not sleep the two days because of XNA framework… because it delays in such a way ... I am starting to hear voices ...I have fear… fear to sleep and the SDK not to leave. MClever wrote: Well just so you're well aware, there are ninjas trying to kill you.... Well, as long as there's not also pirates and robots. ...Show All
SQL Server Link Server to MySQL Database
Hi I ma trying to create a linked server to a MySQL database via ODBC. I am running SQL 2005 on Windows 2003 R2 (64-bit). Can any one point me in the right direction . MSDASQL (provider shipped with SS2005 which serves as OLEDB-ODBC bridge) is not supported in 64-bit. Check if there is an 64-bit OLEDB provider for MySQL that you can use directly. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. other operating systems?
will XNA ever be available for linux, mac, or other c'mon at least mac! Well, we really don't know very much at the moment. I can redirect you to the site of the Tao Framework that is starting this development. If you are interested you are welcomed to work in it, just sign in . But as a starting new baby technology (actually a baby technology even in Microsoft) we will see. I definitely believe that XGL will be the way to go but... Time will say. www.taoframework.com/Mono.Xna Cheers ...Show All
Visual Studio 2008 (Pre-release) How to handle failed logons
Hi, With a secured service, what is the usual means of handling a logon failure Should I just catch an exception Should I define a separate unsecured Logon service that returns true / false depending on whether a credential set is valid And is there a way to detect whether a service proxy has successfully authenticated with the server Thanks, Kent Sure Scott. Here's my server config: < system.serviceModel > < diagnostics > < messageLogging logEntireMessage = " true " logMalformedMessages = " true " logMessagesAtServiceLevel = " true " logMessagesAtTransportLevel = " true " /> </ diagnostics > < ...Show All
