boombastic's Q&A profile
Visual C++ random numbers
I have recently been trying to get the random number generator that comes in the default libraries to work.. I can't get the rand() to acctaully create a real random number to my wanted parameters. For example if I say wanted a number between 1 and 10 I would try: int random_value random_value = (rand()*10)+1 I would then be able to use that random number for switch processes etc. The problem is that the number is not random, the random number is always the same, with any one particular seed. Please is there another easier way of creating random numbers that are really random. I believe that it is possible to use the date as a seed which is always different, but I want a random number between 1 and 0 so t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. PC project -> 360 (including Game Library)
Hello, I just wrote a little puzzle game (Windos Game Project) and now I want to build the 360 version of it, but I have a little problem (probably PEBKAC *g*) I wrote a content-processor for instanced rendering (overriding ModelProcessor) and implemented a new ContentItem called 'Font'. It reads the *.fnt files from AngelCode Bitmapfont Converter. Because I want to reuse this, I put it into a "Windows Game Library" and everything works fine.. Now, if I try to put my custom content stuff into a XBox 360 Game Lib, the build process told me, that there exists no "TargetPlatform" enum - which is needed for the serialization methods. After thinking about it, I realize, that I wouldn't make sense that th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How easy is to make effects in XNA?
Hi friends, Regarding effects in XNA: Would it be correct to say that it is easier to make/add an effect in XNA than in DX Does XNA already have some shader models Which is the easiness that XNA supplies for working with effects Thanks in advance You can check out what features the BasicEffect supports by looking at the class reference: http://msdn2.microsoft.com/en-us/library/microsoft.xna.framework.graphics.basiceffect.aspx Special features that make it more productive for beginners ... hmm ... that's kind of a subjective one there. Feature for feature, it offers roughly the same functionality as unmanaged and managed directX. XNA as a framework is (IMO) a pretty nice API that could make it ...Show All
.NET Development System.TimeoutException:Thewritetimedout.atSystem.IO.Ports
Hi, Can anyone give me advise on the code below if maybe there is more that i should be coding into it, to make it more stable. It works fine but from time to time i get the error of, I dont do much serial port programing so i dont know what else to expect. System.TimeoutException:Thewritetimedout.atSystem.IO.Ports.SerialStream.Write(Byte[]array,Int32offset,Int32count,Int32timeout)atSystem.IO.Ports.SerialPort.Write(Stringtext)at VB.GetWeight() I call the code with this : Dim Cl As SHIPTOOLSVB = New SHIPTOOLSVB Dim CheckWT As String CheckWT = Replace(Cl.GetWeight().ToString, " " , "" ) Here is the class: Imports Microsoft.VisualBasic Imports System.IO Public Class SHIPTOOLSVB ...Show All
.NET Development VS2003 SQL dataadapter not generating Insert, Update or Delete code
I just upgraded to SQL2005 standard (SP1) and tried to modify an existing sql data adapter in a VS2003(SP1) VB webservice. No matter what I try, the adapter configuration wizard returns errors on the Insert, Delete and Update components. All the other adapters work fine. Its just when I tried to modify an adapter that these errors occur. Is this a known problem Is there a solution Thanks. What is exact error do you get Keep in mind that DataAdapter can automatically generate INSERT, UPDATE and DELETE SQL command only for simple SELECT queries. If your SELECT statement contains joins and multiple tables, then there is a good chance DataAdapter will not be able to do it automatically and you would ...Show All
Windows Forms Automatic Event Handler creation when clicking on controls in designer.
Is there a way to disable the automatic creation of event handlers generated from clicking on the design surface This feature seems very buggy in VS 2005 SP1. I am clicking through several controls on a form and the designer keeps generating event handlers that I don't want it to. The handlers are being created when I am SINGLE clicking on controls which makes it very frustrating to try and select anything on the form. Thanks, Daniel http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=220437&SiteID=1 I think your problem is related to this thread. There doesn't seem to be any solution yet. ...Show All
SQL Server VS2005sp1 deploys SqlServer Mobile 3.0 instead of Compact Edition CABS
Hello installed: VS2005 Sp1 SSCE31VSTools-ENU.exe SQLServerCE31-EN.msi When creating mobile project in VS2005 it automaticaly adds reference to System.Data.SqlServerCe, version: 3.0.3600.0 path: C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\\SQL Server\Mobile\v3.0\System.Data.SqlServerCe.dll instead of: C:\Program Files\Microsoft SQL Server Compact Edition\v3.1\SDK\bin\wce400\System.Data.SqlServerCe.dll version: 3.0.5300.0 When creating desktop solution I don't have this problem. Please help! Thanks I'm seeing the same thing. When I set a reference and look at the properties, it's the 3600 version. What needs to be done for this to be th ...Show All
Visual Basic Help with arrays
Hi. Im basically new to visual basic and im enjoying it a lot. I have a project for my Computer Programming class. This is what I am trying to do but have no idea to start it, im pretty sure if I understood how to link the array to the if statements and the timer I would be ok. I am trying to make a game where there are 4 circles inside a picture box. When you click start game it goes to level 1 and the circles will flash a color in a randomized order. Once the computer is done making the pattern you will have to click the circles in the same pattern to pass the level. Its basically simon says. I really dont know much about arrays or much of what to do for this but im pretty good with if statements. If someone could just give me an example ...Show All
SQL Server RS 2000 with Active Directory Application Mode (ADAM)
Hi all, I have a customer with an RS installation in a DMZ, using ADAM for its authentication. The problem I have is as follows : When setting up the execution log reporting (supplied as part of the standard install) all information being captured for report execution e.g Which user ran a specific report and when, is coming up with 'UNKNOWN' for the user name. Does anyone have any idea where to look to fix the recording of user information I am not sure whether it is a RS or A.D.A.M issue. Thanks Clint Pugh ...Show All
Windows Forms Run an application after Install bis.
Is asked this question before and Stefan give me this solution My precedent POST : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=729726&SiteID=1 Solution : " Windows Installer can directly launch an exe, there's no need for an installer class for this purpose. However I think this MSI functionality is not exposed by Visual Studio. But htere's a tool you can use to post-process your built .msi setup. You can download it from http://www.cornerhouse.ca/en/msilaunch.html " My new problem :( Effectively it work well but now i'have a problem because my application is running correctly at the end of install but not in the righ place. My application create folders with some config file in it, ...Show All
Visual Basic Visual Studio 2005 - VB Compiler crashing
Visual Studio 2005 - VB Compiler crashing: Operating system: Windows Server 2003 SP 1 msvb7.dll version: 8.0.50727.73 Event Type: Error Event Source: Microsoft (R) Visual Basic Compiler Event Category: None Event ID: 1000 Date: 5/18/2006 Time: 10:05:16 PM User: N/A Computer: *** Description: Faulting application devenv.exe, version 8.0.50727.42, stamp 4333e699, faulting module ntdll.dll, version 5.2.3790.1830, stamp 424377d2, debug 0, fault address 0x000396d0. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: 0000: 41 00 70 00 70 00 6c 00 A.p.p.l. 0008: 69 00 63 00 61 00 74 00 ...Show All
.NET Development Control datatable and row events programatically
I want to turn off events on several tables in a datset, which I know I can do using BeginLoadData. The problem is that I want to raise update events on specific rows after I call EndLoadData. Specific example: I have a datatable Data, and a datatable Summary. I update rows in the Data table but do not want events raised regarding the changes in Data until I've also updated Summary. Basically I need transactions, but applied to updates of a dataset. Any ideas I suppose I could lock the individual rows, but then I have to make sure to attempt a lock before accessing a row every time. Hi, One way to do this is to call SetModified for every row that you need to generate the RowUpdated event: foreach ( Dat ...Show All
Windows Forms Why doesn't deployed application install into Program Files Directory?
I have written a small appliaction in VS2005 (VB). This deploys via a cd. The application installs onto the target PC but does not install into the C:\Program Files directory, instead it installs into a sub directory deep within C:\Document and Settings\username... Does anyone know how to ensure that the application installs where it is supposed to Thanks for that Phil, you've actually given me the answer by asking your question. It wasn't a Setup & Deployment project, I was blindly believing the publishing wizard instructions every where else. I probably should have put in the original posting that this was the first application deployment I have done using VS2005, previous projects have been i ...Show All
Visual Studio 2008 (Pre-release) What limit my connections?
I set the maxConnections of my netTcpBinding to 1000, and the behaviorConfiguration of my service is like this: <BEHAVIOR name="SampleServiceBehavior"> <SERVICETHROTTLING maxConcurrentInstances="1000" maxConcurrentSessions="1000" maxConcurrentCalls="1000" /> </BEHAVIOR> In my client, I send 200 requests to my service in 200 threads, In every thread, I create a new proxy to connect to my service. In my service, I make the thread sleep 10 seconds before return the response. for I want to simulate multiple clients call the service to do a long time work in concurrency. But I found that my client can't receive all the responses. And there were some timeout excep ...Show All
Visual Studio Team System building web projects
Is there a way to build a web project to simulate the same structure as the "Publish Web Site" building in Visual Studio Or would I have to create custom tasks to handle the files after compilation If you have specified a "flavour" and platform to build which exists and is properly configured on the Web project, the Team Build has to create the structure, usually the the web default configuration is "Debug" and ".NET" platform. ...Show All
