Sam Roth's Q&A profile
Visual Basic Finding physical path of mapped drive
I need to implement this into a web application. i kow it is possible vis console application but that doesn't give client side information. Is it possible to get Client side mapped drive's phsyical path The most you'll get from that is the share path. ie \\computer\path\... I'm not sure if there's a way for physical drive path of a remote machine unless you install a program to report it back. I'm not sure you could do it web based... beyond what i know though sorry. Dustin. ...Show All
Windows Forms Webservice and VB.NET development to production
I have developed a Webservice which is on my pc (localhost) while I develop my VB.Net application which gets its information from the Webservice I have lots of code like: Dim pxy As localhost.GCG pxy = New localhost.GCG pxy.ClientIDValue = New localhost.ClientID() what I would like to do is somehow set an alias or declare in one module the localhost.GCG so when&nbs ...Show All
Visual Basic my.application.log
I have a Data Access Layer dll file to talk to datatabase, I am trying to log data change action in this DAL assembly using My.Application.Log, can I just add a app.config file to DAL to make it happen I tried, but not work. Since the post above, I am trying to use the exe assembly app.config to log database changes. it works, but I have 3 questions, 1. can i use filter to tell if log entry type is INFORMATION, then go to one custom file log, if it is ERROR, then go to another custom file log 2. Is it possible to have a centralized file log (ie, file log in a network share) the problem I am having now is when you have more th ...Show All
Visual C++ Abrupt CString behaviour
I have successfully compiled existing wizard based application VC++ 6.0 project to VC++ 8.0 project [VS 2005]. I am using a custom file dialog by inherting it with CFileDialog and adding an extra checkbox below the text box. The problem arises with all the CString variables getting initialized with "Local disk(D:)" and it does not get depleted even if i use Empty() member function or passing BLANK (_T("")) in the constructor itself. And somewhere else in the application it gives me an "Memory could not be read" runtime exception. This run time exception does not arise if i disallow the filling of the Look in combo box in the custom ...Show All
Visual Studio How to support Exception Assistant
I want to support an exception assistant to COBOL Exceptions. How can it support It seems that it has realized by putting an XML file on the ExceptionAssistantContent folder of an IDE folder about the standard exception for Visual Studio. Best Regards. Dear Lufeng If the exception object of COBOL is a similar form to $exception, we can support "View Detail" I want you to teach details what form a similar form is. Best Regards. Shinya Watanabe ...Show All
Visual C# Warning MSB3042 : How To suppress?
Our company writes a lot of tests (test driven environment) In 2.0 we are now receiving the following warnings for existing code Warning 8 A namespace or class definition was found within a conditional compilation directive in the file "TestForm.cs". This may lead to an incorrect choice for the manifest resource name for resource "GUI\Grid\Internal\Testing\TestForm.resx". ZArchitecture C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.CSharp.targets : warning MSB3042: A namespace or class definition was found within a conditional compilation directive in the file "TestForm.cs&quo ...Show All
Smart Device Development problem in event handlingin vc++
hi frnds, i m handling an event on a button and i have other controls on my form also. So when the event on the button is fired , the other controls are getting locked and the event fired on any other button is actually being fired after the first event is completed. So what should my approach be wat should i use Any links will be very helpful. Thanx in advance, .netguy I guess this is the desired behaviour of the windows message pump which will queue all the notification for other controls. What event in particular are you referring to here. Can You tell me exactly what you are trying to achie ...Show All
SQL Server Am I missing something when trying to connect via ASP.NET 2.0??
I am at my wit's end trying to set up a simple test to retrieve some records from with ASP.NET and C#. I'm using the Express Edition on my development laptop. Whenever I try to run my application, I get the following error: ERROR: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) I have researched this problem, and done everything I can find online to fix it but no avail. I ...Show All
Visual C# How do I tie a database into my C# application?
We are creating a data driven C# application and we would like to use the power and functionality (normalized database, stored procs, etc..) of SQL Server Express, but the data that is held in the database is in essence going to make up a large portion of the source code to our application. Is there a way to embed or compile the database into the application so that the end user that installs the application from a CD will not be able to view the data If this cannot be done via SQL Server Express is there another tool that can be used to reach the same goal of having a database accessible by our program but not viewable to the end ...Show All
Visual Basic Retrieving data
Hi, i'm trying to read data from a dataset. I created a dataset with one table. Now I want to store the data off the first field in the first record to a variabel off integer type. Can anywhone help me.Thanks http://msdn.microsoft.com/msdnmag/issues/02/07/AdvancedBasics/ This article shows you how you can refer to items in a dataset. ...Show All
SQL Server Calling code outside of SQL
Hello again, hope this post is not offensive to the newsgroup. I am just wondering what is an efficient method of invoking external code from SQL server. I do not want to load assemblies in SQL, I want to run something outside. So far options considered: 1. Windows Service - loop and check for a specified condition in database. 2. Web Service Listener - use SQL CLR to call the web service. 3. Queueing mechanism. Use MSMQ and widows service (similar 1) [probably reliant on CLR to send messages]. 4. Service Broker - similar to 3. but message handling is SQL internal and in transaction. All of the above are listeners in a way, could there be so ...Show All
Visual Studio 2008 (Pre-release) Problem Installing WinFX Components Beta2 on Compaq TC1000 TabletPC
When running winfxsetup on my TC1000 (Transmeta Processor), it starts normal, but then the extraction-progress-dialog stop at 75%, the setup-process is running and consuming cpu-time, but nothing happens (I waited 6 hours, before giving up). What am I to do Thanks for your reply, Heiko Quick update: we have had trouble accessing the shared dumps. We will be getting back to you soon. Ivo ...Show All
.NET Development int.Parse oddity
Hi all: I am trying to parse numeric input a user provides on a web site. I am having a problem with dollar amounts. The following command results in an OverflowException: int.Parse("77,500.50", NumberStyles.Currency, CultureInfo.CurrentCulture) but all of the following commands do not: int.Parse("77,500.00", NumberStyles.Currency, CultureInfo.CurrentCulture) int.Parse("77,50050", NumberStyles.Currency, CultureInfo.CurrentCulture) decimal.Parse("77,500.50", NumberStyles.Currency, CultureInfo.CurrentCulture) Note: the current culture is "en-US". I understand that the integ ...Show All
Visual Basic Returning reference not in prototype
I've got code similar to the below (simplified of course). The goal of this function is to prevent the use of if/elseif/else all over the code. How can I have the below code return the approprate object by refrence, rather than by value. It seems as is, I get by value. Stacking them all in the prototype isn't really an option since there will be many potential objects. Could you elaborate a bit on what you are trying to do here - the code above looks a bit suspicious (turn on Option Strict and the compiler will tell you what it doesn't like) Best regards, Johan Stenberg ...Show All
Software Development for Windows Vista Possible Start Menu GUI Bug
After a tough time installing Windows Vista, I came to install some third party applications. After installation, as usual the menu items appear in the programs list(classic view). Now this just maybe me, but isnt there a way to automatically organise the list When I right clicked, and chose "Sort By Name" it did so, but at the same time, added about half an inch onto the width of the start menu. Thanks for testing out Windows Vista. Please use the "How to report a bug" link on the desktop to report problems you're having with Windows Vista. This is a software development forum and is not equipped for bug reporting. ...Show All
