ndRandall's Q&A profile
Visual C++ how do I access struct variable from another file?
another newbie question. I am moving functions which use this struct into another file. how do I access sData in another file typedef struct sVData { int i; } sVData; static sVData sData; Thanks again. -Greg I am a newbie here... studying from everyone here... Thanks in Advance... ...Show All
Visual Basic how to find the highest value in a list
Hello, I have two lists: one with playernames and one with the points of the players. Dim playerNames As List(Of String) playernames.Add("One") playernames.Add("Two") playernames.Add("Three") Dim playerPoints As List(Of Integer) playerPoints.Add(20) playerPoints.Add(30) playerPoints.Add(10) I would like to find the name of the winning player, so with the highest points (here player two). I've tried so many things, but I can't find it. Does someone have an solution Thanks! Do you need to use an array as you could do it like this with a SortedList: Dim players As SortedList( Of Integer , String ) = New SortedList( Of Integer , String ) players.Add(20, "one&quo ...Show All
SQL Server Basic SSIS Question
Lets say I want to create several flat files - one file for each row returned by a sql query. Source data resides in SQL. In short, my problem is a "reverse" of the many examples out there where data originates from multiple flat files into a SQL database. I want to go from SQL to multiple flat files. I suppose this means I need a dynamic flat file connection string ... but I'm really stuck. Please help. Thanks in advance. Do you want to create many files at the same time Then create a Flat File Connection Manager for each file. If you only want to create one file at a time, but use a different file name so as not to overwrite the existing file, like a daily sales file or some ...Show All
.NET Development It Validates, But It Shouldn't
I am reading an http response from an http server I have created as XML. I have created a schema for validating the XML stream. I intentionally created a schema that the XML should fail in order to test the validation, but no exception is being thrown. Below is a code snippet... ... System.IO.Stream receiveStream = httpWebResponse.GetResponseStream(); XmlReaderSettings settings = new XmlReaderSettings(); settings.ValidationEventHandler += settings_ValidationEventHandler; // Read in the .xsd XmlSchema schema = XmlSchema.Read(newXmlTextReader(@"..\..\MySchema.xsd"), settings_ValidationEventHandler); settings.ValidationType = ValidationType.Schema; XmlSchemaSet sc = new XmlSch ...Show All
SQL Server hosting SSIS packages where?
After i create a SSIS package, where can i put it or store it in the SQL SERVER 2005 so that i can execute it later on Grant Swan wrote: Hi, The option to do this is available once you have built you're project and you have done this whilst the CreateDeploymentUtility is True. All you then have to do is go to the deployment folder (usually in the bin directory) and run the .SSISDeploymentManifest file. This will give you all deployment options including where to store your package. This link gves some info on how to execute the packages programmatically: http://msdn2.microsoft.com/en-us/library/ms403355.aspx Hope this is of use to you. Cheers, Grant I don't understand what you just said.. ...Show All
Silverlight (formerly WPF/E) Children.remove Performance
I was just wondering if calling children.remove actually removes the xaml from the control or if it is doing something else. The reason is that if I have a control and I add and remove lots of xaml it seems that after some time it causes IE some issues (for instance, it takes awhile to close the browser or navigate away). So it made me wonder if remove items actually removes them or if they are still left in some way. Thanks. Thank you for sharing your issue, I will be more then happy to help you out. Before I give any recommendations’ can you share few information with me... How is the XAML tree created which you are adding and removing from the control is it also created repeatedly for each Add ...Show All
Visual Basic Can you run a process through a UNC path?
Hello All! I know I can launch a program on the same computer, but can I run a process through a UNC path Thanks! Rudy Thanks guys! I'll have to look into WMI. What I really need to do is create a "Pause" button on a server. When I click this button, it will pause the program on the client machine. I don't need to quit or anything, just disable it until I click another button to enable the program again. I think this will get me in the right direction. Thanks Again!!! Rudy ...Show All
Visual C++ C++ activeX dll to be loaded on Web client
creating an axtiveX dll in VB6 for a web browser - which would run on the client's PC was very easy - use an activeX dll project and then use the setup and deploy tool which created the prototype html object to use. I would like to create in visual studio 2005 an activeX dll (not a control with displays) which just has write properties which is loaded to the client's pc. Using the ATL project I was able to create a simple dll - which I can reference it into a VB6 project and run it OK. Using the visual studio 2005 deploy I was able to create a CAB file for it. I have no idea how to get it into my web page as the classid etc. is gone. the dll is: testATL the class is: OutStuff Which have testATL.cpp // The mod ...Show All
.NET Development A Cosmetic Question
[No ... Not what shade of blush is best] I have a structure that I initialize by passing to a function. BUT, the compiler marks it a Used Before Initialized. Duh, that's what I'm trying to do !!!! [Call me silly, but I hate even one warning] Is there a directive I can place before the call that will turn-off the warning I seem to recall seeing code that directed that certain warnings/errors should be ignored. [The old brain cells -- all 2 of them -- just can't remember where] Roger Dim s As Structure = Nothing it will be assigned something and the compiler will ignore it. Or change your method so it takes a created object and just fills in the fields Dim s as new Structure Public Sub Fill(s As Structure) s.f ...Show All
Visual Studio Express Editions Putting a byte in to a text box
Hi, Please can someone paste some code for me, I am trying to put a byte in to a text box but have no iead how. I'm pulling my hair out with VB 2005 express and have no idea how to do anything. Thanks This is from HELP Function ReceiveSerialData() As String ' Receive strings from a serial port. Dim returnStr As String = "" Using com1 As IO.Ports.SerialPort = _ My.Computer.Ports.OpenSerialPort("COM1") Do Dim Incoming As String = com1.ReadLine() If Incoming Is Nothing Then Exit Do Else returnStr &= Incoming & vbCrLf End If Loop End Using Return returnStr End Function Notice this is a function and a function has output soooo ...Show All
Visual Studio Team System Licensing question - Trying to setup user up for CAL accounts
Havent had any luck with this on Volumen Licensing website. How does one setup users to use the CAL accounts Thanks, staffan Purchasing a Team Foundation Server CAL gives you the right to install Team Explorer, which is the client interface for Team Foundation Server. For help with installing Team Explorer, see the Team Foundation Installation Guide . ...Show All
Visual Studio Express Editions Adding Dynamically to a DataGridView
Hi I wonder if anyone can help I am trying to create a class to dynamically create a DataGridView (without using data binding). I know the number of columns but cannot figure out how to add the row data. Is there a way to do this For example I want to do the equivalent of the following: Dim dgv As DataGridView dgv = New DataGridView gv.Rows.Add("data1", "data2", "data3") The data I have is stored within an array which is variable length. I could do the following: gv.Rows.Add(dataArray(0), dataArray(1), dataArray(2)) but, as I said, I do not know what the number of elements of the array will be. Any help will be appreciated. Regards, Sean well the ...Show All
Visual Basic Vb Jobs 1-10 Rate It
Hi, I am Wondering How good a programing job is from 1 to 10. Please don't say it doesn't matter how good you are. I mean in general. 10 being a high ranking Doctor 1 Being A Bk Fast food guy Another thing is that I'm 14 and have been programing for a year, I'm Pretty decent and like making games. I know novice OOP techniques I use VB.net 2003 Also Please Tell me About what the average salary is for a programer in a company right now if you know. Thanx bye Look into something a little more in between Computer Science and Business. Like the other two have said knowing how to program and having the 8x11 voucher (diploma) will open doors, but it's a slippery slope trying to move forward. Look into ...Show All
Visual C++ How to add message map entry?
In MFC/VS2005, a dialog has an existing message map. How can I add more entries to the message map, other than by editing the files by hand This function used to be in ClassWizard, but now seems to have disappeared. ClassWizard and WizardBar were removed in Visual C++ .NET 2002. http://msdn2.microsoft.com/en-us/library/6761383e.aspx ...Show All
SQL Server Error in Derived Column component
I am getting this error, [Derived Column [192]] Error: Converting an input column from type DT_STR to type DT_WSTR failed. An error occurred while performing the implicit conversion on the input column. But I don really understand y there is a attempt to type cast at all Please advise .... thanks in advance In the column marked Data Type in your Derived Column Shape change the value from Unicode [DT_WSTR] to string [DT_STR] Does this answer your question ...Show All
