jjvkm's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Component Array
Perhaps I'm going about this all wrong, or perhaps I'm just crazy, but is it possible to setup and use DrawableGameComponent Arrays I have a component that needs multiple instances, and the amount varies depending on certain factors. The code compiles, but I've been fighting it for hours to get it to show a simple sprite. One way all I get is the blue screen, and the other gives me a null reference exception on the spriteBatch object. The only difference is when I add the component instance to the game object. If I add it before it is new'd, the loadgraphics and draw are never looked at, but if I add it afterwards then It calls draw before loading. . and of course I can't add the component array to the game object, each instance m ...Show All
SQL Server Replacing data in a string
Hi I have a table with unique data in but it has been inputted, below is an example of the data 6331245073 638 535 0797 7023593578 ID Number 650 379 4428 OCA8 9F 32 ocb92w153 vh235704 I need to strip out the all letters and spaces so it will look like this: 6331245073 6385350797 7023593578 6503794428 ect.... Thanks Rich Hi Rich, You need to create a scalar function to do this. Here is an example: CREATE FUNCTION FormatString ( @input VARCHAR ( 100 )) RETURNS VARCHAR ( 100 ) AS BEGIN DECLARE @character CHAR ( 1 ), @newstring VARCHAR ( 100 ), ...Show All
SQL Server How to avoid Auto Run with Default Parameters
Hi, My report has default values for all parameters (ofcourse. which can be modified by user). When I try to view the preview, the report is running with the default values automatically. I want the report to run only when we click "View Report". There is no way to do this via Report Manager. This request has been asked several times and is on our wish list for a future version. The only workaround is to not specify all the defaults. ...Show All
SQL Server Porting IFilters or Wordbreakers from 32-bit to 64-bit SQL 2005
(repost) We have a custom wordbreaker coded and working in SQL 2000 32-bit, and are trying to get it to work in SQL 2005 64-bit. A simple cross-compile as an IA-64 dll worked with no errors, but getting SQL to load or use the file is proving difficult. To make things worse, the LRTEST.EXE that ships with SQL 2005 32-bit seems to be missing for the 64-bit version of SQL 2005, making diagnostics on any wordbreaker or ifilter next to impossible. The registration and where to put the bits in the registry has obviously changed, and the only clue I could find relating to installing a custom word breaker is here: http://blogs.msdn.com/shajan/archive/2005/12/09/Extending_SQL_2005_Fulltext_Search.aspx The blog states "In genera ...Show All
Smart Device Development Installation of Compact Framework 2.0 failed. Why?
Hi all, can somebody tell me why my installtion of the cf 2.0 on an HP 2490 PDA failed Log file of installation: 26/02/2006 23:14:42: Entered Install_Init(). First Call: Yes Previously Installed: No Installation folder is: '\Programme\.NET CF 2.0'. 26/02/2006 23:14:42: Build 2.0.5238.00 26/02/2006 23:14:42: Device CPU: 'ARMV4I', 05020000 (84017152) 26/02/2006 23:14:42: PocketPC 5.01 26/02/2006 23:14:42: Our trust level is: 2 26/02/2006 23:14:42: User LCID: 1031 26/02/2006 23:14:42: System LCID: 1031 26/02/2006 23:14:42: Invoker's command line: '0x822bd84e-0' 26/02/2006 23:14:42: Memory status, K -------------------------- 26/02/2006 23:14:42: Load : 58 26/02/2006 23:14:42: Physical : 5794 ...Show All
Visual Basic Controlling the serial port from VB2005
I made a VB2005 app which is *supposed* to open the serial port and receive data from it (the serial port is controlled by a SerialPort control named com0new). However, it fails with an exception: "UnauthorizedAccessException Access to the port 'COM1' is denied." COM1 is the only serial port my computer has, and I know it is unused when I run the program. The following is the function generating the exception: Function ReceiveSerialData() As String ' Receive strings from a serial port. Dim returnStr As String = "" Using com0new As IO.Ports.SerialPort = _ ...Show All
SQL Server Select all values when parm is empty
What is the best way to select all values when a parm is left blank Do I need to use conditional logic in the base SQL I normally use a where clause like: WHERE some_column = ISNULL(@param_value, some_column) This way if the parameter value is blank it compares the column to itself which always returns true and hence you get all values back. ...Show All
Visual C++ How to assign hotkeys to buttons in VS 2005
Hi As the header says, I am trying to assign hotkeys to my buttons in VS 2005 (I am creating VC++ MFC Applications). In the older versions I used to put the '&' key before the letter eg e&xit to make the 'x' underlined and a hotkey. Can someone point me in the right direction please. I have trawled through help for over an hour and asked all my contacts! Thanks and regards in advance. I found this issue: I use & to indicate hotkey on, say a button text "&Browse" so that Alt+B is my hotkey. When I run the compiled program I don't see the underlined B until I tap the Alt key. Then the underline will appear. The hotkey is still fully functional. Using: ...Show All
Visual Basic Generate Email
After the user click on a button, the system will compose the email content and title and send it according to the provided email address. May i know how to do this Thank you. Hi, See this thread.>> http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=115803&SiteID=1 It is also so popular it is on the right-side of this area's window as a link too. Regards, S_DS ...Show All
SQL Server How to use the Microsoft OLE DB Provider for DB2.
I follow the steps: 1.In configure OLE DB Connection Manager dialog, I click New. 2.In Connection Manager dialog ,I choose Native OLE DB\Microsoft OLE DB Provider for DB2. 3.In Connection Manager dialog I click the "Data Links" button. Now I am on "Data link property" dialog. 4.On connection tab, I enter fmdb for data source, which is my remote database name. On Network section I choose TCP/IP Connection and set the right IP/Port. Uncheck Single sign-on and enter the user and password. Then comes the Database section. Database name fmdb for Initial catalog,"fmdbrun" for Default Schema, then what is Package Collection (My db2 database is in a AIX/RS 6000 box). 5.On advanced tab, I choose DB2/6000 fo ...Show All
Visual Studio Team System Unanswered questions about a CTP 6 bug
There is a bug in CTP6(fixed in CTP7 apparently) which means schema comparison does not update target files in a datadude project that are write-protected (e.g. they are under TFS source-control). I talked about this in these 2 threads: Bug (I think) on writing updates from Schema Compare Recovering from a CTP6 bug There are some unanswered questions on these threads that I'd appreciate answering please. What exactly is the fix Does it auto check-out the items for you or does it fail the whole process Either is more acceptable than the current behaviour. How can I recover from this situation in CTP6 Where is the information about what is in the design DB persisted And why is the design DB not recreated f ...Show All
Visual C++ Is there a macro which converts a 32 bit signed integer to 64 bit unsigned integer ?
Hello All, Is there a macro which converts a 32 bit signed integer to 64 bit unsigned integer Thanks in Advance, CPPUser7 Coming to my problem. I have a function which currently returns a long and I have to change this function to return unsigned 64 bit integer so I have chosen ULONGLONG. ...Show All
Visual C# Typing in Visual Studio 2005 Text Editor is extremely slow
Has anyone else noticed that typing in Visual Studio 2005 is extremely slow Whey I type it seems that the screen is always 2 words behind where my hands are. It makes it extremely frustrating to get anything done. I'm mainly referring to C# code. It seems like Intellisense is going nuts trying to guess every word I'm going to type and never actually prints the characters to the screen. Has anyone else experienced this Is there an option I can turn off to get my text editor back ! By the way, I have a very fast computer with Dual 3.0 GHz Zeons with 3GB memory and everything else that should make "typing" very fast. We’ve recently discovered an issue where the Navigation Bar can cause this sort of slow-down.& ...Show All
Visual Studio Express Editions URGENT - The Parameter Is Incorrect message when adding a new table
I have recently installed VB Express 2005 with SQL Server option on Windows 2000 Professional with Service Pack 4. The install had no problems. I can create basic forms with no access to a DB. When I try using the DB from VB I get "The parameter is incorrect" error. This error happens when I add a new item to my project - choose SQL Database - go to Database Explorer for new DB - right click table folder icon - add new table - should see empty grid - but get "The parameter is incorrect" message with no grid. I am unable to define the table or columns for the table. At the moment my VB installation is useless without access to the SQL Server. What is missing from the VB installation How els ...Show All
.NET Development Parse response from web service
I've created a web app that connects to a web service which returns a stock quote. It returns xml in the form of a string as follows: <string> <StockQuotes><Stock><Symbol>HAN</Symbol><Last>61.27</Last><Date>8/10/2006</Date> <Time>12:03pm</Time><Change>-0.65</Change><Open>61.60</Open><High>61.75</High> <Low>61.25</Low><Volume>4900</Volume><MktCap>8.784B</MktCap><PreviousClose>61.92</PreviousClose> <PercentageChange>-1.05%</PercentageChange><AnnRange>46.30 - 69.74</AnnRange><Earns>6.50</Earns><P-E>9.53</P-E><Name>HANSON PLC (HLDG </ ...Show All
