MikeRisher's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. newbie question
Hi, i have 3 questions regarding direct3d 1. Lets say i have a 3D cube, and i want to show its wireframe. I can achieve that by g_pd3dDevice->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);, but how do i show the wireframe without the internal triangle lines drawn In other words, how do i show a cube with just its edges and not the trianglelines which makes up the cube 2. I have a device (g_pd3dDevice) which i render an .X file to it. I need to do some image processing on the pixel buffer. How do i get the pointer to the pixel buffer Where should i do this I'm using the simple tiger.x sample from directx sdk. Pls help with some code example. 3. How can i render an object with fillmode = shade and fillmode= wireframe on the same i ...Show All
Visual Studio DSL Element (concept) - Propriety Validation
Hi, I wanna put a restriction on some propertys of my DSL Elements, i.e: string field with 3 chars; string field limited to 50 chars, ... How can I make this validation I really appreciate your help D Hi, W.Jansoone is right, there are a few ways to implement this kind of behaviour. One of the things that might influence your decisions for choosing one of the options is the user experience you want to expose in your DSL. For example, when you implement your validation in an "validation method" the validation is not evaluated untill the user hits the "validate" command on the diagram. So, the user can finish his model, validate it and correct any errors that might be in i ...Show All
Visual Studio Express Editions starting other applications.
How can you run other applications installed on the user's computer with your program I wanted to make a "Hub" application that would be able to run other applications of mine that were allready installed. I need the vb code for this please. (run (path to program)) Thanks! Process.Start("PathToFile") With this you can use the exe name or the actual file name as long as the extension is registered with the target computer ...Show All
Software Development for Windows Vista add child activities to a Replicator Activity
Hi All , Can anyone give me an example on how to create a replicator activity where the number on children is knwon only during execution ie is dynamic How do i add child activities to the replicator I have tried the sdk lab7 exercise and it was helpfull but i am still wondering what if the number of child nodes is not known till the workflow starts. Is it possible to get data from all the child nodes and perform an operation (like average ) on it Thanks Sonali To cause another instance of the replicator child to be spawned you just need to add a value to the CurrentChildData collection. The following is an example of what you could use in any of the replicator’s event handlers: ...Show All
Visual Studio Express Editions Update Method Problem
I'm struggling with a problem I am having with the update method when saving data that has been added to a datagridview. I have 2 forms. One form called Price_History that has a datagridview. The other form has several fields based on a different table and it is called Tracking_List. I have a button on the Tracking_List form that once fields have been entered, it saves the record and also sends data to the datagridview in the Price_History form. I have the following code on the Tracking_List form to save the data that was passed to the Price_History form: Dim newRecords As DataDataSet.Price_HistoryDataTable = CType (DataDataSet.Price_History.GetChanges_ (Data.DataRowState.Added), DataDataSet.Price_HistoryDataTable) Pri ...Show All
Visual Basic how2 show "access key" underlined on button
I've added access keys to buttons on forms written in VB2003. Now, when migrating to VB2005 I see that the access keys still work but the key is not underlined in the form's button. Thanks for help ' Set the letter "P" as an access key. Button1.Text = "&Print" Note: The underline does not appear until you press the 'alt' key. ...Show All
.NET Development SetServiceStatus - service handler
Hi, I'm following the example in http://msdn2.microsoft.com/en-us/library/system.serviceprocess.servicebase.aspx # In the OnStart Method there is this: IntPtr handle = this.ServiceHandle; But the System.ServiceProcess.ServiceBase class does not have this atrribute. How can I get myservice handler to pass to the SetServiceStatus method Help is really appreciated, D Hi, yes, I have problems ! Before SetServiceStatus, I issued QueryServiceStatus (the handler is not null). It return false and the call to Marshal.GetLastWin32Error() returns code 997 = "Overlapped I/O operation is in progress". How should I use it Thanks, D ...Show All
Software Development for Windows Vista Where to store configuration data?
I want to store some configuration data for my app that is accessible from any user, for example if it is run under a different account using the scheduler. Before Vista, I would have just written to HKLM\Software or used a data file in the application folder. I assume that this would require administrator privileges under Vista, which I want to avoid. Where should I store this data ...Show All
Visual C# "Absolute path information is required" bug.
Hello, I've installed Visual Studio 2005 MSDN and I have problems with C# projects. Whenever I try to start a C# project (Windows Application or something else) I get message box: Microsoft Visual Studio "Absolute path information is required". Solution file is created in specified directory (and *.suo file), but nothing else. I also cannot open/convert C# projects from VS2003. I don't have any blocked/protected directories. Everything works with administrator permissions. I have my system partiotion (C:) and all apps (including VS) are installed on drive D:. I've never installed any VS (2003, 2005 BETA) or any SDK on this machnie. Only .NET framework "runtime" (no SDK). I've tried to create C# projects on different partiti ...Show All
Visual Basic populating an Access database using visual basic 2005
I am trying to create a new employee application that gets input from a user in text boxes and then take that information and populate a database in Access that will later be pulled to the Track IT! database on SQLserver2005. How do i do it Thank you. Also, it is a 3 form application... with different information on all forms... would it be easier to populate the database each time they go through the form or should i just have it get all the info at the end and populate it then ...Show All
Windows Forms change content/using tabs
This is an example of what I'm trying to do. So first you have the first (click for image)situation. Then you click "Update" and you get second (click for image) situation. My question is How Thanks Generally speaking, you change the right part according to the left part. To do this, you may use splitcontainer control to split the windows form into two part. And the left part in the image is very similiar to the outlook bar, if you want the same effect, you can have a search and i'm afraid there are lots of demos out theres. As long as you click the button, say 'Update', the right part is updated, changed to a new interface. Just give you a gerneal idea. Hope this helps. ...Show All
Visual Basic load jsp files
Hi developers, I hope you can help me solve this problem. I converted an asp webpage to the.net version. The following is the only line in the code that I use to call the method in both pages. asp: currfocuslocation = get_CurFocusLocation(Request( "rec_type" ), "" , "" ) & "set_PAY_TYPE();Disable_On_Load('PPAP10');" asp.net: currFocusLocation = topDisplay.Get_CurFocusLocation(Request( "rec_type" ), String .Empty, String .Empty) & "set_PAY_TYPE();Disable_On_Load('PPAP10');" I'm trying to call functions in my code, but it doesn't work in the net version. in the jsp file function set_PAY_TYPE() { //disable text fields } function Disable_On_Load(sScreen) { //disables a checkbox ...Show All
Visual Studio 2008 (Pre-release) Change the image dynamically from the Style
Hi all, I've just started a dive from the "learning cliff" into the WPF, so bear with me. I am creating a style for the TabItem to display icons with the text by modifying template from SDK samples. It looks like this: <Style TargetType="{x:Type TabItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <Grid> &n ...Show All
.NET Development Platform specific builds
Hi If a dot net 2.0 application is to be deployed on 32 bit and 64 bit systems, does Microsoft recommend providing the end user with a single executable (i.e. set the 'Platform Target' to 'Any CPU') or providing the user with the option of a 32 bit or 64 bit executable (i.e. set the 'Platform Target' to 'x86' or 'x64'). Thanks Same answer . ...Show All
Windows Forms "Parameter incorrect" error adding Setup project to solution
If I try to add a Setup Project to my solution, I get an error stating the parameter is incorrect. This also happens if I try to create a new solution based on the Setup Project. Any help Robert, I've had a chance to try your suggestion. Removing the key had no effect on the problem. some additional information: I've moved the project to several different computers and they all exhibit the same error. the error occurs immediately after the build is finished and the "deploy started" message appears. I do have connectivity with Active Sync (I can manually copy my app into my run directory and i can use the "device connect" in Tools in VS2005. So I'm reasonably convinced that this is an artifact of the ...Show All
