bruce_heath's Q&A profile
Visual C++ Having Function problems
I want to write a fuction that will add all these elements in a array it will go sorta like this, when i input all these numbers in the array it should add them and divide them buy the number entered, i am getting an errror when i call my function though any help, am i missing something in this lisiting int addup(int Numbers[ ], int count) { int a; int sum = 0; for(int a = 0; a < count ...Show All
.NET Development Serialization of array of objects, containing array of another objects....
Hi all, This is my first post here , hope you know answer to this. I have a situation where webservice is returning array of object A which contains array of object B which internally contains array of object C. class A { [XmlElement] // this was added on later on and works fine B [ ] B_array } class B { //[XmlElement] // here does not work as in Class A above C[ ] C_array } class C { int i, string s } All classes and variables ...Show All
Smart Device Development Install application fail on Pocket PC emulator
Hi, On Pocket PC emulator , When I run a cab file to install a application , it always display a dialog "xxxxx was not installed successfully. Please run Setup again." But I can install the same cab file on my pocket PC device. Who can give me a explain Thanks. So, can Visual Studio 2005 generate CAB-files for the old format It doesn't really matter for my old problem because i solved it with cabwizard, but for future ...Show All
Windows Forms What the eck??? Error on Line 0???
Got rather weird error in my solution.... Everything has been working fine but I have suddenly got a debug message that reads "Object Reference not set to an instance of an object". Doesnt sound like an unusual message, but this one is&nb ...Show All
Visual Basic Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Draw the image yourself in a paint handler, and use the imageattributes class to make 255/0/255 ( magenta ) transparent. ...Show All
Visual Basic How long a computer is on, and writing after some text
Well this is a two Q topic. First i want to know if there is any code for getting the time for how long the computer has been on Comptime.. Second how can i input text after some text in textbox For instance button1.click inputs the text "you" into textbox1.text But if the textbox1.text already has some text like "how are" then when button1 is clicked text should be input after "how are" and the text should be "how are you" ...Show All
Visual C# VS 8 Performance makes it unuseable
Hi, We have converted a large c# solution with 12 projects and about 60 Mb of code from VS7 to VS8 and find that working in the IDE is impossibly slow. We are running on a P4 3.2 Ghz 1 Mb RAM with Windows XP SP2 (clean install). It seems slow in all areas of development. The only area where perfomance is as good or better is in running the release code. So far it's a major backwards step when compared to VS 7. Is anyone else experiencing t ...Show All
SQL Server Bug in Flat File Connection Object: Risky!!!!
I was wondering if any others on this list are getting a bug with the Flat File connection object --where in both csv (coma delimited) or flat files (tab delimited) where strange characters(like two bold vertical lines) are appearing in the file viewer while setting up a connection forcing the CRLF to end in the wrong place. They look like two bold vertical lines Im testing the same files with both the old DTS from SQL Server 2000 a ...Show All
Visual Studio BuildEvents: how to handle?
Hi, I'm trying to receive notifications for BuildEvents. I saw code in VB but it basicly doesn't explain me how to do that in c++ or c#. (I'm writing a vs add-in) Could you please give me an example piece of code. thanks What are you trying to accomplish Sayed Ibrahim Hashimi www.sedodream.com ...Show All
Visual Basic how to create a new txt file at midnight each day and write to it
Hello I was wondering if somebody could help me with creating a new txt file each day at midnight with the name in the format of ddmmyy_hhmmss.txt also how to add text to it, well maybe i can do this i think, but maybe it would help confirm this bit. ikind of have the following so far, not much i know, thank you all in advance Private Sub OpenFile() ' filename = "C:\CRAPS\txt_files\" & Format(Now, "_MMMddyy ...Show All
Visual C# Not Freeing Memory
Hi, I don't know if anyone can help me. I am working with large png files, and finding the memory is not being freed after the object is disposed. Are there any know bugs on this issue Many thanks, Bruce Hi James, Thanks. I have had a look and can't seem to find GC.Collect() within the code. Running through the memory profiler, the garbage collector is collecting instantly after it previously freed some memory. To try and picture thi ...Show All
Visual Basic Advanced Compile Options?
Hello, I have a solution that contains 5 projects. They are all written in Visual Basic, and I am using Visual Studio 2005. I'm still new to this, so when I have been releasing my application, I have been using the publishing wizard, but it seems hacky to me, and I'd rather just build the application more normally, then release it. I was wondering if there is an easy way to just build the application to produce an executable and i ...Show All
Visual Studio Express Editions ListView Control
Help Me!! LOL. I can't figure out this darn control. Item and then SubItems. List View Control. Thanks alot. It is not so much to figure out, a ListView has Items, each Item can have SubItems SubItems is what you see in windows explorer when you have a detailed view. Everything after the filename are subitems. ...Show All
Visual Studio Team System How can I run a console app from my unit test?
I have a console app that I want to run from my unit test. I have team system form Software developer. Please advice! Thanks, If all you want to start a console application then you could use Process class to start a new process including a console application. The link to msdn: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassTopic.asp Than ...Show All
Visual Studio Team System TFS Beta 3 Data Tier installation
The install guide says that the SQL2005 install has to be the default instance on the data tier server. We'd like to install the data tier on our existing server which is running Sql 2000 (for Biztalk 2004) by adding a Sql 2005 instance. Is there any way to get TFS Data Tier to use a named instance instead of the default one Okay, thanks Allen. We went ahead and installed it in single server mode instea ...Show All
