AmirAlis's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Please Add Non-Generic DrawUserPrimitives and DrawIndexedUserPrimitives methods.
I posted this request in the Suggestion tool as well. Btw- where is the link to actually view the contents of the Bug reports, and Suggestions You'd think that would be handy from the connect.microsoft.com site, but I can't find it. Add the method: Device.DrawUserPrimitives(Type vertexType, PrimitiveType type, int count, Array vertexData); and a similar non-generic method for Indexed primitives. I have a rendering system that captures rendering calls, and retains the call information. Later on, it sorts all of the calls in order to minimize state changes before execution. This is a very commen scenario. IT IS VERY DIFFICULT to call generic methods (in a generic fashion) when you only know the vertex type, and have a un-typed array. For ...Show All
SQL Server update with sum
i want to sum up the values during the update process but error raises You need a SELECT befor the SUM(...). UPDATE T1 SET ParentBandStd = (SELECT SUM ( T3 . NettStd ) FROM STAGING . DBO . CUSTOMERBANDINGLOAD T1 INNER JOIN PRESENTATIONEUROPE . DBO . CUSTOMER T2 ON T1 . LOCALPARENT = T2 . LOCALPARENT INNER JOIN PRESENTATIONEUROPE . DBO . SALESANDORDERS T3 ON T2 . CUSTOMER = T3 . SHIPCUSTOMER WHERE T3 . INVOICEDATE >= @STARTDATE AND T3 . INVOICEDATE <= @CURRENTDATE AND T3 . TRANSTYPE = 'L') ...Show All
SQL Server SQL Question
Hi there, I have these tables: Students student_id (PK) student_name Courses course_id (PK) course_name StudentCourse student_id (PK) course_id (PK) If I want to select a student that has 'course1' and 'course2', how do I write this statement This didn't work: SELECT DISTINCT Students.* FROM Courses INNER JOIN (Students INNER JOIN StudentCourse ON Students.student_id = StudentCourse .student_id) ON Courses.course_id = StudentCourse .course_id WHERE Courses.course_name LIKE '%course1%' AND Courses.course_name LIKE '%course2%' The problem is 'AND'. it concate the two course_name(s) to be like this condition: WHERE Courses.course_name LIKE '%course1course2%' Any idea Thanks Chris Gin wrote: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. help with Pan Tilt and Zoom with simple 3D Cube
Hey guys and gals, I'm sort of new with XNA and programming with C# in general. I created a simple 3d cube and using this thread as a reference. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=687936&SiteID=1 I also created a keyboard component for my input as I want to manipulate the camera such as you would in a FPS game. My problem is that I tried to these lines of code to accomplish that and it doesn't seem to work. I have these under the Update section of my code. What am I doing wrong if (keyboardComponent.IsKeyDown( Keys .W)) { //zoom into object mCameraPosition.Z-=1.0F; } if (keyboardComponent.IsKeyDown( Keys .S)) { //zoom out mCameraPosition.Z+=1.0F; } if (keyb ...Show All
Internet Explorer Development IE7 Beta Antiphishing
I moved my master hard drive to a slave and installed a new master. I was trying to delete fiels off the old hard drive but there is one folder associated with the previous IE7 Beta installation that I can not delete. C:\Documents and Settings\User\Local Settings\Temporary Internet Files\Antiphishing The folder is inaccessible and undeletable. How do I delete it Ending explorer.exe and using command prompt does not work. dude, thank you! i've been trying to delete that folder for HOURS now. I had a feeling it had something to do with securities or permissions but i had no idea how to use them. a hundred thousand thanx. good thing i stumbled across this before i committed suicide. ...Show All
.NET Development need help inserting into a dbf file
Hi, I am using visual studio 2005 and this is an ASP.NET 2 application the dbf file is a dbase 3 file. How do i get this to insert the record into the table. I have the current vfpoledb drivers. Dim SQL As String , ret As String SQL = "INSERT SHIPDATE,TRANSACTIO VALUES('01/01/06',11111)" Dim ConnString As String ConnString = "Provider=vfpoledb.1;" + _ "Data Source=" + _ "'f:\logdavid.dbf'" + _ ";password='';user id=''" Dim oConn As OleDbConnection oConn = New OleDbConnection oConn.ConnectionString = ConnString oConn.Open() Dim oCommand As OleDbCommand oCommand = New OleDbCommand oCommand.CommandType = ...Show All
Visual Basic keycode
Hi, I wanna know whether there is a solution to get the keycode of a character. I mean i made a usercontrol button and a label on it. in vb we use the & char to identify the command character and when that is pressed 2gether with the alt key the button act like it was pressed. so in my app this char is the "k" and i want to check whether it is pressed together with the alt key. but this char can be any other character so i need to know how can i get the keycode of the that char marked with &. any help on this thnx Private Sub Form1_KeyUp ( ByVal sender As Object , ByVal e As System . Windows . Forms . KeyEventArgs ) Handles Me . KeyUp If e . Alt And e . KeyCode = Keys . K ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Custom Processors and Asset Duplication
This will probably be quite obvious once the answer is explained to me, but i am using a custom model processor, whenever i use it on .x models that are are added to the project (not just linked to but actually copied into projects directory) i get an error that more than one asset with that name is produced when i try to build, while if i use the custom processor on a model that is only linked from another project, it doesn't complain at all. How can i stop duplicates from occurring when i am using non-linked content (Thanks) Hmm, the exact wording is "More than one output asset is named '<asset_name>'. You must explicitly specify asset names to resolve the conflict". An ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GUI GameComponent Design
I had a couple questions on how to go about designing a GUI Game Component. The biggest thing I want to do is allow for users to setup the properties of controls(pushbutton,textboxes, etc..) in the design window. But because the controls are setup as inherited classes from the base class 'Control', i can't really have just one list of controls in the main GUI class. Should I create a list of controls for each specific control, which could get tedious or design it where one control encapsulates functionality for any possible control // FIRST DESIGN // Control Class Definition Example class Control; class TextBox : Control; class Button : Control; // GUI Screen (GameComponent) class GUI : GameComponent { private List ...Show All
Software Development for Windows Vista Why WF?
Hi, I spent the last few months playing around WF, finally have better understand on how to create workflows and design the host applications. Then the next question is where and how to make use of them. My job focus is on Web-based Document Management Solution, which might involved some document approval workflow. One of the basic requirements is we need to provide a way for the users to design / modify the workflow (like many other DMS solution in the market). If we go for WF as the Workflow engine, I've the following concerns: 1) the WF designer seems too complex for ordinary users to understand. Also doesn't work under Browser Environment (actually it can but not recommended because of security issues). 2) a workflow ...Show All
Visual Studio Express Editions create dll in c# that can be used in another programming language
Hello, I'm trying to make a DLL in c# that can be used in visual basic. The code of my dll you can find below, this dll i can use in a c# application, but the method Sommation is not accessible from another programming language. Can someone tell me how i can solve this problem using System; namespace Math { /// <summary> /// Summary description for Class1. /// </summary> public class MathClass { public MathClass() { } public static int Sommation(int x, int y) { return(x+y); } } } Thanks in advance, Jeroen Hi Jeroen, I've copied your code but it seems to work fine when using it from a VB.NET application. Steps to call the method from a VB.NET application: Add a reference to your DLL Set the following code: ...Show All
Visual C# Adding new project in current project?
How do i add new c# project file to a current project so that when i click a button on the current project it will invoke the project added... can also anyone provide me with c# code on "BROWSE" .. so that i can choose directory on where i want to save my file... thanks I dont see why placing theFolderBrowserDialog command in brackets works....its a string type thats being returned in the SelectedPath property so it should work... well the folder browser dialog only browses to the folder, you can use a SaveFileDialog, pretty much in the same way, if you want to save a file for example except you have to write the code for saving the file. however if you still want to go this way then its usually: theFolderBrowserD ...Show All
.NET Development InvalidCastException on a dynamically loaded type to base class
Hello everyone, I'm having some confusing casting exception on a dynamically loaded type. Does anyone see the problem WindowsService (references pluginB): Plugin=Assembly.LoadFrom(“PluginA”) object obj = plugin.CreateInstance(“DerivedClass”) AbstractClass ac = (AbstractClass) obj //this throws an invalidcastexception. However, the debugger shows me that obj’s base is AbstractClass. PluginA (references pluginB): DerivedClass : AbstractClass, InterfaceClass {} PluginB Class AbstractClass {} Verify that both types were loaded in the same load context. http://blogs.msdn.com/suzcook/archive/2003/09/19/57248.aspx Hope that helps, Stephen ...Show All
SQL Server Problem with Context Switching feature in SQL 2005
Hi, One of our client application launches a execuatable on server by calling master..xp_cmdshell. We are migrating to SQL 2005 and I would like to use the Context Switching feature We have sql login “client” which is used by clinet application and has very least privelge and have only required access to requried database and tables. xp_cmdshell is disabled by default on our server and I would like to enable xp_cmdshell, launch the executable on the server and disable xp_cmdshell . I have created another SQL Login “Bob” and is member of sysadmin. The below SP is created by logging in as “Bob”. My objective is to grant execute access on this SP and grant impersonate access to sql login “client” . So that client ...Show All
Visual Basic count
hi, i am very new to vb and have been looking for a solution for this problem for hours! i think that i have been looking at it for to long and have just completly lost the point of it, so any reply will be greatly appreciated!! anyway, here it is... i have a project where i must display the total number of items from 4 textboxs in between a certain range. for example if 10, 3, 4, 11 are entered into the textboxes, i want to display the total of numbers in between 0 and 5, thus 2 would be displayed. i know the answer will probably be something simple that i have overlooked, but i am near the end of my rope mentaly due to this !!!!!!!!!!!! First of all you want to display these things in a fashio ...Show All
