Vince206's Q&A profile
.NET Development Delay on first call to web service
As a learning experience, I've written a Windows Forms app which accesses the xmethods StockQuote web service: http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl (I'm using .NET 2.0 and Visual Studio 2005.) The (synchronous) calls to the getQuote method of the service take place in the DoWork handler of a BackgroundWorker. It takes 10 seconds or more for the first call to getQuote to complete; all subsequent calls complete much more quickly. The delay is not affected by the presence or absence of the MyApp.XmlSerializers.dll generated by the compiler. I know from accessing the same web servic ...Show All
Smart Device Development Disable phone call during runtime
Hi Guys, Just wondering whether it is possible in .NET Compact Framework to disable phone call feature when users start the application. I looked at the Phone API documentation and did not find it helpful. I am using Compact Framework 2.0 on Windows Mobile 5.0. Thanks, Andie There is no mechanism shiped with .NETCF to do this. Someone on one of the WindowsMobile newsgroups may be able to give you information on a native method that will help you out. You can then P/Invoke to it from .NETCF. Windows Mobile API : microsoft.public.pocketpc.developer microsoft.public.smartphone.deve ...Show All
Visual C# C# Generics
Dear All, I have used C# 2.0 generics to build a class. the thing is that when i investigate the code using IlDasm, i could find the box with T parameters mentioned statements out there. but the main advantage is that boxing will not happen when using generics. can anyone justify this or suggest me whts wrong . regards, sundararajan.s Also, if you want to do mathematical addition, have a look at this codeproject article . ...Show All
SQL Server error message says WkUFind cannot open because MSVCR70.dll is not found
how do I load this file This seems to be a more universal problem, I've tried to run other programs which work on previous versions of windows, only to get this error also. Two confirmed programs are DrJava (a standalone java compiler) and UnrealIRCd (an irc server). With DrJava, the problem was solved just by searching for MSVCR70.dll and putting it in the same directory as the .exe, but that prolly won't work for other apps. Hope this gets figured out. -- John ...Show All
Visual Studio Express Editions How to config Team foundation server?
I'm a beginer in .Net 2005. I can't config source safe 8.0 of .Net 2005 I don't know how to config a Team foundation server. Pls help me. thks. Hi, Upon installing SourceSafe or TFS you can configure on what source control to use on the tools menu options. Select the Source Control node and choose the appropriate source control (either sourcesafe or tfs) that your going to use. Ipon setting that up you can login to the source control through File->Open. In TFS choose Team Project, in SourceSafe just select Project and on the open dialog there is a Visual Source Safe button on your left, that's where you'll find the source safe data ...Show All
.NET Development Making databases in code
does anyone know how to make a database completely out of code Visual Basic has a COM object named ADOX.Catalog which could do this. what im looking for is a .NET namespace to implement this into my C# application. Hi, It really depends on what DBMS that you're using. If your using a SQLServer then you could create a connection to the master database then execute a CREATE DATABASE t-sql command. After the database creation just reconnect to your new dbase then execute CREATE TABLE to create tables... Just look-up on the books online of sql server to have a guide on how to use t-sql... cheers, Paul June A. Domag ...Show All
.NET Development Method can not be reflected
Hi everybody, I'm using a Web Services that was not written by me. Anyway, when i call the client proxy (stub) i receive the follow exception An unhandled exception of type 'System.InvalidOperationException' occurred in system.web.services.dll Additional information: Method Selection_Archive.ListEntitledSelection can not be reflected. I can't understand why i have this exception. This is the client stub's code (automatically generated with wsdl.exe): public SL ListUserSelection(string user, string pwd) { object[] results = this.Invoke("ListUserSelection", new object[] {user, pwd}); ...Show All
Visual Studio Team System File locked by another programmer
I have a project that has a file locked by another programmer that is no longer working with me and I can't get him to check the file back in. How do I (as an adiministrator) remove the lock from TFS source control Please add your thoughts to the following blog post. The tfpt features are certainly high on the list for a VS power toy. http://blogs.msdn.com/buckh/archive/2005/11/16/493736.aspx Buck ...Show All
Visual C++ cannot open file 'comdlg.lib'
I've just installed MS VC++ 8.0, followed the instruction to install SDK update and tried to to build my Win32 console app project. Building output gave me an error message: LINK : fatal error LNK1104: cannot open file 'comdlg.lib' I checked directories and file locations. Everything corresponds with instructions to install PSDK. But when I try to find comdlg.lib, I find nothing. Maybe the problem is in project settings but I need help with this. Thanks Martin, I tried your solution (linker->general->show progress-> display all progress messages (/VERBOSE)), and learned little. However ...Show All
.NET Development variable in SQL, is what in Microsoft Access?
I've used nothing but SQL Server 2000, and to use variable in a stored procedure you use @variable to declare them. I'm having Access thrown at me unwillingly...so I need to know what the equivelant is in Access. So let's say the sql sp is the following, how would it look in Access : @var1 smallint, @var2 char(5) AS Select * From SomeOddTable Where col1 = @var1 and col2 = @var2 I had posted this, but it somehow got deleted by someone, and I received no email as to why. As far as I can tell this is a legimate question for this forum, and if a moderator were to move it/delete it, please email me why/where. ...Show All
Visual Basic How to append a line to its previous line in a text file?
Hi, everyone, I have a file with several lines, looks like this: 001 John Smith St.Louis MO 555-555-5555 002 Peter Johns St.Louis MO 555-555-5555 003 Jimmy Howard Chicago IL 555-666-7777 004 Tom Somebody Chicago IL 555-666-7888 005 Jane Smith New York NY 212-555-555 006 Mike George New Haven CT 203-555-5555 -------------------------------------------------------------- all the lines have the same information, but some have the last part (phone number) in the next line. I need to rewrite the file and find out those phone numbers at the beginning of lines and append it to the previous line. Any suggestion ...Show All
Visual Studio More Logon Failed exceptions
Good Morning, I have been monkeying about with the CR.Net stuff, and in a normal winform client can load a report that talks to an Access database via a DSN connection. However, that same report with virtually the same code will NOT load in a web application. It constantly gives me the logon failed exception: [LogOnException: Logon failed.] . F(String , EngineExceptionErrorID ) . A(Int16 , Int32 ) . @(Int16 ) CrystalDecisions.CrystalReports.Engine.FormatEngine.GetPage(PageRequestContext reqContext) CrystalDecisions.ReportSource.LocalReportSourceBase.GetP ...Show All
Windows Forms Windows Media Player Statistics Dialog
What interface should be implemented in my decoder direct show filter in order that the WMP shows the statistics that i want to show in the statistics dialog. Murari Krishnan. ...Show All
Visual C# Signing an assembly with a key container
The AssemblyKeyName attribute I've been using to sign my assemblies with a key from a container is now deprecated in VS 2005 (I'm using the Standard released version). I get this warning message: AssemblyInfo.cs(59,12): warning CS1699: Use command line option '/keycontainer' or appropriate project settings instead of 'AssemblyKeyName' But as far as I can tell, there's no way to specify a key container in the project settings, only a key file. I also can't find a way to specify command line options to the compiler. I can do both for managed C++ projects, but not for C#. The only workarounds I've found are (1) use a key file instead of a key c ...Show All
Windows Forms catch mouse events in a CONTAINER
Hi! Does anyone know how to handle mouse events in a container, i.e., no matter what control inside this container is clicked. I mean, it makes no sense to create like 20 eventhandlers when all the events in this container should generate the same result. Thanks. /Magnus Hi, Please see the below link. Hope this one will be of some help. Question 11.6 in http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c50c.aspx#q598q Thank you, Bhanu. ...Show All
