CAI-USA's Q&A profile
.NET Development Object reference not set to an instance of an object.
I have now got my xml reader working but only when i remove one of the lines from my resultant xml file < xml version="1.0" encoding="utf-8" > If I manually remove this line and then save my file it works ok. the scenerio: A user enters a reg no eg "D1ger" this is then passed to a string and converted into a Url. The information that comes back from the server then gets saved as an xml file. (3rd party subscription service). This then gets read through and placed into text boxes once the user agrees with the data is update to SQL Server. the following is an abstract of the code used: 'declare varibles Dim regno1 As String regno1 = RegNoTxt.Text Dim VRM1(1) As Str ...Show All
Game Technologies: DirectX, XNA, XACT, etc. From the top, Game Design 101 help please?
Greetings All, I've read multiple threads on the issue of starting out game design and programming and from them I have encountered many different directions that can be taken from where to begin. Let me explain my situation a little furthur then maybe someone out there will be able to help me out with a little bit of advice :) Ive mainly been in the art scene doing some modelling and so forth, not in any great complexity mind you, but enough so that I can do many tasks in 3D applications such as Maya. Now with the release of XNA as a game development framework my interests into this field have piqued somewhat. Now I have no previous coding or programming experience, but I do have a will to learn, and would love to know from ...Show All
SQL Server Quick question to check NULL values in input parameters in a stored procedure
Hi: I have a stored procedure that calls 3 stored procedures. If some of my input parameters are NULL, I would like to skip the call to another stored procedure. Can you someone please help me with this I would like to find out what is NULL, before I execute the other stored procedures. Thanks so much. MA check with is not null example If @Var1 is not null begin exec proc1 @Var1 end If @Var2 is not null begin exec proc2 @Var2 end If @Var3 is not null begin exec proc3 @Var3 end Denis the SQL Menace http://sqlservercode.blogspot.com/ ...Show All
Visual Studio Express Editions ListBox
I am creating a movie database program and am trying to create it so that the movie titles are displayed in a listbox on the right and the rest of the info in boxes on the left. I connected up the listbox to a databinding source and selected the displayMember and valueMember accordingly, everything worked. But when I went to add movie titles in the database in a field on the left, save, then go to another movie title, the data was changed to a number. Can anyone help the listbox and the rest of the fields retain the info. I am a complete newbie, so could you explain what to do step-by-step. Thankyou for all your help! Elliott the DataTable does have a default view. where is your source of data held how are you reading th ...Show All
Microsoft ISV Community Center Forums Does anyone know some good places to look for Architects
My name is Chris Cox and I work for Intuit recruiting technical talent. I wanted to check in this forum to see if anyone knew of any good associations, user groups, blogs, or even good architects. Feel free to email me if you have any suggestions. Thanks, Chris Cox chris_cox@intuit.com ...Show All
Visual Studio Team System TFS Tools under /Common7/IDE not installed?
On a dev TFS server deployment, the ..\common7\ide directory contains the various tools such as glimport.exe, glexport.exe. However, on a new installation I performed on a clean box, there is nothing under that directory except for the \PrivateAssemblies subdirectory. Are the tools such as glimport.exe installed by default, or am I missing a step somwhere Thanks in advance Chris Chris, are you still struggling with that issue You mentioned you do not see anything under there except PrivateAssemblies directory right At least devenv.exe should be there, so you might want to check your VS's shortcut to see where it is pointing to. ...Show All
Visual Studio 2008 (Pre-release) System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
I am using the 'Getting Started' Sample from the WCF Documentary. When I use 'localhost' as address everything works fine. When I change that to the name of my computer, I get a timeout exception: System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) bei System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) bei System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout) bei System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout) bei System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout) bei ...Show All
Visual C++ Switching from CClientDC to memory DC?
I'm writing C++ code to generate an icon library. I've created an MFC app in which this code works fine, when just drawing to the CClientDC object. However, this code is ultimately going to be called from a DLL, so it won't have access to a display device context (as far as I understand). Instead, I was hoping to use a memory DC. I don't think I'm doing this correctly though, because my end result is always just a black background. To switch over, I'm changing from: CClientDC dc( this ); to: CDC *m_desktop_window_dc; CDC dc; m_desktop_window_dc = CWnd::GetDesktopWindow()->GetDC(); dc.CreateCompatibleDC(m_desktop_window_dc)) I have error handling to ensure that m_desktop_window_dc and dc are not null. Again, when I t ...Show All
SQL Server Management Studio - Object Explorer
Can anyone tell me how to get Object Explorer to 'remember' and re-establish my Connected Servers when I open SS Management Studio I am working with several Database Servers and Several Report Servers and each time I close SQL Server Management Studio I have to manually re-establish my Connected Objects in Object Explorer. Is there a way to automate re-establishing those connections that I am missing The <CTRL><ALT><G> was the trick to get the window to show. With the registered databases showing, you no longer need to keep connecting. These subtleties are what Microsoft leaves out and what increases job security once learned. ...Show All
SQL Server Dymamic connection strings in SSIS...
I was reading through the following post regarding dynamic connection strings: http://forums.microsoft.com/TechNet/ShowPost.aspx PostID=812814&SiteID=17 In this posting they talk about setting up a configuration file to setup the connection string, but I am not sure how to apply that connection string to my connection manager. When I go into my configuration file, I can see the connection string, and when I go into the advanced properties of the connection manager, under the "Named ConnectionString\FileName" property, I set the property value to the name of my configuration file, but when I test the connection I get an error that the connection string property has not been initialized. Can someone please assist me w ...Show All
Windows Forms Modifying BidingSource
I wonder if I can modify the bindingsource to dispaly specific field from a table rather than displaying the whole table. Here is what I am talking about. I am using a commercial grid to display my data. I don't have any problem to display the whole table to the grid. For instance, the following code displays a whole table to the grid. grid1.SetDataBinding(table1BindingSource); Now, I only want to display the FirstName and the LastName I have the following in my form table1BindingSource and db1DataSet From db1DataSet, I can see the following by intellicense; my table names Tabl1 from intellicense I can see Table1.FirstNameColumn and Table1.LastNameColumn; My question, how can I use table1BindingSource and db1DataSet to ...Show All
SQL Server Access temp table within Table value function
hi, I am trying to access a temperory table within a table values function, but when i try to do i get an error saying unable to access. This is wat i am trying to do. here is the sample code. I am creating a table value functiona and trying to insert data from a temp table. if this is not possible, there should be an alternative. creation of this function is important as the same is used in SSIS to build a package. Please help me .... Create function SiteAddress_func () returns @Data_For_Site_Address_Table table ( unitid varchar ( 20 ), city varchar ( 50 ), cust_num varchar ( 40 ), zip varchar ( 20 ), CountryID varchar ( 10 ), CreatedBy varchar ( 20 ) ) As Begin ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Arcade size limit and XNA
Just a quick question. kinda new to this whole thing, but i was wondering if the size limits for arcade games (50 meg or something) will be enforced for XNA built games, or will there be an alternate size limit, or no size limit. not that i think me or anyone else will be writing a game that big too soon, but it would be good to know This would be something that would still be TBD for XNA Game Studio Professional. We're really not at a point yet where we have details around that release but we'll let you know as soon as we do. ...Show All
Visual Studio Express Editions Hex data to serial port limited to value of 128
When I send a hex value of DB to the serial port the actual value that the DB9 connector outputs is 3F. Why is it sending the wrong value If I send a hex value of 75 the output is fine. Here is the code I'm using: Imports System.IO.Ports Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim strOutput As String Using comPort As SerialPort = My.Computer.Ports.OpenSerialPort("COM1", 19200) comPort.DtrEnable = True strOutput = Chr(&H24) & Chr(&HDB) & Chr(&H0) & Chr(&H0) & Chr(&H1) & Chr(&H4) & Chr(&HF7) & Chr(&H75) comPort.Write(strOutput) End ...Show All
Visual C# sams vc# or wrox beginning C#??
OK , after read a hell lot of posts on VB.NET vs. C# i've finally planned to go for C#..... i got two books here... Sams.Visual.C.Sharp.2005.Unleashed.May.2006 [ index ] Wrox.Beginning.Visual.C.Sharp.2005.Nov [ index ] SO which ones better ... theres a shot of they're indexes.. ironically Visual.C.Sharp.2005.Unleashed is a 6.77 MB chm file and contains 42 chapters .. and Beginning.Visual.C. is 23 MB ! and has 30 chapters.... and sams does;'nt seem to have much on the windows controls... Myself: i'm almost 16 , started QBasic at 11 , Flash and Javascript at about 13 , C then VB6 at 14 and VC6 and Java(only basics) at 15... i gave up VC after a while , concentrated on VB .A few weeks ago I got an offer to make an app for a hotel in VB6. ...Show All
