tickling's Q&A profile
Visual Studio Team System [BUG: 1.32RTM] Error when opening file with 'Save Rules By' set to 'Message Level'
Guys, I came across this when I tried to open a file that I had saved in a pre-release version of 1.32 and tried to open it in the RTM of 1.32. The funny thing is that I don't ever remember changing the 'Save Rules By' option. FxCop displays the following error when opening a file that has 'Save Rules By' changed to 'Message Level'. An error occurred while loading '[FileName]'. 'Value cannot be null. Parameter name: defaultCategory' Stack Trace: at Microsoft.FxCop.Common.NamedRuleTable.Load(XmlNode node, NamedRuleTable defaultCategory, Boolean isDefinition, Boolean isSelectedAndInNewProject, Boolean isSystem, String groupName, H ...Show All
Visual Basic Trouble reading bits.
I am trying to read a byte from a certain address in a file. But, I am trying to read the byte in bit format (bits 0-7). I have tried to use the BitConverter and the BitArray classes but I cannot figure it out. I am pretty sure that BitArray is the one I need but there are no methods that look like they would do anything I want. Maybe I am just missing it. I checked the help section but the examples there were not what I am trying to do. Any help would be greatly appreciated. Remember I was saying were going to demonstrate how to set bit 3. in binary, setting bit 3 would look like 00001000 = 8. ...Show All
.NET Development (.Net 2.0) HttpListener and Keep-Alive (Http 1.1)
Hey everybody. I'm playing around with the HttpListener class, which i think is absolutely cool, it just seems to have a few quirks. I want to service multiple requests over a persistent http connection, which the API seems to support (it' has KeepAlive property), but for some reason, it always closes the connection after each response, forcing the client to create a new connection for each request. Here is some sample code. HttpListener listener = new HttpListener (); listener.Prefixes.Add( "http: //*:81/" ); listener.Start(); while ( true ){ HttpListenerContext context = listener.GetContext(); &nbs ...Show All
Visual Basic Microsoft.Office.Interop Error
I have a VB program which involves opening Excel files. To do this I had to add the Microsoft Excel Object Library to my projects' references. There was no problem here until a friend tried to run my project on his computer. The application would start, however once a command to open an excel file was selected, the following error was displayed: Unhandeled exception has occured in your application. Could not load file or assembley 'Microsoft.Office.Interop.Excel, version=11.0.0.0 Culture = neutral. The system could not find the specified file. Does anyone know how to correct this error which only occurs on my friends computer after the ...Show All
Windows Forms Creating a currency text box using Masked Text Box
Is it possible to create a masked text box that will automatically convert the user-entered value to a currency I tried it with the masked text box, but I could not figure out how to make the length of the string between the "$" and the ".". I had the mask set up as: $000,000.00 But I want the user to be able to enter as little as $50.00, but it is a little bit awkward for them using that mask. Any tips ...Show All
Visual Studio Express Editions localization
Hi to all, In the form's properties ,I changed Localizible->True And language->telugu when i changed the above two properties,visual studio will add the corresponding resource files.But resource file form1.te.resx is not added.why Please help me how to generate those resource files Hi, it does not create the new resource file until you change something on the form. It only saves what is different from the default resource. ...Show All
Visual C++ Transfer CString between classes
Hi, I have a MDI application and from the menu I can open a dialog with a edit control and a OK button. When I push the OK button the text in the edit control shall be stored in a variable in my CDocument class. But when the dialog has been closed, the variable that should store the CString is empty. What have I do wrong In the dialog class I have this code: void CMyDlg::OnBnClickedOk() { CString EditCtrlText; m_EditCtrl.GetWindowTextA(EditCtrlText); CMyDoc m_CallFunc; m_CallFunc.StoreCS ...Show All
.NET Development TableAdapters.....
Is there a way to expose the SqlDataAdapter within a TableAdapter as a Public property even after re-generating the TableAdapter I can't use TableAdapters, because they don't expose the SqlDataAdapter as a Public property since I need to pass down the DataAdapter to a separate DB I/O method. Not a generated DB I/O method within the TableAdapter. I'm forced to use the Component Designer and create a SqlDataAdapter like I have been doing in VS.Net 2003. The following code is generated when creating a TableAdapter: <code> <System.Diagnostics.DebuggerNonUserCodeAttribute()> _ Private ReadOnly Property Adapter() As System ...Show All
SQL Server how to order stored procedures or tables by date
We used to do this extensively in the old enterprise manager.. this is needed on big systems with lots of tables and stored procedures becuase you normally don't remember the name but it is the most recent thing you were working on.. anyone know how to do this in the new sql server management studio.. thanks In 2005 I would use system catalog view. Vincent ...Show All
Windows Forms Help please windows application Visual Studio
Hi, I need help , I to want know how i can make a button move, to some position to another position, the position have to be where I want, please help me. In case Im working in c# Microsoft Visual Studio. Thanks ps: send ansewer to: aerodeslizador@hotmail.com thanks pls help me I have a further problem related to this. I use the code in the above message, but with the addition of an option to Snap To Grid. This is done my only moving the object to the nearest grid position when the mouse reaches it. Unfortunately, if the control is small, or you click on it near an edge, the mouse moves off the contr ...Show All
SQL Server ENDPOINTs in SQL Server 2005 April CTP
Hi I've been happily using VS2005 Beta 1 to access ENDPOINTs on SQL Server 2005 Beta 2 for a while now with no problems. Having just upgraded to VS2005 Beta 2 and SQL Server 2005 April CTP I now get this when I make a call to the ENDPOINT web service: "The request failed with HTTP status 505: HTTP Version not supported." Also, if I try to access the WSDL just through Internet Explorer by putting " wsdl" on the end of the url, I get: "Error 501/505 - Not implemented or not supported" It all worked fine in previous beta's. Any idea if some new features\security are causing me this problem, or does it just not work anymore Tha ...Show All
Visual Studio Team System FxCopCmd 1.35b1 not processing any rules.
When I run FxCopCmd on the command line from an MSBuild script: C:\Tools\FxCop\FxCopCmd.exe /o:"C:\Projects\Common\trunk\bin\reports\fxcop.xml" /p:"CodeAnalysis.fxcop" /axsl /verbose I noticed it isn't finding any problems even though opening the CodeAnalysis.fxcop project in the GUI does find at least 10 rules that need to be addressed: Microsoft FxCopCmd v1.35.51212.0 Copyright (C) 1999-2004 Microsoft Corp. All rights reserved. Loading CodeAnalysis.fxcop... Loaded DesignRules.dll... Loaded GlobalizationRules.dll... Loaded InteroperabilityRules.dll... Loaded MobilityRules.dll... Loaded NamingRules.dll... Loaded Performance ...Show All
Visual C++ OnTimer() not being fired up.
hey guys, i have timer set like follows: UINT TimerVal; TimerVal = SetTimer(406, 50, NULL); and i added in header file: afx_msg void OnTimer(UINT nIDEvent); and in cpp file i have: void CEditorDlg::OnTimer(UINT nIDEvent) { char finalFps[100]; strcpy(finalFps, NConvert::IntToChar( _entityEngine->getFPS() )); m_lblFPS.SetWindowText( _T( finalFps ) ); CDialog::OnTimer(nIDEvent); } and : ON_WM_TIMER(). so when i put a break point int he ontimer function, it doesnt stop at it. therefore i understood that the timer wasnt started, but the TimerVal result i got had value 406, so i assumed that it already started. does anybody know why ...Show All
Visual Basic send mail
Hi, i have problem in writing send mail codes. can someone pls help me regarding it i have written code to send mails but somehow there are errors. i have attach my codes below. when i click on the send button, an error message prompt out saying that "An Unhandled exception of type 'System.nullReferenceException' occured in testingMail.exe. Additional information: object reference not set to an instance of an object." Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim message As System.Web.Mail.MailMessage message.To = "li-ching.ooi@av ...Show All
SQL Server connection error
When i am running the package using dtexec utility on the command prompt i'm getting this error for every connection that is not windows authenticated. however in the debug mode it is always working Source: Connection manager "connection_name" Description: Failed to decrypt protected connection string for server "server_name" with error 0x8009000B "Key not valid for use in specified state. ". You may not be authorized to access this information. [[Occurs when there is a cryptographic error, most often when the right key is not available]] i have 2 types of connections: one to oracle database and an ...Show All
