CRasmussen's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. can i use visual studio .net professional?
Can i use visual studio .net 2005 professional with xna or do i have to use xna game studio express. and if its possible to use vs professional would it still be better to use the game studio sorry if this question has been asked, i did a search and nothing came up. thanks for any help You can use them, just not for 360 development. You're pretty much unrestricted for Windows development. You can't expect the same for development on a console when what you write isn't going through certification. ...Show All
Smart Device Development Application login
Hi, i am building a mobile application, in which the users needs first to login, and then can perform several operations against dedicated web services. we hold an offline table in Sql Mobile with the users that can login into the application. now, considering that the user has successfully logged in (checked againsted the offline table) - how do i check in the web service that the requester of the method is a legitimate user. should i send out the user+password on each call to the webservice what is the best practice to work with web services , where i want only authenticated users to use I read a while ago, that i can login once (using a login method in the webservice), get a token and use it is the next calls. Th ...Show All
Windows Forms Mouse wheel left/right click ?
My mouse wheel can click left and right as well as down. Does anyone know how to capture this event It doesn't fire the mousewheel or mouse click events. I also tried WM_SCROLL. Thanks for the suggestion, but the two X buttons are the ones on the side of the mouse. I'll try it, but reading the docs for the message, I'm pretty sure this won't do it. ...Show All
Visual Basic dispose
having created my user control (which contains a bunch of variables, subs, functions,and controls - buttons, textboxes, etc) and added them to a panel on my form i want to clear the panel.unfortunately it seems the memory never gets freed up as after a few loads and clears the program tosses an out of memory exception (on a laptop with 1.5 GB or ram). i cant seem to free up the resources properly... in the dispose method do i need to set everything to nothing (all the variables inside the usercontrol) and call the dispose method of any control that is inside the usercontrol is that all i need to do any debugging tips as to figuring out what isnt getting cleared so i can add it to the dispose method Thanks, Dan ...Show All
Smart Device Development How can I download doc, jpg and other files to PDA via CF.Net?
Hi all, I really need some advice here - I'm developing a PDA app in Cf.net 2.0 with SQL Server 2005 on the server. The app allows medical professionals to take selected patients data with them when they go out to consult or to hospitals etc and as part of a patient's record there could be associated documents (say, referrals or letters from another doctor or text files or even JPG's/BMP's of xrays, etc) and what I need to do is when the user syncs with the server (via my CF.Net app) those files should be downloaded to the PDA so they can be opened there - so a .doc file will open with PocketWord for example. My problem is literally how to do this! ActiveSynch does this stuff automatically if you copy a file manually but I want to downlaod ...Show All
SQL Server Loading data from xml
I have an xml file I want to use as the source. It's not overly complicated, but not simple either. It has one hierachy, and one optional field and looks like this a 1 'text' 2 'text' b 1 'text' 2 'text' 'optional field' Ok, now I want the data to load like this: a,1,text a,2,text b,1,text b,2,text, optional field but when I try to use the xml source it won't create the xsd...anything I can do The error message is at the point when I hit the button to create a schema. Up to that point I'm simply pointing at a fairly simple xml file (part of which I've copied below. < xml version="1.0" > - < ADB ID =" 1 " > < I ...Show All
.NET Development Add new record
I learned how to edit a record, but now how do you add a new record Dim workRow As DataRow = workTable.NewRow() what is a datatable this is my hang up for now Davids Learning Remember a datatable is NOT the database table. But a local variable of type datatable that exists in memory only. If you wish to persist this data in the datatable then you need to run a process by which it will be written to a backing store - whether that be a database table (via a tableadapter) or some other means. What is being suggested is that the you have missed out a tableadapter.update method call which would persist the data table contents back to a database, Without this - the datatable is updated but ...Show All
Software Development for Windows Vista Sample Grabber misses samples
Hi All, I'm struggling to work out why the sample grabber sometimes misses samples. I have a filter graph which consists of a DV camera as source, dv splitter, dv decoder and a sample grabber on the video chain through to a video renderer, and the audio chain terminates in a null renderer. I'm using the sample grabber's buffercb method, which includes a double SampleTime parameter. I write a simple callback which basically divides this double value by 0.040 (my video is 25Hz, 40ms/frame) to get a frame number. I'm then just storing this frame number in an array. I'm not doing anything else in the callback, so it's very lean and mean After ~50 minutes of video, I dump the array contents out so i can analyse what frames i receive ...Show All
Visual C++ winuser.h error
Everytime i try to include winuser.h i get this: C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(42) : error C2146: syntax error : missing ';' before identifier 'HDWP' C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(42) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(42) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\winuser.h(43) : error C2146: syntax error : missing ';' before identifier 'MENUTEMPLATEA' C:\Program\Microsoft Visual Studio 8\VC\PlatformSDK\include\w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .swm
These files are very simple in structure, and it wouldnt be hard to write a converter. Heres how it goes: { String version (i.e "1.0.0.0") String originalFile (i.e "E:\dev\xna\source\starterkits\SpaceWar\media\projectiles\pea_proj.x") Int32 triangleCount Int32 vertexStride Int32 vertexStart Int32 vertexCount Int32 batchCount (for each batch) { &nbs ...Show All
Windows Forms If datagridview.Col = 0 Then
With datagridview.Rows If datagridview.Col = 0 Then ...... how do I test to see if the current datagridview's column is zero thx. -greg and how can I set the column thx. thx. -g thank you for helping me clarify this...it's a port from a previous grid.. does the follwoing make sense.... If DataGridView.Columns(0).Selected Then 'if column 0 of any row of a DataGridview is selected then DataGridView.Rows(nSpecifiedRowToSet + 1).Selected = True 'a specific DataGridview row is programmatically selected ...Show All
Visual Basic The simplest way to catch ALT + F4
Hello, If you need to intercept ALT+F4 in your program : (Instead of using KeyDown which is just bad ) Private Sub MainForm_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing Dim Response As MsgBoxResult = MsgBox( "Do you really want to exit " , MsgBoxStyle.YesNo) If Response = MsgBoxResult.Yes Then e.Cancel = False Else e.Cancel = True End If End Sub thanks for sharing that with the community. Remember, this will also work when you press the close button of the form which has this code in place, implement the FormClosing event with the messagebox, not just when you pr ...Show All
Visual Studio Express Editions Viewing variables
Hello While I'm debugging, even though the variables are fully defined, I can't seem to view them. They aren't recognized. What shall I do Thanks There are several reasons for this, so you need to give more information. But if you have the program running in the debugger with the symbols in watch and you get the error CXX0017: Error: symbol "xxx" not found there are two things you should do. The first is make sure you got the spelling right, including case. You would be surprised on how many people get this wrong. The second thing to check is to make sure you are running the program in debug more without optimisations. The optimiser can remove variables it can do ...Show All
Visual Studio Possible or not? -- adding info to pdf file then show it on a report.
I need to show pdf files on reportview, and I want to add some info like "Date Printed" on somewhere of the report. Is it possible to do that Thanks in advacne. Long Thanks, Limno, I think I didn't make myself understood. Say I have one pdf file: PDF1. I want to show this PDF1 on my report, and at the same time , add some info say "Date Printed" on the report. Basically, the report will show the following info: report begins Date Printed : Jan-01-2007 content of PDF1 Page 1 of 1 report ends Thanks, anyways, for your reply. Long ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with Coding4fun tut
Hai, I am facing a problem with the tutorial at CODING4FUN -beginning game devlopement http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning3/default.aspx Here's the code i build using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.Samples.DirectX.UtilityToolkit; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; "namespace BattleTank2005 { public partial class GameEngine : Form { public GameEngine() { InitializeComponent(); this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); int adapterOrdinal = Manager.Adapters.Default.Adapter; ...Show All
