Ilya Tumanov's Q&A profile
Visual Studio unsafe code in asp.net site
Hi Guys I met a problem in building an ASP.NET web site that includes an unsafe function. The error said:"Unsafe code may only appear if compiling with /unsafe" I tried to find where I can modify the build switch, but failed. Can you help me Thanks Jemmy, MSBuild isn't used yet to build ASP.NET websites. I'd suggest asking your question over in the ASP.NET forums. Someone there should be able to assist. You can find the ASP.NET forums at http://www.asp.net/forums/. Neil ...Show All
Visual Basic Invoking DateTimePicker Programmatically
I have a TextBox and a DateTimePicker next to each other on a form. Whenever the user changes the date in the DateTimePicker, I make it show in the TextBox and when they change it in the TextBox, I change it in the DateTimePicker too. I know this is redundant as the DateTimePicker displays the date in its own TextBox, but that's beside the point - this is just a small aspect of a bigger problem. Anyway, what I would like to do is have the DateTimePicker calendar display when the user double-clicks on the TextBox. So in the TextBox_MouseDoubleClick event I want to call something on the DateTimePicker that makes it show its calendar so ...Show All
Visual C# Multiprocessor builds
I'm looking into buying new machines for my developers and was looking at the new dual core processors from Intel as an option to get faster compiles as compared to a "normal" single core processor. So my question is, does the C# compiler in VisualStudio 2005 take advantage of the dual execution cores or would I just be better off with a faster clocked P4 Thanks in advance for any info. Tom. Hi! I have Intel 830 CPU and I can state that it's working good - my apps are less freezing right now. Also it's good for computational powers - two cores of 3.0 GHz with little overclocking to 3.9 gi ...Show All
Visual Studio Team System Actions and fields of work items
1. When I try to associate work item with a check-in I get the list of all work items . But I want to change work item template so that only specific work items in specific states can be associated with check-in. How to achieve this 2. While changing the work item type template can I add more fields and refnames What should I do to make these appear on work item list 'Associate' is the checkin action that can be applied to all work item types, and this is not configurable. You can modify the template and define your own fields. Please note though that modifying the template ...Show All
Visual Studio Team System VSTF installatoion error
I am trying to install VSTF beta3 \\products\Public\Products\Betas\Developers\Visual Studio 2005\Beta 3\VSTF on a single server (Win2K3, SP1), based on the installation guide http://www.microsoft.com/downloads/details.aspx familyid=e54bf6ff-026b-43a4-ade4-a690388f310e&displaylang=en The pre-install checklist is strictly followed. But still I am getting following strange error during VSTF installation: Error 32000. The Commandline "C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools\createds.exe" /setup /install " http://BPI1087461/ReportService.asmx " TfsReportFS "Data source=BPI1087461;initi ...Show All
Visual Studio Team System Single Server Installation Error 28002
About 1/3 through the progress bar I get this pop up error message that error 28002 has occurred. My options are to Retry or Cancel. I have retried and after short delay the same error appears. I try cancel and the error goes away. Shortly after that the installation comes to a screaching halt with 2 logs which I saved off. The installation fails. I have tried to reinstall 2 other times and I get the same results. It's definitely reproduceable. I am getting nowhere with this product. Can someone assist Yesterday I uninstalled Sharepoint and VSTS. I cannot find the log files that I saved. Without looking at t ...Show All
Smart Device Development WZCSetInterface under XP: setting the 8021.x authentication
Our application runs both on PDAs and tablet PCs. It uses a wireless connection to connect to the network and that sometimes needs to be set to a different SSID. On the Windows Mobile platform this is no problem, because we can use the WZC functions which are quite well documented ( http://msdn.microsoft.com/library/en-us/wceddk5/html/wce50grfAutomaticConfigurationsFunctions.asp frame=true ). Now, the same functions should work as well under Windows XP on the tablet, but it seems a bit more tricky. Because when we add a new SSID manually through the WZC UI it will by default enable 802.1x authentication. To set the WLAN adapter to ...Show All
Visual C# How do you get VS 2003 to use Framework .NET 2.0 to compile?
How can you get VS 2003 to compile using Framework .Net 2.0 and look for .Net 2.0 when it installs I have several programers who have written code with VS 2003 and .Net 1.1. We are trying to upgrade to .Net 2.0 with VS 2003 and no one knows how to configure VS 2003 to compile and use the .Net 2.0. Thanks, John I'm confused. How does that relate to this msdn article >>>> Title: "How to run ASP.NET 1.x applications in the .net Framework 2.0." http://msdn2.microsoft.com/en-us/library/ms228038.aspx This article makes it look very easy. I was going to try this recommen ...Show All
Visual C++ why would operator=() and operator*() conflict in ref class??
I have some code that boils down to this: ref struct A { A % operator =( const A % other) { return * this ; //<<-- offending line - thinks I mean make "this" an int as defined below: } int operator *() { return _i; } int _i; }; int main( array <System::String ^> ^args) { A a, b; a = b; return 0; } So when I compile this example in VC++ Express 2005 I get the following error: : error C2440: 'return' : cannot convert from 'int' to 'A %' What is the way around this problem If I make A a non-ref type and change the '%' to ' ...Show All
.NET Development Writing data to a temp table
Hi there, I'm trying to write the contents of a DataTable to a temporary table in SQL. I create the temp with the following statement.... TableAdapter tableAdapter = new TableAdapter (); SqlCommand myCmd = new SqlCommand (_tempTableSQLCommand, tableAdapter.Connection); Then I call a method that I have set up on the Table Adapater which calls a stored proc which inserts data into the temp table... tableAdapter.InsertAssetTemp(.... Paremeter Values ....); But when I call the method, I'm getting an error that the temp table does NOT exist. I'm obvioulsy missing something which allows the table adapater quer ...Show All
Visual Studio Express Editions can't install SQL Server Express 2005
I've tried to install sql server express (final release), but the setup failed and I got the message: "An instance with the same name is already installed on this computer. To proceed with SQL Server Setup, provide a unique instance name. " any idea what this means Many thanks to you guys for the suggestions/help that you provided! Although it took me awhile to solve the puzzle so to speak, I found the answer at last and I would like to contribute this solution http://support.microsoft.com/default.aspx scid=kb;en-us;290991 to those who are having the same problem that was mentioned here ...Show All
.NET Development How can I add a please wait page while doing heavy db transactions
I have a page that the client hits the run test button and there is an intense amount of stored procedures that run - I want to be able to redirect or display an ani gif that say's please wait with a moving hour glass so they don't keep hitting the run test button and they know something is happening - I looked around the web but couldn't find any working code... Anyone that can help would be a blessing... thanks rich I know there has to be someone out there that has sample code on this - Everything I find is so complex - I want to keep it simple... Someone please help out if you have something... thanks rich ...Show All
.NET Development TypeLibImporter woes
Does anyone know why it was decided to follow the VB6 way of treating a default interface as a coclass for typelib importing. This has made our life as PIA generators very hard - especially since there's no easy way to hook into the Interop generation. Why is our life hard Well, picture this (not proper idl but I think you get the picture): interface IA : IUnknown { STDMETHOD SameAs([in]IA *other, [out, retval] VARIANT_BOOL *pVal); } interface IB : IA { ... } coclass A { [default] interface IA; } coclass B { [default] interface IB; } The typelib importer will generate the following in ...Show All
Windows Forms " WithEvents variables cannot be typed as arrays "
I tried to doing this, Public WithEvents qwe(3) As System.Windows.Forms.PictureBox but got the error message: 'WithEvents' variables cannot be typed as arrays Is there any way to get around it, because the picturebox is created real-time and the number of picturebox differs. [vb.net 2003 user] ...Show All
Visual C++ How to read a binary file?
Hi! I'm just a beginner in C++, though i had tried to learn and do some examples from books,i find it was hard to manage my project. I was trying to open a binary file but i failed. As i had mentioned, i searched through a few books but all i got was just a line of command. I'm not sure how it is supposed to work...... like after i open the binary file, should i represent the binary value with something if not, how to process the values then I'm supposed to use Visual C++ for my project, so applying C++ language will work perfectly in Visual C++ I hope someone will help me out of this problem because i don't know what should i do an ...Show All
