pi.net's Q&A profile
Visual C++ compile failure past anything except extremely simple code
I recently downloaded and installed "Visual Studio C++ 8: Express Edition Beta 2", in order to learn C++ (I know Java). After installing, during which everything appeared to work as intended, I created a shortcut to the command prompt located in the start-menu\visual C++ studio\ directory. When I attempt to compile the following: ----------------------------------------------------------- #include "stdafx.h" ... ----------------------------------------------------------- it returns "fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory". The only code the compiler has successfuly compiled, and was abl ...Show All
SQL Server Window identity of SQL Server
My .NET application use SQL authenication. One function of the app is to backup database to a user specified folder using SQL statement. However, there is problem saying that there is no right to write to the folder. What window identification(any default account ) does my app use in the write action If my application will be distributed and installed by user, what should I do to make the backup success for all location Many many thanks! ...Show All
Visual C# ToolTip Control on HelpControl Button Click??
Hi..All, I want to show tooltip for each control in my Form..when i Click on Help Button on the corner and i want to show tooltip on every control i press it..with that button Best Regards Bassam Basamad As far as i understand your problem, when you click on the help button, tool tips for all controls in form gets activated, i.e. when you hover mouse over the control tool tip is displayed. Well you can handle this on click event of help button. In event you can define tooltip control and assign to desired controls in forms. How to declare and use tooltip can be found on http://msdn.microsoft.com/library/default.asp url ...Show All
Windows Forms How to get modified rows from a datagrid , when the changes are made on the editable datagrid itself
I have a datagrid bound to a datatable , which has customized table style. I display the editable datagrid. I modify some rows ( say row 1, 5 and 6 ) on the datagrid from the interface. Now I would like to get this set of modified rows in the program. Somehow followoing methods are not working for me Method : 1 (objDRow.RowState&nbs ...Show All
Visual C# frequency spectrum analyzer
Hi, I want to sample an audio file and show it on a graph. so, I need to sample the frequencies between 20Hz and 15Khz. How do I do that with DirectX I just need to know how to sample a file, the methods/functions. (without hearing it,just open in on the memory and read it's content to chart like waveform) thx very much. Hi! What do you mean "sample a file" Read and display file on screen or intercept audio stream to file and display it Or you need to know how to read WAV ( ) file and understand sound data ...Show All
Visual C++ int CString::find() ignores newline character?
I have a text file that is of this format: abc def ghi I read this file into a character array and then passed it into a CString. When i did a find on the CString ( CString.find("def") ), instead of returning me value of 4, I get a value of 3. When i did CString.find("ghi"), i get 6 instead of 8. That made me believe CString::find() ignores newline chars when counting for the index. Is this true If it is, is there anyway I can make it include the newline chars in the count Would appreciate any insight on this. Thanks in advance! Thanks alot ppl, yup you guys are right, CString::find() works properly, af ...Show All
Windows Forms maintain data knowlege across functions?
I'm new with VB.net and have hit a wall. I don't know how to implement this. Data binding, MDI, data sets, collections, arrays, etc. I don't know how to have critical info known across multiple classes, functions, subs, without making everything Public. Can additional parameters be passed in event handles There's some basic concept I'm missing that I can't find the  ...Show All
Visual Studio Team System TF86001: Team Foundation was unable to load the Office AddIn
After dealing with the daunting install process and getting it right, now I'm able to create projects and work with most of the items, however I found a new issue while trying to open any of the Excel sheets included in the default project team solution structure from WSS and I get that error, funny thing is that this only happens with XL files, since I can open Word and Project files with no issues Here's what I'm running on: Server: Windows Server 2003 sp1, SQL 2005 Sep CTP (data, analysis and reporting services), VSTS Server Foundation beta3, WSS sp2 Client: Windows Server 2003 sp1, Office 2003 Pro sp2, VS2005 Release Candidate, VS ...Show All
Visual C++ How to Get SPY++ for desktop based application in vsts
I am new to visual studio team system 2005 I want to install spy++ for windows application not remote spy I try hard but I do not reach to any result please help Spy++ should be installed as a part of VSTS by default. It can be accessed from the Tools menu in the IDE and also from the start menu via: Start\All Programs\Visual Studio 2005\Visual Studio Tools\Spy++ I hope this is helpful, -Ron Pihlgren VC++ Testing ...Show All
Visual Studio Express Editions Creating a Form Application
C:\Program Files\Microsoft Visual Studio 8\VC\include\comdef.h(21) : fatal error C1189: #error : comdef.h header cannot be included under /clr:safe or /clr:pure Can anyone help me with this error I am trying to include the file to my program but it isnt working! Thanks, S_J There's a variety of contexts for creating a form-/document-oriented application that creates e-mail. I can think of four cases off-hand, and finding a tutorial depends on a lot on which approach you're considering. Here's my list. I suspect that (4) is what you want. You could build a command-line a ...Show All
SQL Server Can create login, but cannot connect (sa doesn't even work)
Hi, Please direct me to the right forum if this is not the right one. Upon installation of SQL Server 2005, I opened the SQL Server Management Studio, connected using Windows Authentication and went to the security node in the tree. I created a log in called "TestLogin". I restarted my server just to make sure everything took and when I tried to log in using TestLogin via SQL Server Authentication, I get the below error. I have mixed mode enabled as well as named pipes. I am not sure what the issue is or what to try next. I even get the same error when trying to use "sa". Thanks, - Joel TITLE: Connect to S ...Show All
SQL Server Hows does SSIS improve concurrency without loacking
Now, DTS runtime uses multiple threads for execution to improve concurrency, performance and scalability. In order to avoid having more than one thread attempt to access the same variable at the same time, all access to variables must be made "safe" by locking them for your operation. How does SSIS fare on this count IS does this with the VariableDispenser object. It's exposed in the script component and task. It essentially locks variables for you. ...Show All
Software Development for Windows Vista Chaining Workflows Synchronously
In Ariel Schapiro: Shaggy’s Blog i found "Chaining Workflows Synchronously: InvokeWorkflowSync Activity v1.0" sample. That sample is developed in Beat1. Please give me the link for Beat2. or What are the changes do we need to work in beat2. You can find a link to the upgrade document on Paul Andrew's blog at http://blogs.msdn.com/pandrew/archive/2006/01/19/UpgradeWFBeta2.aspx . If you work through the document you will find that you can update the project to build correctly and get the first workflow started. Unfortunately the second workflow never starts because of a ...Show All
Visual Basic Question about setting bits.
I have the following: Dim bit As Byte = b(1733) If have1.Checked = True Then bit = bit Or 1 Else bit = bit Xor 1 If have2.Checked = True Then bit = bit Or 2 Else bit = bit Xor 2 If have3.Checked = True Then bit = bit Or 4 Else bit = bit Xor 4 If have4.Checked = True Then bit = bit Or 8 Else bit = bit Xor 8 If have5.Checked = True Then bit = bit Or 16 Else bit = bit Xor 16 If have6.Checked = True Then bit = bit Or 32 Else bit = bit Xor 32 If have7.Checked = True Then bit = bit Or 64 Else bit = bit Xor 64 If have8.Checked = True Then bit = bit Or 128 Else bit = bit Xor 128 b(1733) = bit I hav ...Show All
Visual C# using ExecCommand to copy in MSHTML
I am working on an editor using mshtml. I just cannot get cut / copy / paste to work with ExecCommand. All other command identifiers seem to be working well. Here is my code: public partial class Form1 : Form { private static HtmlDocument htmldoc; private bool fireonce = false; // fire previewkeydown only once public Form1( ) { InitializeComponent( ); } private void Form1_Load(object sender, EventArgs e) { webBrowser1.Navigate("about:blank"); webBrowser1.Select( ); } private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { ...Show All
