Dave Anson's Q&A profile
.NET Development new Part2 "map to the same server" error message
Hi again, Trying to start up Visual.NET for first ASP web application coding (am still a learner....) This is the error message I am being present when I select 'New Project' then ASP Application: Unable to create Web project ‘WebApplication1’. The file path ‘c:\inetpub\wwwroot\WebApplication1’ does not correspond to the URL ‘http://localhost/WebApplication1’. The two need to map to the same server location. HTTP Error 403: Access Forbidden WebApplication1 is the default name given to an application - - I can change that but it doesn't affect this. Given the hint that 'Access Forbidden' - I ...Show All
Visual Studio Express Editions I have an XML encoding problem in C# express
I have created an application for generating XML files for korean friends of mine. The end files need to be encoded iin EUC-KR, but my files seem to be encoded in utf-8, there doesn't seem to be an option to use korean encoding :( I will appreciate any help that anyone could offer. Jason D. Try File->Advance Save Options... to get options for saving the file using a different encoding. Thanks, Luke Hoban Visual C# IDE Program Manager ...Show All
SQL Server SS05 : create table from XML ?
This is probably a stretch ... ... but does SS05 provide ability to describe the DDL for a table in XML One step further would enable table creation purely based on that XML doc. Of course, I could write custom code to do this, based on my XML design. But perhaps there is some built-in ability ... There are two XML ways that are already available in SQL Server 2000's SQLXML 3.0: 1. Use the XML template files and just put the DDL into a sql:query element. Yes, I know that this is cheesy and not what you probably were expecting as an answer, but the question is why you would want to use XM ...Show All
.NET Development Remoting event
One of the form of client side registers for an event which is exposed by the server object (Singleton). Client can attach and detach to this event. Everything works fine. When the form is disposed the event is detached by the client. But ServerIdentity object keeps the reference of the disposed form and never releases it. This causes the memory leak on client. What could be the problem and how to force ServerIdentity object to release client form Thanks in advance KDV Doesn't the object go away when the default lifetime manager sweeps for unused server identities Thanks ...Show All
Visual C++ vector container with user-defined class
Hi all: I want to use the STL vector to store an array of objects which class is user-defined. LMVector is the user defined class and here it's the LMVector.h file. class LMVector { private: .... public: .... }; In another class LMRectangle, there is a field needed to store an array of LMVector. Here is the header file for LMRectangle class LMRectangle{ public: .... private: std::vector<LMVector> _vertexList; .... } This doesn't work and it will complain that LMVector is a undeclare ...Show All
Visual Basic Context Menu formatting
I am using vb.net 2003. There does not seem to be any builtin capibility to change the font or background color of a context menu. Is there a way to accomplish basic formatting of a context menu in net 2oo3. Thanks, Fred Hi, Based on my research, the menuitem did not have Font simiar properties. But I think you may try to implement the OwnerDraw of MenuItem as below. Owner-Drawing in .NET http://msdn.microsoft.com/msdnmag/issues/04/02/CuttingEdge/ If you still have any concern, please feel free to post here. Best regards, Peter Huang ...Show All
Visual Studio Express Editions Application Configuration Incorrect
Hello, This weekend I was programming a game using the Win32 platform SDK (Feb05), Glut and OpenGL. When I compiled the release edition and tried it on another computer (included all DLLs as per Dependency Walker) it failed with error 14001 "This application failed to start ... application configuration incorrect." I ended up having to dig out my old Visual Studio 6.0 CD and create a project using it to get it to run on any other machine than my own. I was using Visual C++ 2005 Express Beta 2 CTS. Is there a reason why this would happen Will it work with the new Beta 2 version that I am currently downloading ...Show All
Visual Studio 2008 (Pre-release) DLinq and null values and defaults
Is there any way to specify how DLinq handles null values - for example: [Table] public class Thing { string name; [Column] public string Name { get { return name; } set { name = value; } } } CREATE TABLE Thing ( Name NVARCHAR(120) NOT NULL CONSTRAINT DF_Thing_Name DEFAULT(N'No Name') ) ... results in an INSERT command that specifies NULL for [Name] when it would be helpful to indicate DEFAULT. Using stored procedures will handle it, but something like [Column(NullValueUpdate = NullValueUpdate.SetDefault)] would be handy... Thanks. Looking a bit further, it appears that ...Show All
Smart Device Development Activesync service provider in C#
Hi, I must create an activesync service provider in C# How Can I make it Where can i find documentation or example I use VS2005 professional. Chech the RAPI and the especialy the communication library . ...Show All
Visual Basic AnalogTVTuningSpace and MSVidCtl
I´m trying to develop a decent tv tuner/capture application (since there are no such apps, nowhere, I say) in Visual Basic 6.0. I´m using the MSVidCtl component together with the AnalogTVTuningSpace and IChannelTuneRequest object to achieve this, as described here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directx9_c/directX/htm/hostingthevideocontrolinavisualbasicform.asp and here: http://msdn.micro ...Show All
Visual Studio Help still broken
Just installed the release version of VS2005 standard. Alas, F1 help is still broken. If I position the cursor over a word (for example HANDLE) and hit F1, the following happens: 1. If MSDN is set to use local help only, it always displays the topic-not-found page, even though on the left hand side, the topic is not only present, but selected. A single click on the highlighted item displays the correct information. 2. If MSDN is set to use online help first, then pressing F1 takes up to a minute (looks like multiple redirections happening), then either displays the topic-not-found page or displays something only vaguely related to the select ...Show All
.NET Development Copy DataSet problem
I'm using the DataSet.Copy method and trying to create a whole new set of records in database based on previous one. However, by using this method, it will copy the identity column as well. As a result, this will update my existing record instead of creating a new set. What should I do to make what I want Thanks! I suppose you could copy the dataset then remove the indentity column using something like: DataSet ds = GetMyDataSet(); // Function to build dataset. ds.Tables["MyTable"].Columns.Remove("MyIdentityColumn"); ...Show All
Visual Studio Express Editions Graphics into Bitmap?!?
Hello, is it possible to draw a manipulated and transformed Graphics-object into a Bitmap to save this image as a file ! Is there any solution Thx, if anybody has an idea... Kind regards If I understand it correctly you want do draw on a bitmap and then save that bitmap: Bitmap ^bitmap = gcnew Bitmap(100, 100, PixelFormat::Format24bppRgb); Graphics ^graphics = Graphics::FromImage(bitmap); graphics->DrawEllipse(Pens::White, 0, 0, 100, 100); bitmap->Save( "c:\\test.bmp" ); ...Show All
Windows Forms Docking one form to another
New to VB.Net programming. I want to open Form2 from a button on Form1. Got this far. Form2 has no border, I want it to appear to be part of Form1, (like a frame in a web page, everything else on the page stays the same except for this Form2 overlay). I need to position Form2 before showing (I think I can do that part) but&nbs ...Show All
Visual Basic Event log files and background worker component
I am trying to use a background worker component to read the event log files for a machine, and cannot determine what type to return from the function, so that I can use the background worker dowork asynchronously. This is what I am doing that doesn't work... Public Function test(ByVal objLogs() As EventLog) As EventLogEntryCollection Dim evtEntries As EventLogEntryCollection Dim objLog As EventLog Dim objEntry As EventLogEntry For Each objLog In objLogs Debug.WriteLine(objLog.LogDisplayName & " event log") For Each objEntry In objLog.Entries If dteDate = objEntry.TimeWritten.Dat ...Show All
