CarlaC's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Warm Up Contest Is Up
Just letting everyone know that DreamBuildPlay's first warmup contest is live. spacewar mod not really what I was expecting, but the prizes are pretty sweet. If I had more time, I'd give it a shot, but I think I'll just stick to the main event. ...Show All
.NET Development Clustered SQL Server 2005 and ADO.NET
We are considering setting up a SQL Server 2005 cluster. Is there a developers guide to writting applications for this environment What can we expect out of the box(s) Should we be writting additional code in our dataccess components to detect and handle when failover occurs Any advice most welcome. Thanks. BenW IMO there is no need to check for failover as a failover event should be very rare. Second what are the odds a single user will be accessing the server and running a transaction at the exact second of failover Slim. You could notify the user of the error and ask them to try it again, but again errors should be rare and if the user has to call the helpdesk because of the error, that ...Show All
SQL Server How to find filegroups for a given Table and Table's indexes
Hi I am using SQL Server 2005 Developer Edition. I want a list of the following things from the database: - Table Name , FileGroup Table resides on Table Name, Index Name, FileGroup index resides on To put it simply, consider the following example:- Lets say I have a table XYZ in my database created on Filegroup F1. It has a PK PK1 nonclustered index on Filegroup F2. List1 ------- XYZ F1 List2 --------- XYZ PK1 F2 Please do not tell me of sp_help <table> option Regards Imtiaz For the ...Show All
Visual Basic two question??
Whats the difference between CType() and DirectCast() also what is the difference between Dim val As Integer and Dim val as Int32 Following should answer you. Difference between CType and DirectCast http://forums.devx.com/showthread.php t=53922 ...Show All
SQL Server SSIS Data Flow task fails to load all text from flat file
Hi Guys, I have a flat file which is loaded into the database on a daily basis. The file contains rows of strings which I load into a table, specifically to a column of length 8000. The string has a length of 690, but the format is like 'xxxxxx xx xx..' and so on, where 'xxxx' represents data. So there are spaces, etc present in the middle. Previously I used SQL 2000 DTS to load the files in, and it was just a Column Transformation with the Col001 from the text file loading straight to my table column. After the load, if I select len(col) it gives me 750 for all rows. Once I started to migrate this to SSIS, I allocated the Control Flow Task and specified the flat file source and the oledb destination, and gave the output column ...Show All
.NET Development Way to increase the speed of Event Log Read?
Currently using VB 2005 to create windows service that reads event logs and store each log entry into a SQL 2005 database. Connecting to local and remote event logs, remote machine connections appear to only use 6% to 10% LAN connection. Seems to use less when passing in IP address opposed to machine name. Currently it takes about 12 minutes to read 40,000 event log messages into a data table via remote LAN connection and bulkcopy into SQL It takes about 15 minutes to read 40,000 event log messages directly into an insert stored procedure via remote LAN. Running on the local box 40,000 events can be recorded in about half the time. This equals about 55 events read in a second, Is this normal or can a faster time be achi ...Show All
Visual Studio 2008 (Pre-release) Setting the Via for MetadataExchangeClient
I am experimenting with using the MetadataExchangeClient class to get device profile information from a device. To do this, I need to have a uuid in the To: address, yet send the message to different physical address. I think I can do this with a normal client by setting the Via (although I have not tried that yet). Is there anyway to do this for MetadataExchangeClient Thanks for your time. Kevin You are correct that the key thing is to specify a Via that is different from the (To) EndpointAddress. It is a shame that this isn't easier, but the code below will work. The only way to 'get at the Via' from MetadataExchangeClient is to override the ChannelFactory it uses so that the factory will contribute the Via. Below is a cod ...Show All
Windows Forms Problem with DataMember of DataGridView
Hello, I am having some problem with flitering a dataset and setting the same data set as the source of a datagridView. customer_list.Tables[0].DefaultView.RowFilter = "Surname like '" + textBox1.Text + "%'" ; this .dataGridView1.DataSource = customer_list.Tables[0].DefaultView.ToTable(); this .dataGridView1.DataMember = "customer_list" ; But it is not working. In my earlier projects the same code worked fine with dataGrid, well, i did not have to specify the datamember in that case to see the data. Can anybody please tell me, how do i simply show the data of a DataSet(thats been flitered) in a dataGridview hey man, you are simply great, yes it works.... thanks a lot for the help ...Show All
Visual Studio Tools for Office VSTOR wit XP Home Edition and Office student version
Hello, I downloaded the vstor to program against Microsoft Word. After a successful installation I tried to make a new word project (Add New Project->Office->Word Document) but everytime I get the following error: A compatible version of Microsoft Office Word 2003 is not installed on this computer. You must install Microsoft Office Word SP 1 and the Visual Studio 2005 Tools for Office runtime (Vstor.exe). Select the Repair option when you install the runtime. VSTOR.exe is available on the Visual Studio 2005 Tools for Office installation media or at the Microsoft Download Center.... My Operating System: XP Home Edition Version 2002 SP2 My Office Package: German Microsoft Office edition for students and teachers My Visual Studio: VS 20 ...Show All
Visual C++ MSVCR80.DLL and Win32 Console Projects
Hy Guys! I'm developing with VS2005. I need to distribute my Win32 (NOT CLR) console application developed with VC++ 2005. But in the dependencies list I find always MSVCR80.DLL. So in the destination PC the application doesn't work. How can I avoid to link this DLL Thank you. Roberto ...Show All
Visual C# Unable to copy vshost.exe
I backup (copy) solution files to a CD. Copy the files from CD to another computer. Copy fails with Cannot Copy [projectname]vshost: access is denied ... This aborts the copy for all the other files in the solution. This is painful. What is wrong -- Make sure you close down the Visual Studio environment and all instances of your application running, this could be one reason why it won't allow you to copy the file. the vshost is not really needed to be backed up as this is generated automatically when you compile/build the solution ...Show All
Visual Studio Express Editions how to kill a process?
i need to write an app to launch and kill external process depending on a hardware input on the computer... i've added: using namespace System::Diagnostics; and used e.g: Process::Start("C:\\WINDOWS\\system32\\calc.exe"); which launches the external process just fine, how can i kill it though i looked at "Process::End" but cant figure out how to use it thanks Mark It is important that you don't use one of the static overloads of Process.Start; for example: public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) { InitializeComponent(); theCar = gcnew Process; brakeApplied = true; // Eventually... carCameToAStop = true; } protec ...Show All
Visual C++ textbox and button
I have a textbox and a button. I want when i press enter in the textbox to be the same as clicking the button. well this is easy! in C#/VB.NET you simply implement the keydown event you like, then check the value from the parameter using the keys enum to select the key you are wanting to check with. in C++... not sure. are you using VC++.NET ...Show All
Visual C++ Anyone able to array txt file into cocrrect form?
i am a newbie on C++,since i have searched so many books and question ppl asked here, but i can't solve this problem yet, i need some help.does anyone able to help me out i want to array the txt name 1.txt and save it in 2.txt with new array form. vocabulary1 other form of vocabulary definition1......................single line definition2.....................single line definition3.....................single line definition#.....................single line </> vocabulary2 form of vocabulary2 ............................and so on, many words continue like that with </>separate from 2 vocabularies the request is array the txt1 into like this: vocabulary1|other form of vocabulary1 def ...Show All
Visual Studio Single stepping seems to not work correctly
I'm writing a small program in C using Visual C++ 2005 express edition. I try to singlestep in the below listed function with weird results. I have breakpoint at the start of thefor loop. First thing i is reported to have a 11 digit valu instead of 0. Then when I single step the first turn in the foor loop is as expected but then when I press F10 I go directly from the strp++ after else ti the j=i statement in the if code and that makes no sense float Evaluate( char *strp) //Evaluate an arithmetic "partstr=%s\n" ,&partstr[j]); Processstr(&partstr[j]); strp++; j = i; } else strp++; } result = Getoperand(); return result; } Sounds like the code view is more recent than the objec ...Show All
