xyzt's Q&A profile
Visual C# Code Snippets Cause IDE crashes.
I am using Vs2005 team suite. I have been experiencing IDE crashes without what exactly happens, but recently it seems that the problem is causedby the code snippets. Every time I try to use code snippets such as cw <tab>, the IDE would close. when I start the debugger of devenv, this is what I saw: "First-chance exception at 0x7c901010 in devenv.exe: 0xC0000005: Access violation reading location 0x00000014." The IDE crashes very often and make it hard to work on, anyone knows what's going on Below is the log from debug output 'devenv.exe': Loaded 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe', No symbols loaded. 'devenv.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'deven ...Show All
Visual Studio 2008 (Pre-release) Maximizing throughput with streaming
Hi All, I'm trying to learn about WCF while solving a problem I have right now but need a little help on the performance side. I have a remote filesystem with about 1000 directories, containing anywhere from 1 to 1500 files each. File sizes range from 300KB to 3MB each. I need to mirror the remote filesystem locally over a VPN connection. So, I've created a client server using WCF, net tcp binding and streaming. It's all functional now but the throughput is very bad. The pipe for the VPN connection is enormous, with over 300Mbps available, but the latency is pretty high. I do know that my files aren't large enough to require streamed transfer rather than buffered but I'm practicing for another problem ...Show All
Software Development for Windows Vista Error Code 80070017 Solution
to get past the error code without downloading a bunch of useless hardware, do the following. After you burn the iso to a DVD, go into my computer, right click on the Drive that has the burnt DVD in it, Copy and Paste all files to your hard drive (I made a new folder on the desktop). DO NOT TRY TO BOOT TO THE CD!!! You have to be logged on to XP to install this way. after copying the files open the folder and click on the setup.exe. ENJOY Yes, It is work! BTW, I would like to share my experiance. I had faced a same captioned problem when I install the New Vista in my HP Desktop (P4 3Ghz, 512MB RAM, DVD drive, 250GB HD, on broad display). I found that the HP's DVD drive can't be 100% compatible with the Vist ...Show All
SQL Server Deploying to Report Manager error
I have created a report using SSRS 2005. It uses a stored procedure. It executes beautifully when I'm in reporting services. But, when I deploy it to Report Manager, this is the error I am getting. An error has occurred during report processing. Query execution failed for data set 'DataSource1'. An MDX Statement was expected. An MDX expression was specified. I have 3 parameters in this report. Start Date, End Date & Region. Region is a drop down that contains 2 options. This is a string field being passed into the procedure. Start and end dates are just basic date fields. I am not using a cube to get my data. I have deployed to the Report Manager before and have been successful. Thanks! ...Show All
Visual Studio Express Editions blocking IE sites
how can i make it so that when a clicks go or enter on internet explorer,it will do a block on certain sites you type on a textbox,each filter is sepparated with a | for example porn|sex and things like that,and if you can help me here too,how can i make my program start with IE Many Thanks in Advance how about the thinking in terms of a reciprocal Instad of having a list of dissallowed sites.... what about having a list of allowed sites (Gee.... sometimes... I can step out of the box.....) ...Show All
Smart Device Development HELP! DataReceived/SerialPort Troubles
I am building code for the PocketPC to interface with a chemical sensor to poll and report on chemical agents in the air. I am having a devil of a time getting the DataReceived event to pass content (through an Invoke) to the main thread. When I write an "N" to the device, it is supposed to send back the following string to the UI, which represents the chemical sensor types that are housed in the unit: "CO VOC H2S LEL OXY" When I send an "R" to the device, it is supposed to send the current readings for each of the sensors as a string that looks like this: "00000 00000 00000 00000 00207". I have all of this working successfully as a WIN32 application, but it doesn't port cleanly to the .NET 2 ...Show All
Windows Forms Nested events
I have an win forms application that contains three user controls. There is a one to many relation between control B and A, a one to many relation between control B and C, and a one to many relation between control C and the form. Control A contains an event that needs to be raised up to the form. To accomplish this, I created an event in both control B and C. For example, There are 2 "C" controls with 7 "B" controls, and 0 to many "A" controls within B. All controls are being dynamically created. Controls A, B, and C are instantiated at run time, so my event handlers all wire up to a single delegate b_onchange, rather than b1_onchange, b2_onchange etc.. What appears to happen in this case, is when the event ...Show All
.NET Development Allocating buffers using callbacks
Hi, How can I allocate buffers using callbacks in pinvoke to allocate memory as needed. Can someone provide an example for this. Thanks! The memory will be allocated from native heap. An unmanaged dll function call is made by the managed side. Each time the unmanaged code needs to allocate memory, it does so by a callback to the managed side. The managed side will then allocate required memory(buffer) and return an IntPtr to the unmanaged side. Once the function returns, the managed side needs to read the contents of the buffer. The callback takes two areguments IntPtr Callback(IntPtr a, Int32 size). ...Show All
Windows Forms Problem with control docking
Hello, Here's my problem: 1. Create a new project 2. Place a tablControl on the form 3. Place a listView on a tabPage of the tabControl, Dock it, set BorderStyle to None and set its backColor to Red. 4. Set Padding property of the tabPage the listView was placed on (tabPage not tabControl) to 0 (All). 5. Run the project and you'll see it's not filling the tabPage completely from the left (it's ok from the right side). How can I fix that Your help is greatly appreciated. Hi, I follow your steps, and it's really hard to tell the difference from my eyes, therefore I used the magnifier application to have a check. There IS some space between the tabcontrol and tabpage. And I tend to think it's the res ...Show All
Visual C++ N00b wants to manipulate a database with C++ via SQL
Hello, For my study in Econometrics I need to write a program that communicates with a database. The actual SQL-statements that I will use will - as far as I can see at this moment - not be very complicated, but the communication with the database has to be as fast as possible once the program is running (if the start-up time is somewhat higher, this is not a big problem). The SQL statements I need are mostly SELECT statements, but sometimes also other statements are to be used. The emphasis however will be on SELECT-statements. I would also like to work with multiple recordsets, if that is possible (I know it is in Visual Basic). The database itself is quite large, with multiple tables and sometimes over 10,000 of entries within ...Show All
Visual Studio Report creation question
I am using VS 2005 Pro with SQLServer Express for the database. I am needing to create some reports in my current program that reflect the information stored in the database. I have run into one major problem when designing/creating these reports. What i need to do: 1) Read in records from certain tables in the database 2) Do calculations (sum, divide, average, join/sum, join/average, join/sum, count) on the records read in 3) Display results to fields on a report for user to view/print I know that many of these things can be done with simple queries, but the amount of stuff that we are needing to do along with the un-related colum calculations require us to come up with a different way to do this. Not only are some of the fields unrelated ...Show All
Visual Studio Tools for Office [Outlook 2007] Create automatic formatting programatically for an appointment
Hi, Using Office 2007 B2TR and Cypress, I would like to know how I can create an automatic formatting for an appointment In fact, I would like to change the background of how my appointment is displayed, in my calendar, according to a specific UserProperty. Anyone have an idea/pointer/links Thanks J Thomas Hi Thomas Discussions about Outlook are primarily centered in the newsgroups, although you will see some here, depending on whether/when Outlook folks drop by. If you need a faster turn around, or more active discussion, try http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.outlook.vba&lang=en&cr=US ...Show All
Visual Basic Web browser help!!
how do I make a STOP button for my web browser and how do I make a refresh button for my web browser ...Show All
Visual Basic Cross-thread operation not valid on ComboBox
Please tell me that you are going to fix this before the official release!! I am using VB not C++. I really shouldn't have to care that my code is not running in the same thread as the one that created the form that contains the control that I am trying to update. Please fix this or at least have some real examples that show how to update a control on a form. The examples that I found were not helpful at all. Hi, Unfortunately, enabling thread synchronization for controls is a very hard problem to solve--and even the most elegant solutions have considerable drawbacks. So the bad news is that this behavior is here to stay; the good news is that there is a new control in Whidbey that can be very helpful in these scenar ...Show All
Visual Studio Express Editions Play more than one file
I'm building an integrated media player using Media Player 11 COM. It works great, the only problem is that I can only play a single music file or I have to open a playlist file. I tried to add more than one music but the player only accepts the last music added. Currently this is the code I'm using. void MediaPlayerDialog_FileOk(object sender, CancelEventArgs e) { foreach (string ur in enderecos) { MediaPlayerScreen.URL = ur; } MediaPlayerScreen.Ctlcontrols.play(); MediaPlayerPlayPause.Tag = "play"; MediaPlayerPlayPause.Image = Resources.btn_pause; int c = 0; while (c != MediaPlayerScreen.currentPlaylist.count) { MediaPlayerList.Items.Add(Med ...Show All
