Stephen_Sbh's Q&A profile
Visual Studio Express Editions Making Bullets
I have Just began learning how to program, and i wish to make a game. In the game i am creating, i have a few questions 1) How would you make bullets move across the screen. (I have a little square picturebox for now) 2) if two objects are Dragdropped onto each other, is there any code that would make the one that was dropped apear next to the picturebox that was dropped on 3) Is there a code that would randomly create one of 3 possible pictureboxes every 10 seconds Thankyou for answering my questions in advance. for #3 you can use a timer control, set the interval to the interval you wish then just create a new instance of a picturebox and place it on the form on the desired location.. ...Show All
Visual C++ dialog / menu stop working in MFC application
I have a C++ MFC application that I originally wrote using VS6, and am now compiling in VS2005. It works for a while, but at a certain point the menus and dialogs stop working. If I close other applications running in the background, I can buy some time, but eventually the problem will resurface. It doesn't seem to be associated with any particular feature as much as the length of time that I've been working in the application. One thing I've noticed is that when the problem resurfaces many other applications will not even open until I exit my program. I'm running the application in Windows XP. I've been using the Classic Windows Mode because I had read about a potential resource leak using the ot ...Show All
.NET Development Problem with creation URI like "http://s3.amazonaws.com/turk-worker-upload/part%2Fpart%2F?parameters"
The subject somehow results in: "http://s3.amazonaws.com/turk-worker-upload/part/part/ parameters" Is there any way to exclude such behavior It just decodes %2F into / I think the only part where you can have encoded parts of URL special symbols (like /) is a query string. I suggest it is according to URL standards but I'm not sure. ...Show All
Visual Studio Express Editions How do I check if a URL is valid?
How do I check if a URL is valid indeed I have and given a response to it - the PING class only pings the webserver, not the webpage but now also see from your last post after reading mine, you edited your post to include a URI checker but the user wants to know how to check if the webPAGE exists ...Show All
Windows Live Developer Forums Any examples of new SDK's custom tile layer, but loading a mapcruncher created layer instead of the custom tile layer?
I didn't seem to find any references to how the mapcruncher layer object precisely "maps" to the new VETileSource object in the new SDK reference. It seems it would need to reference the layer's crunched xml file instead of the tile images directly, right Thanks for any help on this! and it looks like he went and moved the source location try this: tileSourceSpec.TileSource = " http://dev.live.com/virtualearth/sdk/layers/lidar/%4.png "; Works for me now. John. ...Show All
SQL Server Pre-Generating snapshots not working
Hi I have setup my web synchronisation with very few problems until now. Initially I set the snapshots to generated by the subscriber when they first synchronise, this worked perfectly every time until a bottleneck occured after I reinitialised all the subscribers. When more than one subscriber then initialises the snapshot agent, the snapshot jobs fail because there is already a job running for user distributor_admin. The agent then retries etc, etc.. until all retries have failed. Ultimately only one of the snapshots is successfully created only after all other jobs have failed and run out of retries, it is then left alone to carry out its job. Following this I made the decision to run with pre-generated snapshots instead so that I can s ...Show All
Visual Studio Express Editions More AI tales of woe
It's official! I loathe computers! lol! I'm creating a game of noughts and crosses. 2 player works fine. I'm now trying to add a computer opponent which analyses where to go based on what squares have been used. Each square is a boolean and is represented twice: Square 1 - bool o1 and bool x1 Square 2 - bool o2 and bool x2 Square 3 - bool o3 and bool x3 Say for example, player 1 has taken up squares 1 and 2, the computer analyses this and should play into square 3 to block. The code I use for this is: if (o1 && o2 && !x3 &&!o3) compslot = 3; This basically says, if slot 1 and 2 are used up by player but slot 3 is completely empty, play slot 3. If however, the computer has already played slot 3 it wouldn't analyse th ...Show All
Visual Basic IsDBNull problem
I am probably doing this wrong If IsDBNull(EDFRow.EStart) Then Me .EStartDateTimePicker.Checked = False Else Me .EStartDateTimePicker.Checked = True End If I get the error that the filed is dbnull Can someone please explain this. Davids Learning If ( EDFRow.isEStartNull = True) Then Me .EStartDateTimePicker.Checked = False Else Me .EStartDateTimePicker.Checked = True End If isEStartNull Method is provided by default for typed datasets. :) ...Show All
Software Development for Windows Vista Determining Process Integrity Levels -- windows platform sdk
Hi, I'm a novice to window programming There are functions in vista-related docs that I'd like to use. eg) Understanding and Working in Protected Mode Internet Explorer shows how to determine integrity level of a process. void ShowProcessIntegrityLevel() { HANDLE hToken; HANDLE hProcess; DWORD dwLengthNeeded; DWORD dwError = ERROR_SUCCESS; PTOKEN_MANDATORY_LABEL pTIL = NULL; However, the red-colored line produces an error. I found out that you need vista version of windows platform sdk when function information in msdn says that minimum operation systems should be windows vista. eg) ChangeWindowMessageFilter Function Function Information Minimum DLL Version user32.dll ...Show All
Visual C++ Managed array of pointers to elements in another managed array
Hello, I have some problems using arrays (system.array) in managed code. I have a two-dimensional array available and I would like to sort the values in this array by making a second, jagged array of pointers to the elements in the first array. However, there are some problems: the first array is of course declared on the managed heap. Pointers to elements in that array can change as the CLR rearranges the heap. The solution to this is could be an interior_ptr (which makes sure the pointer is updated when the heap is rearranged) or a pin_ptr (which makes sure the 'pointed' part of the heap isn't rearranged). The problem is that both pointers are only declared on the local stack: it is not allowed to form an array of pin_ptr or inter ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Basic projection, view and world matricies?
Is there a tutorial out there about projection, view and world matrices I would like to check them out. Hi, you could check http://www.pieterg.com/Tutorials.php. If my mind doesn't fail me, it's the 3rd one in the 1st series. Not long, but may give you a start or, at least, a hint. HTH, Marcelo ...Show All
Windows Forms How to apply styles to winforms controls? as Skins on asp.net?
Hello, is there an easy way to apply styles to all the buttons for example on my application something like asp.net 2.0 skins Thanks ...Show All
Visual C# Draw a non vanishing line
Can anyone suggest me to draw a non vanishing line in forms Not really. If you want it to behave like an object, you must create the object yourself. Now the line is nothing more then a part of the drawing routine of the form itself. Making a component out of it is a little bit more work. ...Show All
Smart Device Development Smartphone mfc ListView
Is it possible to get a list or report mode with the CListCtrl. The SetView function is missing under smartphone 2003. How can I display rows each containing one or more icons with text. Thanks for that Mel, in the end I decided to subclass and create my own List view, that way I have much more control in how it functions and how it is drawn. David. ...Show All
Visual Basic Removing Columns From Delimited Text File
Greetings, I need to parse a delimited text file and remove the last 3 fields in each row. Can someone show me how to reference the columns and specify the ones I want to keep Thanks. Try this: Dim stmReader As System.IO.FileStream = System.IO.File.Open( "C:\1.txt" , IO.FileMode.Open) Dim rdrReader As System.IO.TextReader = New System.IO.StreamReader(stmReader) Dim strLine As String Dim intCounter As Integer Do Until (rdrReader.Peek() = -1) 'Not end of file strLine = rdrReader.ReadLine() For intCounter = 1 To 3 If strLine.IndexOf( "," ) <> -1 Then 'Delimiter exists, remove all ...Show All
