silent33333's Q&A profile
Visual Studio Team System Adding data to the DB for a Data Driven Unit Test
I have finally got my unit test just about ready but I need to add some data to the DB during the first run. I am sending data through and getting a return value. I want to add that return value to the Database so I can then organize all the tests by expected return value. Here is what my code looks like currently (some things changed to protect company code): [ Timeout (1000000), DataSource ( "System.Data.SqlClient" , "Data Source=MyBox\\sqlexpress;Initial Catalog=Test_DB;Integrated Security=True" , "Test_Table" , DataAccessMethod .Sequential), TestMethod ] public void Status() { int p_DataID = ( int )TestContext.DataRow[( int ) Column .DataID]; string p_Data1= ( string )TestContext.DataRow[( int ) Column .Data1]; ...Show All
Visual Basic Select Case statement being evil
The select case statement is out to get me! Has anyone else run into the trouble of having a Select Case statement and one of the case statements has hit if you look at the data, but refuses to hit anyway That probably doesn't make sense... Put it this way... I have, say, a ListBox control that has three IP addresses in it. For argument's sake we'll say the three items are: 192.168.0.1 192.168.0.2 192.168.0.3 These items have the indices 0, 1 and 2 respectively. Now, inside a function that receives a string of data (T) from a network user I have code that's something like this: Dim X As Integer For X = 0 To (ListBox1.Items.Count - 1) Select Case ListBox1.Items(X) Case T 'Code segment 1 Case Else 'Code ...Show All
.NET Development Error in installation of dotnetfx3setup.exe
Hello, I ran the vs_uninst_winfx.exe tool. When I tried to run the dotnetfx3xsetup tool, I got the following error in the file dd_dotnetfx3error.txt in the user temp folder. Please direct me to the correct forum for this question. As always, we need this resolved as soon as you can. Thanks Jay Fischer UNO Software Development Department of Health and Hospitals for Louisiana [10/02/06,10:40:49] WIC Installer: [2] Error code 1603 for this component means "Fatal error during installation. " [10/02/06,10:40:49] WIC Installer: [2] Setup Failed on component WIC Installer [10/02/06,10:40:55] WapUI: [2] DepCheck indicates WIC Installer is not installed. [10/02/06,10:40:55] WapUI: [2] DepCheck indicates Microsoft .N ...Show All
Visual Studio Branch project from batch command line or vbscript ole automation
Is there anyway that I could branch project using batch command line or vbscript ole automation I search command line reference, but I can't not find parameter for branch source and branch target. Please help. Thanks I could create share and branch from VSS explore; however I would like to do it from command line. I've tried command line below but it not work. Like I said I did not get any error and nothing happen. ss cp $/projects/01 ss branch $/trunk/project01 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Installing Error, something to do with beta version, please help
I am not sure if this belongs in this particular forum, so please don't delete it on me. I recently downloaded XNA Game Studio. When I try to install it, it tells me to first uninstall the beta version. I never downloaded the beta, and when I search for it, the only thing that comes up is XNA framework 1.0. Could someone tell me how to fix this, or possibly where to search for the beta on my computer. Thanks for any help. Try looking for it through your installed software. Start Menu -> Control Panel -> Add or Remove Programs Then scroll through the list of currently installed programs and look for something called "Microsoft XNA Game Studio Express" ...Show All
Visual C++ Error in VC# to VC++
Hi all, I am new in VC++. Net. i am facing problem to convert the VC# code to VC++ .Net. No sure is Setup Api problem or convertion problem, any one can help looking on it. Thanks -------------------------------------------------------------------------- here is VC# code (Working) -------------------------------------------------------------------------- class Class1 { [DllImport("setupapi.dll")]// public static extern Boolean SetupDiClassGuidsFromNameA(string ClassN, ref Guid guids, UInt32 ClassNameSize, ref UInt32 ReqSize); [STAThread] static void Main(string[] args) { UInt32 RequiredSize = 0; Guid[] guids=new Guid[1]; bool res=SetupDiClassGuidsFromNameA("DiskDrive",ref guids[0],Required ...Show All
Smart Device Development Beta of Microsoft Certification Exam 70-540
Microsoft Certification Exam 70-540 is available in Beta form right now! This is a Technology Specialist exam for application developers in the mobility space. The Preparation Guide is available for the Exam at: http://www.microsoft.com/learning/exams/70-540.mspx . To register visit one of our independent testing providers: * Thomson Prometric: http://www.prometric.com/ContactUs/T...rs/default.htm * Pearson VUE: http://www.vue.com/ms/ Please use the following promotional codes when registering: Exam 71-540: BTA540 Best of luck! Howard Dierking Product Planner Developer and Database Certifications Microsoft Corporation Another fortnight passes and still no update. I have lodged a suppor ...Show All
Windows Forms Is there any way to spin through the objects in a property grid
Hello all, Is there any kind of an items collection buried inside a PropertyGrid I know there is a SelectedGridItem property, but I need to iterate through them and I have been unsuccessful in finding out a way to do that. Thanks in advance for any ideas and/or suggestions! if you want to iterate on the items listed in the property grid though (top dropdown), you might want to iterate on the components in the designer surface through IDesignerHost perhaps... ...Show All
Visual Studio 2008 (Pre-release) TransactionIsolationLevel and multiple service contracts
I have a service which implements several contracts, which works fine, e.g. class MyService : IMyContract1, IMyContract2 { // Implement both interfaces in here } This works fine, but in my case IMyContract2 has an operation where I want to flow a transaction, so I use an attribute to set this on the operation: [OperationBehavior(TransactionAutoComplete=true, TransactionScopeRequired=true)] I want to set the isolation level for this, so I add this attribute to the Service: [ServiceBehavior(TransactionIsolationLevel=IsolationLevel.ReadCommitted)] The problem is, when I try to host this service, I get the following exception: Unhandled Exception: System.InvalidOperationException: The service 'MyService' is configured wi ...Show All
Visual Studio VS 2005 - Crystal - SetParameterValue()
Hello, I'm trying create a report using VS 2005, Crystal Reports and DataBase SQL. But I need to pass parameters to my report and I have this error: COMException was unhandled Invalid Index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) My code to pass parameter: Private Sub BTImprimir_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTImprimir.Click Dim Relatorio As New CrystalDecisions.CrystalReports.Engine.ReportDocument Relatorio.Load( "C:\Documents and Settings\Tandy\Meus documentos\Visual Studio 2005\WebSites\JIOrdemCompra\JIOrdemCompra\CR_RelOrdemCompra.rpt" ) vCodigo = CInt (TBPedido.Text) vDe = CDate (Dp_De.Value) vAte = CDat ...Show All
Visual Studio Express Editions Why enumeration?
Hey guys, thanks in advanced. I am reading through a beginners C# book and it cover enumeration, but yeah in great detail as far as why to use it. Can someone explain why you would need or want to use enumeration over another option. And what are other options if there are Thanks a ton. Hello All. bk13: Nope, if you want the integer portion of an enumeration, then you must explicitly cast to int. Always. That's why, if all you want is a named integer constant for collection indexing, then enumerations are not as good as actual named integer constants. However, there are three main strengths of enumerations. First, all of their members are members of the same strong type, so you could declare a me ...Show All
Windows Forms application not running on computers without vb .net installed
hi there i have this major problem: my app just won't run on another system, if it hasn't vb installed. iut gives me that 'send/don't send error report to microsoft' error. i mention that it uses an external .ocx control, whick appears in the output directory of clickonce. pls help :) ...Show All
Windows Forms radiobutton event set coordinates for image?????
ok, newer to developing (at least in C#), but I want to have an array of 81 radiobuttons at specified coordinates (done), when clicked they will go to my "placepiece" class (does what it says), BUT i want to input the coordinates of the clicked radiobutton into the placepiece class, in the event code [note, b5 is just ONE of the buttons]and also i do not know how to implement it into the playpeice code after that...where should it go in this code/how should it go there, i tried to set a variable for each button, but got an error...help!( b5.AutoSize = true ; b5.Location = new System.Drawing.Point(330, 90); b5.Name = "b5" ; b5.Size = new System.Drawing.Size(37, 17); b5.TabIndex = 61; b5.TabStop = true ; b5. ...Show All
Visual FoxPro Visual FoxPro - entry level book needed
For 10 yrs before retiring I did a lot of contract multi-user programming in a DOS database language. So, my knowledge of database flow is ok. What I lack is the beginning knowledge to program in VFP. I've been retired for about 10 yrs and would like to write some personal DOS database programs to a Windows based language. I can program a fairly well in MS Access and was learning VB.Net 2002 until a friend reminded me that VFP has it's own database and report writing capabilities - both sadly lacking in any version of VB. I've got VFP5 and VFP9 and have been able to learn the basics in form design and how to connect the form fields to a database table field (however, still having trouble with that). I'm at the point now where a lack ...Show All
Visual C++ Giving the user a language option in VC++??
Hello, Could any one please explain how it is possible to give the user the option to change the language of the status bar,main frame etc during runtime I create a dialog box in an SDI based MFC-application(using Visual Studio dot net 2003) and have a list box in the dialog box,with language options such as "English","French","German" etc.The default language is english,but if the user selects German,then on pressing ok the language should change to german. I heard it can be done by using "String resource".A little detailed explanation would be highly appreciated. Thank you Hi, I had a look at the discussion provided by you,but am still confused. I have followed the steps and created a copy of ...Show All
