StanScott's Q&A profile
Visual C# Wierd error : Attempted to read or write protected memory. This is often an indication that other memory is corrupt
Ok I have a project that runs fine from the IDE, the problem is if I install the app or run it from the bin\release folder then I get this error on one of my method calls. I have tried this on a test machine and on my development machine and the results are the same. I have spent hours trying to figure this one out....... The crazy thing is, the method shows up in the stack trace but there is not code at all executed in that method. ...Show All
Visual Basic System.Runtime.InteropServices.COMException (0x800A03EC): Cannot access xls file
Hello I am trying to retrieve the Worksheet name from an Excel spreadshet so I can load into a dataset for conversion to a .csv file. I am aware that Excel has that facility built in, but the users that use Excel are not familiar enough with Excel to use that feature, it is up to me to write an application that will do this for them. (Automate as much as possible, if you will.) Nevertheless, when I try to retrive the worksheet name, ...Show All
.NET Development Debugging a web service
My visual basic windows form application calls a local web service I created on my computer. I have added a wsdl file to my windows form application which exposes the web service. In debug mode, how do I view my web service code from my windows form application. Fred Herring The trick here is to understand what's happening when Visual Studio is working in debug mode. The process that is running the application being tested is attac ...Show All
Visual Studio Team System Hide the team project name screen during a new team project setup
Hi there! I'm working on a PCW plug-in to integrate TFS with proprietary tools. One of the requirements is that the name of the new team project should come from one of those tools. I added a new screen right after the name selection and I'm changing the context.PublicData[ PublicDataKeys .ProjectName] attribute to match the desired name. That worked fine, but I would like to ask: is this ok, or I may get into some problem doing tha ...Show All
Software Development for Windows Vista custom activity
hello all, i have tried to create a custom activity, which should be available in the activity toolbox. but i only was able to create an activity, which needs to have following activities in itself (designer shows the activity with the activity name and an arrow below which points to 'drop activities in here'. is it possible to create a custom activity without following activities in it (i hope you know what i mean...) this is, ho ...Show All
Visual Studio 2008 (Pre-release) Bitmap<->BitmapImage conversion
1. System.Drawing.Bitmap -> System.Windows.Media.Imaging.BitmapImage : Bitmap source; BitmapImage destination; IntPtr hBitmap = source.GetHbitmap(); BitmapSizeOptions sizeOptions = BitmapSizeOptions.FromEmptyOptions(); destination= System.Windows.Interop. Imaging .CreateBitmapSourceFromHBitmap(hBitmap, IntPtr.Zero, Int32Rect.Empty, sizeOptions); Can anybody say how to convert BitmapImage to Bitmap Thanks. ...Show All
.NET Development ConfigurationElementCollection class with properties problem
I'm creating a ConfigurationElementCollection-derived class for my configuration section. In addition to acting as a container for other elements, I also want the collection to have configuration properties of its own. I defined properties on the collection annotated with [ConfigurationProperty] as usual for a configuration element. Unfortunately, I can't quite seem to get this to work as I would expect. Specifically, the collection properties ...Show All
Visual C++ cannot convert from 'System::IntPtr' to 'Form1 ^'
Hello, Im passing a pointer of a form to be used in a Event handler, this goes well untill the pointer is been converted to the form again. The code looks like this: class cBlah { public: System::IntPtr Parent; // Parent pointer static void (*EventHandle) (cBlah^ obj) // Event handle blah (System::IntPtr ptr, void (* handle) (cBlah^ handle)) { Parent = ptr; ...Show All
Visual Basic dataset won't save back to database
hi all i have created an SQL db containing 1 table within VB 2005 express. i then created a datasource to connect to the DB. A dataset was then created. i dragged the dataset onto my "Form1.vb" and bindingsource, tableadapter and binding navigator were then created. i then pressed f5 to run. I can nvavigate through the records and create new one's but when i click on the save icon and then exit, the new records are not written back to the DB ...Show All
Visual Studio Team System Workspaces meant only for filtering?
Is filtering is the sole purpose of the workspace feature http://forums.microsoft.com/msdn/ShowPost.aspx PostID=97724#97724 Will it get the latest version of the build if it is specified as < Project DefaultTargets = " DesktopBuild " EndToEndIteration is basically a target that you choose to sequence your build so that it performs all end to end activities in the build like clean, create workspace, get source ...Show All
Visual Studio Team System How do I query SCC for items
Hi, I would like to use http://tfs:8080/scc/application/...asmx to retrieve a list of files of a particular project (ie $/MySccProject/MySolution/MyWebProject) to see the date+time of last change of each file. can someone give me a hint - or better: a link to some documentation ! I've installed the VS2005-TFS SDK, but I can't see a difference, nor any help-file which would give me a hint! thank you! FYI: doing it per SQL would be simple (se ...Show All
Windows Forms how to eliminate duplicated values in a databound combobox?
I have a comboboxService, bound with an ACCESS db table "Service", the displayMember is a column called "serviceContactName", which allows duplicated value in the db. (i.e. one person can be the contact of many services). When I run the app, the combox will contain all the contact names for all services, e.g. if person "Smith" is the contact of 10 services, his name will have 10 duplications in the combobox. H ...Show All
.NET Development Running a block only on debug mode
Hey! Is there a way to determine on run time, what is the current mode of running(debug/release) Thanks. The Debug configuration usually has a DEBUG symbol defined, so you can write #if DEBUG // Debug mode only code goes here #endif ...Show All
Visual Studio Express Editions Speed of binary parsing
Hi, I'm just getting started with c#, but the IDE and .net have made it quite easy so far. What I'm playing with right now is MPEG2 transport stream parsing. This is what I have: FileStream fs = new FileStream("C:\\Documents and Settings\\Administrator\\Desktop\\New Folder\\nun.mpg", FileMode.Open, FileAccess.Read); & ...Show All
Visual Studio View report from the crystal report server using .NET
Hi, I am first time dealing with crystal report and I having problem with it. I need to use asp.net to link to the crystal report server and view the report, but don't know how Is there a way to do that, and how to do that Thanks. Hello, You can find samples and walkthroughs on the Business Objects developer zone web site: http://www.businessobjects.com/products/dev_zone/ Just click on the .NET zone ...Show All
