BarrySumpter's Q&A profile
Visual Studio Express Editions Debugging using VC# Express
Hi, How do we debug using the VC# express edition You place break points by clicking the left edge of the code window. Then you hit F5 to start the program in debug mode. The program stops on every breakpoint (you can also set some conditions to break points). When stopped, you can inspect the object values in VC#, and when ready, hit the "play" button (a triangle) in VC# to continue You can also print out debug messages, that are shown in VC#'s output window: using System.Diagnostics; ... Debug.WriteLine("Doing some hard calculation here"); ...Show All
Visual Studio 2008 (Pre-release) how to make the header of an expander control stretch?
I'm trying to make the header of an Expander control fill the available horizontal space in the parent. I'd expect something like this to work: <Expander IsExpanded="True"> <Expander.Header> <Border Background="Blue"> <TextBlock>Hi there</TextBlock> </Border> </Expander.Header> <Expander.Content> <Rectangle Height="100" Fill="Red"/> </Expander.Content> </Expander> The result of this is: - the content (red rectangle) is stretched out horizontally (good) - in the header, the blue background precisely fits the area of the text in the TextBlock (bad) If I put the Border with the embedded TextBlock in, say, ...Show All
SQL Server SQL Server 2005 Back Problem
I am new to MS Sql Server, I have installed Sql Server on a system and i created a database in it, now i wanted to uninstall it and install it on other system, but i dont like to lose my database, therefore i want to export my schema and import in other database. what are the steps that i follow, i have installed Sql Server Management Studio Express on it. Thanks to you Reading my problem. There is no need to do any of what you described. Your entire database, schema and data, is all contained in a file, you simply need to detach the file from your development server, copy it to your production server and attach it to SQL Server on that machine. You can Detach the database in Management Studio by right clicking on the database. ...Show All
Visual Basic browse & open file types
dear friends Plz tell me how to browse & open the fles in a program and make a program to support that type of file type and then open it. plz help me. thanks in advance Ravi yadav you have created quite a few topics....have you actually tried doing some research before hand To open the files, use the OpenFileDialog class and set your custom filters. http://msdn2.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx Everything is in the link. Example: Dim theOFD as new OpenFileDialog() theOFD.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" if theOFD.ShowDialog() = DialogResult.OK then 'open the file selected and do whatever. The filename chosen/selected is ...Show All
Visual Studio Express Editions MsgBox Size and Position
Hi, How can I set the size and position of the standard message box control. It is always shown in the center of the primary screen, sized just large enough to display the text. Moving it takes a few tricks. Add a new class to your project and paste this code: Imports System.Text Imports System.ComponentModel Imports System.Runtime.InteropServices Public Class Nobugz Private Shared mRect As Rectangle ' Form rectangle Private Shared mTid As IntPtr ' UI thread ID Private Shared mHwnd As IntPtr ' Handle of message box window Private Shared mPos As Point ' Desired postion of message box Public Shared Sub CenterMsgBox(ByVal frm As Form) '--- Centers the message box about to be displa ...Show All
.NET Development error: stored proc expects param @xxxxx not supplied
I created a stored proc with 2 insert queries. Both queries have parameters. The first query inserts a row in first table and second query inserts a row in the second query. In addition, the first query gets the scope_id from the first table and inserts this same scope_identity in the second table along with the other supplied params. Here is the stored proc: (accountNumber gets the scope_identity) ALTER PROCEDURE dbo.InsertAccount @AccRisAsse bit, @AccHldBll bit, @accountNumber bigint output, @prpDateBir datetime, @prpSinNmbr char(15) AS insert into TblAccount(AccRisAsse,AccHldBll) values(@AccRisAsse,@AccHldBll) set ...Show All
Visual Studio Team System Merge/Checkout scenario
If say we have a version of a file that has come from a nother source location and we simply want to use this version but the version in source control is different and needs to merged with this "loose" file, is it possible to have TFS do a merge on the local file one a checkout Use case: 1. File A.cs is in source control 2. File Aa.cs is modified elsewhere 3 File Aa.cs is copied over A.cs locallly 4. File A.cs is merged into Aa.cs in place... Is this possible Basically, I want to force a Conflict Resolution so that changes in the source files can be merged... Like Michal said, the file needs to be read-write. Rough procedure: copy /y Aa.cs a.cs attrib a.cs –r tf get a.cs ...Show All
Visual Studio Team System custom work item fields
right now I have a field called "Approved By": < FIELD name = " Approved By " refname = " eDiets.ApprovedBy " type = " String " reportable = " dimension " > < VALIDUSER /> </ FIELD > It works fine, but I want to enforce a rule that only allows the current user to assign himself to this field. Right now they can select any valid user. Esentially the business owners do not want people to be able to approve tasks using someone elses user name. In addition to using just DEFAULT tag, I would also suggest you to make this field Readonly in the form layout so users can't edit this field. -Mohammad ...Show All
Software Development for Windows Vista Graphedit return 0x80004002 (No such interface supported) on Vista64
Dear All, I face a problem that my tv app cannot run successfully on Vista64. And I verify my app's graph using graphedit, I found it's also fail to run my tv graph, it will pop an err msg after I press the play button : "No such interface supported, Return code = 0x80004002". However the same graph can be run successfully using graphedit(64), I wonder what's the difference Also, amcap cannot run but amcap(64) can....... I think it's strange because I thought there should be no differences on AP design for 32 or 64 bit OS Does anyone know how should I change my app to let it run successful on Vista64 Thanks and Regards. On Fri, 19 Jan 2007 02:48:29 -0800, = UTF-8 B Vm ...Show All
Smart Device Development Initiate synchronization from device
I have written a C# application for Windows CE, VS2005. What I want to do is to transfer files from the Device to the Desktop PC. It has to be done exactly when I want it to, and I need to know that the sync went alright before my app continue to run. I have looked at "repllog.exe /remote" but it is dependant on the customer clicking the sync button on that dialog window, and not everywhere else (like disconnect). Also, it is one extra step to do for the customer, which should have been done automatically. I also tried importing the rapi.dll from the application on the device like this: [ DllImport ( "rapi.dll" )] public static extern void CeRapiInit(); When I call the function CeRapiInit at ...Show All
Community Chat What language do you prefer?
Could someone please enlighten me as to what the advantages and disadvantages of the following languages are, in general: C# C++ Visual Basic Also: I read somewhere that C++ was much better for game programming than VB, but why VB is easier to learn and use, so what are the advantages of C++ I think you have it backwards.. C++ is harder than C# to learn. But, I guess it depends on who you are. My 2 cents... I hate the .NET framework. C++ is the best way to go in either direction. Whether it be for business, a hobby, or game development. People will argue that you can accomplish the same thing in C# as in C++ with less than third of the code your C++ code. People also say C++ is a lot hard to understand/write. Well, ...Show All
Visual C++ Getting an error RC2188 (Visual Studio 2005, C++)
Hi, For some reason I'm getting an RC2188 error from the Resource Compiler when accessing the Resource View. There is no documentation for this error. Situation is, I have an RC2 file with my version info in, which is not to be edited by Visual Studio. When the message comes up, it has the path to the RC2 file with a (6) after it. Presumably this is the line number which is #error this file is not editable by Microsoft Visual C++ Anyone have any idea why this is now causing an error (has been working fine in this configuration for months) Thanks in advance Ian. Ian Daysh wrote: I implemented the Automatic Build Number Increasing Macro as found here . Did you see Modify by ...Show All
.NET Development DataSet Copy/Clone
Hi, I need to have a copy from one Dataset created at the Form level. I'm using the TableAdapters and BindingSource Objects also. In some cases I need to check and verify if a specific row exists in my DataSet. How can I do it using the DataSet Is there any other way (BindingSource.Find) My table have 3 fields for the table key. I am assigning the BindingSource to a DGV.DataSource to display it. This specific BindingSource as its DataSource and DataMember related to the original DataSet. If I want to consult a specific row on the DataSet this will change the Position on it, true This would mean that the DGV display would also change, true I don't want that to happen. Can someone help me Thanks, ...Show All
Audio and Video Development How Can I use the voice capture DMO (Microphone Array Function)
Hello All, I am developing an application about using Microphone Array function via the voice capture DMO to make an audio file. And I encounter some problems as below, could anybody help me to clarify it 1. Is it possible to use the voice capture DMO in DirectShow by using the wrapper filter I have created an AEC filter (CLSID_CWMAudioAEC) by wrapper filter in DirectShow and render to a file, but it doesn't work (No output data generated). How can I do to overcome this problem 2. I have used “AECMicArray” sample to record the audio file, and it produces a .pcm flie. I have a question that how can I do to play this file I have tried to write the wave header manually and it is playable. However, writing header manually does not ...Show All
Visual C# What does managed mean?
Hi all, While I was reading other messages here, I got another question, which I was wondering since I started C#. What actually does C# mean Does it mean consistent where C++ isn't Thanks, aw Hi, This thread is on the topic: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1216730&SiteID=1 C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. It is used on .net platform. So, you must understand what .net framework is: http://en.wikipedia.org/wiki/.NET_Framework And more references: http://www.aspfree.com/c/a/C-Sharp/Introducing-CSharp-and-the-NET-Framework/ http://www.gotdotnet.com/team/upgrade/csharp.aspx If yo ...Show All
