Software Development Network Logo
  • SharePoint Products
  • Visual C++
  • Visual C#
  • .NET Development
  • Windows Vista
  • Visual FoxPro
  • Microsoft ISV
  • SQL Server
  • Visual Basic
  • Visual Studio
  • Windows Forms
  • Game Technologies
  • IE Development
  • Audio and Video
  • Smart Devicet

Software Development Network >> Joey Bradshaw's Q&A profile

Joey Bradshaw

Member List

aliasx
Paul Baudouin
Walter Luszczyk
mihooper1
Bozart
Kat Lawson
nate-d-o-double-g
Leather
bmartling
Mr Geoff
gparali
litewoheat
Chris Jobson
juliok
Paryse
John.Doe
Keith_EN
Scott Chang
LastHope
VIVEKA
Only Title

Joey Bradshaw's Q&A profile

  • Windows Forms Where should I put the global variables?

    Hi all, First step, I created a simple "Windows Form" Form1 project. There is Form1.h, and I have many functions like click(), paint(), buttom_down()...in it. How to pass the variables between these functions Should I use global variables or they are not recommanded For example: The program tries to get the screen size and pass into image display function I will have scr_width, scr_height, img_src_width, img_src_height, img_scr_width, img_scr_height, Bitmap^ img... What is the good way to set up them And the second step will be, I separate the buttoms and display area, should I use two Forms If so, how do I pass these variables between so many functions in two Forms Thanks! ...Show All

  • Visual Basic modify data, and update datagrid!

    Hi, I am having a problem updating and displaying data. On a form, i have a data grid which, when the user double clicks on a record my data table updates. For this i am using the following commands: dt = Me .FantasyDataSet.Draft dt.Rows(position - 1).Item(Team) = player & ", " & pts dt.AcceptChanges() As i step through my program, i can see that my datatable, dt, is being updated with new values. i have another datagrid which i want to display the datatable i just updated, but it never updates. I have another routine which i call just after dt.AcceptChanges(): Public Sub updateTeamGrids() Dim oCon As OleDb.OleDbConnection Dim oCommand As OleDb.OleDbCommand Dim ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. My first: ParticleWars

    http://mstum.iweb.bsu.edu/xna/particlewars Here's my first "game"... well, it's a beta... alpha... okay, it's a "technology demonstrator". I didn't start out to write a game. I just wanted to see if I could load and draw a texture. Now let's make it move. How about bounce off the edge of the screen Move it with the thumbstick Encapsulate it in a sprite class How about a particle An explosion Woops, a bug in my explosion code... but the bug made a *really* neat background effect! Now let's shoot projectiles with the other thumbstick a-la Geometry Wars. Let's make THEM explode! And so on and so on and so on... PLEASE DON'T LOOK AT THE CODE... you might turn to stone. As you can see from my iterative approach above, the code really ne ...Show All

  • SQL Server Errors using multiple parameters in a SQL Statement

    In an OLE DB Source in an SSIS package, we are having difficulties using multiple parameters in a SQL statement. Using a single ' ' works fine, but I've read that when you want to map more than 1 parameter you should use 'Parameter0, Parameter1, etc'. The problem is that when we use Parameter0 and Parameter1 and then try to map it, it says that the query contains no parameters. Can anyone help with the correct way to use multiple parameters in a SQL query that's part of an OLE DB Source task Thanks, Mike   Rafael Salas wrote: Phil Brammer wrote: You still use multiple question marks ( ) as parameter markers in the query. For OLE DB, your parameter names should be "0 ...Show All

  • SQL Server SQL Analysis Services Service does not start

    I have installed SQL Server 2005 Standard Edition for use with Team Foundation Server. I have verified the installation according to the documentation, and all is well except that the Analysis Services Service is not started. When I click Start, I see the progress bar as if it is starting, but it stops shortly after, saying that "Some services stop if there is nothing to do". Team Foundation Server requires that this service be started for the installation to succeed. How do I get the service to stay started Thanks in advance. What logon account you are using for Analysis Services serivce Try changing it to the domain user account. Edward. -- This posting is provided "AS IS&quo ...Show All

  • SQL Server Flat file connection is skipping columns

    The data file contains column names in the first row. Excel imports the file correctly. I can see the tabs in UltraEdit32. But...the flat file connection just skips over a column. In the preview window, it appears to skip the column entirely. However, when the data is imported, data from the non recognized column goes into a column that is mapped to receive data from another column shifting the data in to the next column. I am using the CopyColumn and the SQL Destination controls. Any ideas on how to make this work Thanks, IanO ...Show All

  • Visual Studio Team System How to debug FxCop custom rules in VS2005

    How to debug FxCop custom rules in VS2005 Your .fxcop file looks good. You say that you are able to step into the constructor, when you are still in the contructor place a breakpoint on the first line of the 'Check' method and click the continue button in your IDE and this breakpoint will be hit. ...Show All

  • SQL Server How to copy structure of database online

    Hi! I have to add a new functionnality in our Web application but i have no idea how to do it. What i have to do is to allow user to create a copy of the BD currently use and to save it on a new name. What i need is only the structure not the data. I need to copy all table, view, function and stored proc. I have no idea where to start. I found on this forum post where it says to detach then copy and the attach the BD but i can't do to this because i don't want other users on our web application to lost the connection with the DB. So was is the best way to do this Thanks !! Thanks !! This is exactly what i was looking for. I have another question. When i iterate for all my tables for ...Show All

  • Visual Studio 2008 (Pre-release) A question on DataContract

    Hi! I'm new to WCF, and I've got a question regarding DataObjects / DataContract. As far as I understand, DataConract provides a way to send custom objects, serialized in one of the formats, across the wire. So, at the server side I could have data objects that implemented properties and methods to manipulate those properties (or at least setters with some business checking). That's good. Now, if I build a proxy using VS2005, it reads the contract and constructs a "copy" of my class, with all the published properties, but of course, all business logic goes away. That is logical in many ways (louse coupling, interoperability,...), but let's say I'd like to use the same implementation (shared data objects assembly ) on ser ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. World to screen coordinates?

    To cut a long story short, I need to obtain the screen position of a point that has been transformed by the view and projection matrices. My vector math is pretty rusty, and I am not sure how exactly to go about it. Could anyone give me a hand Once you've got your point transformed by world, view, and projection the rest is pretty straightforward: Your point is P = <x, y, z, w> Start off by getting x' = x/w and y' = y/w If either x' or y' is outside the range [-1, 1], the point is off of the screen - exit Grab your viewport rectangle V = <vx, vy, vw, vh> (that's x offset, y offset, width and height) The screen coordinate S = <sx, sy> is computed as follows: sx = (x' + 1) * (vw / 2) + vx ...Show All

  • Visual C# System.Configuration.ConfigurationManager Not Found!

    I'm developing a basic application, and I'm saving the connection string in the app.conf. when I'm compiling i get this warning.... Warning 1 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' but when i try to use the System.Configuration.ConfigurationManager it is not found! so what can be the problem did microsoft forgot to add the class on the framework release it is specified everywhere but in the actual assembly. Cesar, if you cannot unninstall, try reparing the instalation, it worked for me on another environment where i couldn't do a ...Show All

  • SQL Server Merge replication between same schema databases but different data

    Hi all. I 'm trying to set up merge replication between two servers that have the same schema databases. The two database have the majority of there data the same but as well as data inserted at a later time independently on the two servers. (The two servers were connected in a merge replication scheme that failed at some later  time and replication was paused, but users continout to insert data indepentedly at the two servers.) I need to get them up and running. I cleaned replication at both servers, I recreated the publication at the puplisher distributor and all is fine. When I create a push subscription to the subscriper I get the error invalid column name ' rowguidcol ' . I so far managed to have merge replicatio ...Show All

  • Visual Studio 2008 (Pre-release) WPF Validation

    Paul Stovell has post a good article Validation in Windows Presentation Foundation about Validation in WPF. But, when I test the demo, I find a limitation to validate data in that way. Suppose I have 10 TextBoxes and many other UIElements on a WPF form. For the first time, I binding these elements to null-value data object, so all the TextBoxes are empty. The simple validation is to make sure all the TextBoxes are not empty. Then I click on a Button "submit" directly. Since the TextBoxes are never focused, and the Text in them never be modified, UpdateSourceTrigger.LostFocus and UpdateSourceTrigger.PropertyChanged can not be used. But if I use Explicit, does that mean I should write tens of codes to vaidate the Bindin ...Show All

  • Visual Studio Checking out files with a specific criteria.

    Hi, Is it possible to GET files based on a specific criteria. For example - say I want to perform a GET on multiple files and I only want Version 5 files which are also files with the extension "*.C". I know how to control version of the files using 'Labels' but is there a way to specify multiple criteria for files so that I can filter out the exact files that I require Many Thanks! Phil Try this command ss checkout –R -V2 *.c Also these articles may help: http://msdn.microsoft.com/library/en-us/guides/html/vsgrfSS_Checkout.asp http://msdn.microsoft.com/library/en-us/guides/html/vsgrfCmdLine_SwitchV.asp http://msdn.microsoft.com/library/en-us/guides/html/vsoriCommand-LineO ...Show All

  • Visual C# Layering an Onpaint Event?

    Hi, I'm creating an application with gps-coordinates. Everything works fine but it goes very slow to redraw the panel with : 1) a background 2) a grid (line X and Y, not a datagrid) 3) and a circle wich represents the coordinate. When I click on play the circle starts (slow)moving and you see that the panel is refreshed all the time. The background and the grid do not change and take alot of processing. So I thought it would be handy that those two "layers" are drawn the first time but when playing only the circle is updated. Is this possible Grtz, Annihil8 Hi Matthew, Very interesting, but I'm not sure if I understand it completely. How does your method differ from, for instance, the sug ...Show All

©2008 Software Development Network