Pilot_cir's Q&A profile
Visual Studio Virtual directory creation
Hi everyone, To create a virtual directory, I right click on the *wdproj file in my solution and then property pages and check Create IIS virtual directory... and assing a name to i, which works fine when I build the solution. But when I check the ASP.net version of the virtual directory on IIS the version is 1.1. is there any way to code this in the *.wdproj to check if a virtual directory exists if not it will create a new virtual directory with 2.0 version Any suggestions, chris doloriert I have found that the MSBuild Community Tasks works well. You can also look at there source code and see how to build your own customs tasks that can be called from msbuild. You do not need to worry about run ...Show All
SQL Server OK to use one stored procedure for inserts and updates?
I have seen a couple examples where the person used ONE stored procedure (call it SaveOrder ) was used for both Inserts and Updates. This would be opposed to having a InsertOrder and UpdateOrder . I'm assuming there was some branching code in there to determine whether the record already existed or not. My question is this: Is this a good practice It seems like it might save some duplicate coding. Just looking for some opinions- Thanks, Jim Hi, I would alway prefer a more granular solution rather than a monolithic approach. Otherwise procedure could get (depending on your code) hard to read and debug. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Commerce Server Biztalk 2006 / CS 2007 monitoring issues
Hi All, Before I rebuild our production Biztalk Server some of my developer colleagues suggested posting here. We have a new impementation of CS07 with Biztalk06 providing the integration with 3rd party ERP systems. Builds were done on staging and on live including all Biztalk components, with the same architecture (seperate Biztalk and SQL05 servers). Basically everything works apart from the live BAM portal, which we now want to use to monitor the behaviour of our CS integration. The staging BAM portal, configured in the exact same way (just on a different domain/network) works fine. I've spent a couple of days on this now, and from the lack of similar issues posted on the web/newsgroups, I think I may be the victim of a dodgy b ...Show All
Visual Basic What's the difference
Ok folks, so I've got a program that runs code that has a FOTRAN dll that (thank god) I finally have working, for the most part. At least it does when I pass it the path/name of a file that I've created using notepad. Buuuut, that's not gonna cut it when it comes down to it. What I've done is created a GUI that creates an input file for FORTRAN and all it does is write a line of text for each input in FORTRAN. But when this VB written file,written using streamwriter or FileSystem.AppendText (I wondered if there might be a problem with the streamwriter making hidden characters but no), is passed to my FORTRAN dll and the methods native to the FORTRAN code attempt to consume the data, I run into an interesting problem ...Show All
Windows Forms Removing the selection column in DataGrid
This should be easy, but I could not, for the life of me, found out how to remove the selection column. This is the left-most column of the grid where user normally click to select the entire row. Any quick way to do this Cheers, Victor I misunderstood what you were wanting at first. but that column is very easy to remove, dataGridView1.RowHeadersVisible=false; ...Show All
SQL Server Selecting value from latest date
Hello, I really have a problem as to how to get the latest value of a certain data. The table is name stockpricetable in which these table would save the price effectivity of a certain stock. So it is possible to have same stock name with different effectivity date and different price. So how am i able to get the latest price of a specific stock code Thanks. pls help me. Hi, to get the latest data / the last inserted rows you will need a column / attribute that stores this information to query for, otherwise you won’t be able to get the latest, as SQL Server does not have a clue without having the datetime information what is the latest. HTH, jens K. Suessmeyer. --- http://www.sqlserver2005. ...Show All
Windows Forms Setting the mouse cursor to be different on the system settings
I am currently trying to develop a software application that will change the way the mouse cursor behaves on the user's computer. I know the code required to change the mouse pointer when it is for example hovering over a component in the C# form but what I am trying to do is alter the mouse cursor that is used by default on the system as a whole. I am using System.Runtime.InteropServices; already to change the double click speed and mouse speed, is there a similar way I can change the mouse pointer Grateful for any help or suggestions. You can set the cursor for any given form in your application. It's not wise to change the system cursor as this is a user preference: you can only assume the user has expl ...Show All
Smart Device Development Built-in memory access in a MFC Smart Device App (dialog based)
Hi, I want to know how to get correctly the handler for access the built-in memory of a Pocket PC. I was trying this code in Visual Studio 2005 with C++ using MFC, Windows CE and Pocket PC 5.0 SDK: WCHAR szBuffer[255]; wcscpy(szBuffer, L" \\StoreMgr\\ "); wcscat(szBuffer, L"DSK1:"); HANDLE auxFile = CreateFile(szBuffer, GENERIC_WRITE|GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); I dont know if I am using the path and the name of the drive correctly because Im getting the next GetLastError message in execution time: The device is not accessable. Thanks for your time and help. Thanks Vikas Taneja for take some of your time on answer me . I wa strying to get a handler to th ...Show All
Visual Basic Capturing a section of the screen.
I am trying to make a simple personal program and cannot figure out how to capture a section of the screen. I want it to work like prt scr does except it captures a specified rectangle instead of the entire screen. I am thinking I have to use Drawing.Graphics but am not sure. Thank you. Troy L I have run into another problem. My program works fine. I have 16 buttons and each time a button is clicked it creates a file of size (256, 256) and of format bmp. I created a function that will place all the created files (16 total) into a new file to create a final image file of size (1024, 1024). I was trying to figure out a way to make the final image without create 16 seperate images first. I cannot figure it out though. This is what I hav ...Show All
Visual C# Windows Service Won't Start Automatically
I created a Windows Service application in C#. It is installed as service that runs in the LocalSystem account. The start type is set to automatic. When I reboot my machine and bring up the services manager, it shows that the service is "Starting..." After a while, when I refresh the services manager the service reverts from "Starting..." to blank. I have the option to start the service manually. When I do, it suceeds and changes to "Started". Any idea why my service won't start automatically Could it be that the startup times out if it takes too long to automatically start a service I tried having my computer reboot if my service fails to start (through the properties, recovery settings) ...Show All
Visual C++ some reference for me how to use the funcituons in the com of Microsoft Visio Viewer 11.0 Type Library (Ver 1.1)?
I am trying to use Microsoft Visio Viewer 11.0 Type Library (Ver 1.1) to support Visio image format, I hope that one expert can give me some reference for me how to use the funcituons in the com of Microsoft Visio Viewer 11.0 Type Library (Ver 1.1). I appreciate your help. Hello Re: some reference for me how to use the funcituons in the com of Microsoft Visio Viewer 11.0 Type Library (Ver 1.1) Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Than ...Show All
Visual Basic Tab Control Question
I am very new at this, so my method may be very odd. Anyways, I have a tab control that occupies the main portion of my program, with various icons on the left to open different aspects of the program. Each item on the left creates a new tabpage in the tab control. The actual design of the tab pages is held in seperate vb forms and I add the tab pages to the maintabcontrol during run time. I did this because I may untimately have 20+ tab pages with different aspects of the program, and designing them all on the main tab control was just a mess to work with. When someone clicks the close button it disposes the tab page they are currently working in, but then I cannot get it to recreate the tab page (if the user reopens that section of the p ...Show All
Visual FoxPro printing
how to print a perticular area of asp .net page This is a forum for Visual FoxPro -related questions. You should ask this question in an ASP .NET forum Try here: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=39&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX SDK download corrupt each and every download
I've tried to download the DirectX SDK about half a dozen times, cleaning the explorer cache, trying a different computer, trying both the October and August versions, and after bogging down my [2.4GHz Pentium 512MB RAM] computer for a few long minutes, the extraction failed time after time after time due to CRC error in zip file or corrupt cab file. Any clue what's the problem OK, here's the damn thing - I did not use a download accelerator, I downloaded three different versions (April, August, October), and using two different computers connected via different ISPs, and got CRC error in self extraction stage. Rereading the download page, I noticed a warning regarding possible clash between th ...Show All
SQL Server Not able to receive the mails
Hi, I have an application which has to send mails based on some conditions using sql server notification services. The problem i am facing is that i am not receiving the mails even though the delivery status description is Delivery Succeeded. Could you tell me where exactly the problem lies. Thanks in advance. Are you using the local SMTP service on the box Or are you using an Exchange Server somewhere else on the network If the former, check the c:\inetpub\mailroot folders to see if your messages are stuck in there. If they are, check to ensure that the SMTP service is running on the local box. Are you using 2000 or 2005 HTH... Joe ...Show All
