DTUK's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. How do I combine two vertexbuffers and then use the DrawIndexedPrimitives() to draw them?
I have two vertexbuffers and each have its own TransformedColored[] and IndexBuffer .There have much method to draw them.But I want to use this method. The method is to combine two vertexbuffers and then use the DrawIndexedPrimitives() to draw .But I dont known how to set the code. like : device.SetStreamSource(); device.DrawIndexedPrimitives(); and my two VertexBuffer is below: static VertexBuffer vertexBuffer1; CustomVertex.TransformedColored[] verts1 = new CustomVertex.TransformedColored[4]; verts1[0].X=150;verts1[0].Y=50;verts1[0].Z=0.5f; verts1[0].Color=System.Drawing.Color.Red.ToArgb(); verts1[1].X=250;verts1[1].Y=250;verts1[1].Z=0.5f; verts1[1].Color=System.Drawing.Color.Brown.ToArgb(); verts1[2].X=50;v ...Show All
SharePoint Products and Technologies wss making the "sites" dir viewable searchable.
question about sharepoint "sites" So we have our sharepoints server url: sharepoint.corp.<companyname>.com/sites/<subsite>/defaults.aspx There are a whole bunch of sub sites under: sharepoint.corp.<companyname>.com/sites/ but when i point IE to sharepoint.corp.<companyname>.com/sites/ I get a 404. so my question is this. my boss wants to be able to search all the subsites under <sites> dir in order to do that I am assuming I need to get this root Sites dir to be viewable or searchable Any ideas -wss newbie!! Are you able to navigate to sharepoint.corp.<companyname>.com/sites/ without typing it into IE (that is ... using the click on the site ) ...Show All
Visual C# Create my own mp3 stream
Is it possible to create your own mp3 so you could theoretically create your own internet radio station I have been doing a little research and I would like to implement a compatible version of the Shoutcast protocol does anyone know any available source code in C# preferably I’m also interested in consuming Shoutcast streams within my own C# application including extracting all metadata ...Show All
Visual Studio Team System How to give thinktime option for a mixed test proportion in VSTS
Hi, We are doing mixed test for a windows based VB.net application. We are unable to give the thinktime for each transaction. Can anyone please help us in how to specify the thinktime in each script. We have tried giving sleep, but it makes all the running scripts sleep for that particular duration. We want the specified transaction alone to sleep for the duration. Any pointers will be highly appreciated. Thanks M.Richard Not sure when you say transaction you mean each request or for each test. Regardless, I think you will have to write a plugin. Webtest Request Plugin , webtest plugin, or a LoadTest Plugin to do this. You could then access the Thinktime property for each test or request. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to show Decals in Multitexture ?
How to show Decals I try to do a multitexture of a ''bullet impact'' on a wall I have a texture of the bullet impact and a alpha value where the texture is black I try to put this Decals on a texture of a wall I can MODULATE, I can ADD, I can remove the Alpha part But I cannot simply put the Decals in place where it's not alpha It's probably a trick of Masking…How can I do this ...Show All
Visual Studio Express Editions SAVE ENCRIPTED PASSWORD INTO ACCESS DATABASE
i have an input text that asks for the user to put a password on it..and a button that sends the string to this function i found in the forum to encrypt the code.. Public Shared Function HashPassword( ByVal password As String ) As String Dim sha As New SHA1Managed Dim passwordBytes As Byte () = Encoding.UTF8.GetBytes(password) 'compute the hash Dim hash As Byte () = sha.ComputeHash(passwordBytes) Return Convert.ToBase64String(hash) End Function this function returns the password encrypted, now...i need to save it in my Access database... Personal.mdb EmployeeID:string; Name: String; LastName: String & Password:String. My idea is just to save the result from my ...Show All
Windows Forms Problem with DropDownList in C#
I am using DropdownList to enable the user to selct an option. It is used to selct a name and amount (Two seperate drop downlists). A method is then called with the two values selected. The code is below private void Button1_Click(object sender,System.EventArgs e) { string playerName = DropDownList1.SelectedItem.Text; int fineAmount = int.Parse(DropDownList2.SelectedItem.Text); addFineToRecord(playerName,fineamount); } My problem is that the DropDownlist1 line of code always returns the first name in the dropdownlist, regardless of what I select. I dont understabnd why it does that when the second one seems to work fine Would it be better to use RadioButtons to select the name or maybe a CheckBox Any ideas why this ...Show All
SQL Server iif/switch statement does not work in input parameter expression
Hi There, One of the parameters that i need to pass to a stored procedure of my report, i wish to dynamically calculate from another input default parameter lets say parameter 'DrillDown' = "ABCDEFG" paramenter 'MyLevel' is calculated by either of the following a switch or iif statement: =switch (left(Parameters!DrillDown.Value,1)="A",1, left(Parameters!DrillDown.Value,1)="B",2, left(Parameters!DrillDown.Value,1)="C",3, left(Parameters!DrillDown.Value,1)="D",4, left(Parameters!DrillDown.Value,1)="E",5, left(Parameters!DrillDown.Value,1)="F",6, left(Parameters!DrillDown.Value,1)="G",7) --or-- =iif(left(Parameters!RepLvl.Value,1) = "A",1, iif(left(Param ...Show All
Visual Studio 2008 (Pre-release) where we use WCF
any can tell me a practical scenario where we use WCF and how it is better than remoting and webservices The list is endless but to name few of the places where it can be used is business-to-business (B2B) business-to-consumer (B2C), Interoperability with other platforms and technologies messaging for any kind of communication Routing and for all the kind of services that were earlier developed using ASMX, WSE, Web Services, MSMQ, and distributed stack. It also helps in creating the distributed application in a very easy manner that earlier would have involved the usage of two or more distributed technology. These custom solution were earlier not possible to develop in either web services or .NET Remoting. WCF facilitates in buildin ...Show All
SQL Server How to render image and html both in the same report when using Render method of reporting services.
I am using the response.binarywrite after getting data using the render webmethod of reportingservice.I have provided the format as HTML4.0.I am not able to get the images embedded in report. Another issue,I have created drill down reports,The expand and collapse + and - sign do not appear in the browser.All the data whose hidden property is true also appear visible in the report.in this case too i am using response.binarywrite using render webmethod of reportingservice using HTML4.0 as format. Please can anybody suggest solution regarding this...... Hi Maciej, Thanks for the info..,Please could you provide me with a some links where i can find the code or explaination of how it must be d ...Show All
Visual FoxPro foxpro for windows
Hai, I hope i am not troubling you all. i have installed foxpro for windows 2.6a on win 2000 server. but when i am trying to run that i get a error divide by zero or over flow error. how can i run foxpro for windows. please help me. There's a patch for this at http://support.microsoft.com/kb/240982 ...Show All
Windows Networking Development Weird one - Router Death by Vista
Here's a weird one. It seems that Vista RC2 is routinely killing my ADSL router I have a dual boot system (patched up XP Pro vs Vista RC2). Vista seems to be killing my D-Link DSL-500 like...., several times a day while Vista is running. Has anyone else noticed this I'm thinking.... some sort of weird network plug and play thing (which is disabled - by the way) RickW bb10, Nice try. I tried it and it seemed to work for a few hours. I had really high hopes - the fix sounded attractive intuitively. It has to be something like this. i.e. something Vista is doing differently that the router is not expecting and not handling properly. Any other ideas RickW ...Show All
Visual C++ How do we change the name of exe and ini file
Hello, I am having a project by name urpc and its building into urpc.exe. Now i have changed the solution file name to mm300 and when i build i am building into the same urpc.exe How to change the exe name and the ini file name now. Please suggest me some solutions. Thanks & Regards It's not recommended to edit the vcproj file directly. You can change the name of the exe file by right clicking the project in the solution explorer and selecting Properties. Select the Linker node and the Output File property is the value you need to change (for both Debug and Release) to change the name of the exe file generated. ...Show All
Visual Studio Team System Profiling on WinMobile with VS2005?
Does the Team System upgrade support profiling memory and/or performance on WindowsMobile devices Or is this desktop only profiling support If not supporting mobile devices, does anyone know when there will be a released profiler for winmobile Unfortunately, I am still using the Embedded VC profiler from like 2002 and I'd love to upgrade if possible. Thanks! check out the following post... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=843872&SiteID=1 Hope this helps. Thanks, Kathir ...Show All
Visual Studio 2008 (Pre-release) How can we secure our interface?
Hi, With the interface being an XAML file, is the end-user able to change everything regarding positioning and to some extent behavior (via changing the bindings) How can this be controlled On the other hand, if we WANT to allow the end-user changes in the presentation alone (not in behavior) is there a way to do this Thanks in advance!! Juan Dent There are ways to allow a user to customize the look and feel of your application. It all starts with creating "lookless controls" which is slightly more complicated than using UserControls. Your lookless control can have its template overriden. How does your code-behind do anything useful with the control Part of your control's API should be its require ...Show All
