MrPerez's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. GameComponents controlling GameComponents
Most XNA game examples I have seen so far load all the game components right away at the beginning of the game no matter what. I looking to setup a GameComponent (GameWorld) which the user will control to load which will subsequently load several other game entities which are inherited from the DrawableGameComponent as well, but they all controlled by the GameWorld as far as enabled/visible. This appears to work fine so far, I'm just curious though if there is anything wrong with this finite number of game entities all having there own SpriteBatch property because of this. Performance issue when GraphicsDevice is recreated Or even if this is a workable practice In other examples, I've seen certain drawable game entities custom created wh ...Show All
SQL Server Time Series Periodicity
I'm trying to learn about time series algorithm but I can't set the time periodicity right. I have information stored 2 times a year (semester) so I'll should set up a PERIODICITY_HINT = {2}, right but it does not change anything. Here is a screenshot that might help understand the problem: Based on what you have explained, there is no problem, it's just a behavior. Is the issue that you somehow require a (t-2) factor Or you simply believe there is an effect, so you want the algorithm to find one One possibility is to reduce the complexity_penalty or minimum_support parameters, which will change the size of the trees that the algorithm grows. Other than that, your data doesn't seem to support su ...Show All
Visual Basic How to display a Unicode character
Greetings: After an hour of futzing around, I still can't figure out how to display a unicode character. Encoding, decoding, whatever. Here is as far as I've gotten: Dim uni As New UnicodeEncoding() chkBf.Text = "B" & uni.GetDecoder(\u266B) which doesn't work at all. It can't be too complicated, but I can't make heads or tails out of the help files. I want to display the musical notation "flat" symbol. Thanks! Thanks, Bruno! Will that deliver me the symbols I'm after, even if the font doesn't support those particular Unicodes After poking around some, I'd come to the conclusion that the problem was in the font support of unicode. I could get other unico ...Show All
Community Chat Free Online Visual Basic 2005 book
I have recently made my book free, sponsored by AdSense of course. The book is designed for non-programmers. After many hours of tweaking javascript I have finally completed most of the design of the page, so that it works with google and also so that there are no frames. If anyone would like to help with the book, ie: make it better, then feel free to contact me here or at the site. You can find the book link in my signature... robinjam wrote: C# and C++ are fairly similar, so there isn't really much point in putting both in the book. BTW, what's going on with your site Half the links are broken, and JimmyWidgets is offline! Fix it now, boi! Good point. I will keep it C# and vb only. "Introdu ...Show All
Visual Studio Express Editions Serial Port -> How Do I now If it is used?! and Speedproblems
Hello there and happy new year from Germany! I have some troubles with my application whitch uses serial ports..... ....again:) Quite a lot of data are beeing sent through the serial port. When I start the next function while there is still data to be sent, I get an error. The solution would be: Knowing about data traffic on the serial port at the moment.Is there a way I can get the informataion Something like comport.datatobesent or something like that Oh: Yes: I am using 38400 baud at the moment, and not 9600. Is there another way to get the data faster to my serial port device Changing buffers or something I am thankfull for your help and hits... Greetings, Carsten Roadresident Is it so simple tha ...Show All
Windows Forms Task Vision Documentation and Problem
Hi all, Currently wrtting an app for our bussiness which will look after our customers, it's kinda of a mini-crm application. I've not done much development, but feel I can get this working to a good level and learn more as I go. Is there any documentation which walks you through task vision on how it's designed Also In VB Express 2005, when I try and view a form I get the following error: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. The name PriorityText is already in use by another component. Hide at System.ComponentModel.ReflectPropertyDescriptor.Se ...Show All
Smart Device Development Disconnecting GPRS
Hello, After calling a web service and my device connects to gprs, I want to shutdown the gprs connection via code. Does anyone know how to do this Unfortunately .net compact framework does not offer the handle to the connection object up in managed code to developers. As a result, developers cannot explicitly close out the GPRS connection. If the network is not used however, the http implementation should shut down the GPRS connection after it has finished using the connection. Thanks, Sandy ...Show All
Visual Basic Shared interface member
Why can't interface methods be declared Shared in VB I have a controllerFactory interface that is used in a number of apps to dispense app sepcific controller classes for use in an app neutral framework. Currently I have to create an instance of the controller factory classes to invoke the GetController methods. Ideally I'd like to make this method shared and invoke it without creating an instance of the Factory. If I try to mark the implementation shared then Visual Studio shows the error "methods or events that implement interface members cannot be shared". If I mark the interface method as shared the error message is "'Shared' is not valid on an interface method declaration". Here's the interface definition: ...Show All
Visual Basic Dts.Runtime errors
When I use Imports Microsoft.SqlServer.Dts.Runtime in vb2005 previously working code starts generating errors. For example: MessageBox.Show( "Error: " & description) now generates this error: Error 1 Operator '&' is not defined for types 'String' and 'Microsoft.SqlServer.Dts.Runtime.DtsObject'. Application.Exit() generates this error: Error 2 'Exit' is not a member of 'Microsoft.SqlServer.Dts.Runtime.Application'. How can this problem be corrected Hi... use a + instead of &. e.g - MessageBox.Show("Error: " + description) Cheers, Menthos ...Show All
SQL Server Create Pull Subscription from client
I am trying to create a pull subscription through RMO as described in books online. However, the only way that the creation (or deletion) will succeed is if the windows user that is creating the subscription is a member of the sysadmin role on the publisher. The windows login has been added to the PAL for the publication, but this seems to have no effect. The windows login has been added to the subscription database and is a member of the dbo role. Please help! Thanks! Can someone please respond to the original poster I am having the same problem and have tried the same approach. I am try to create a merge pull subscription using RMO from a .Net tablet PC application running SQL Express on a ...Show All
Visual Basic Read VB6 variant from a binary file with .net
I need read from my .net application a binary file written with VB6. I can get longs and string written with VB6 with .net BinaryReader class ut how can I read vb6 variants Do you know how variants are save in binarry file how much bytes do they take Thanks in advance Revrese engineering my dear!! I've done a VB6 program which i posted before then open the file using Binary Reader in the VS .NET then ReadBytes(with the whole file length) , add to watch ... finally i understood what is it. I have searched the internet and didn't find any usefull information about this, may you can find. If it was the answer to your question, please mark it as the answer to mark it as answered in the queue. Best Regards, ...Show All
SharePoint Products and Technologies VSeWSS
When can we expect the next release of VSeWSS I am getting the error mentioned in other places (blogs and newsgroups) where I can't build and deploy the same project twice (works the first time, errors out each time after). Ok, didn't need a log -- it was right there in the output window: ------ Build started: Project: testpostreinstallwp, Configuration: Debug Any CPU ------ testpostreinstallwp -> d:\projects\testpostreinstallwp\bin\Debug\testpostreinstallwp.dll ------ Deploy started: Project: testpostreinstallwp, Configuration: Debug Any CPU ------ System.NullReferenceException Object reference not set to an instance of an object. at Microsoft.SharePoint.Tools.SharePointProxies.SP ...Show All
SQL Server How to query on a date range, display matching records but also display companies with no matching records?
OK, hopefully someone can help me on this one. I have a report that allows a user to select a date range and returns the applicable data. Hypothetically, this returns to the user 3 rows of data for 3 different companies\sites. The problem is that the client wants to see the other 7 companies\sites that don't have data for the date range specified by the user, in the same report. I am having issues with this as my query returns the results that exist within the date range. If now rows of data exist for the date range, how can I possibly display the other 7 companies I looked at embedding a report inside of another report, but I can't think of a query I could write that says, if these companies are not in the result set generated by the ...Show All
Visual C++ C++/CLI Types
Hey All, When I was using Managed C++ back in the old days of VS03, I remember being very careful to use Int16 instead of short, and Strings instead of std::strings. I'm wondering how much of a difference that makes w/ the new CLI. Is "int" equivalent to "Int32" as far as garbage collection and such Also, I caught myself doing this today when I declare variables. String ^str; but when i do my arrays, I put the handle like this... array<String^>^ str; Where is the 'proper' place to put the cap Cool...thanks for the input. With C++/CLI, is it kosher to concat strings with the plus "+" sign, or is that frowned upon and String::Concat prefered ...Show All
Visual Studio 2008 (Pre-release) Open a xaml window from a C# form
This is probably a newbie question, but why cant i start a new c# windowform project and add a new xaml window to the project, and then add a button in the c# form to show the xaml window i got all the referances added, but it gives this error: "Error 1 The name 'InitializeComponent' does not exist in the current context" so i comment it out. then it shows a empty window, but none of the xaml elements are loaded. I also tried to give the xaml elements name, but i cant reference to it in the Window1.xaml.cs file... Thx for response Thx But the really problem is that i allready got some elements in the xaml file, but the xaml codebehind wont show the xaml file elements in the window th ...Show All
