WillyNT's Q&A profile
Visual Basic How I can Start/Stop Sql Server 2005 Express Programatically??
How I can Start/Stop Sql Server 2005 Express Programatically form inside my Visual basic program Thank you all If you mean starting & stopping the SQL Server Express service, you should add a reference to System.ServiceProcess.dll and do the following Dim controller as New System.ServiceProcess.ServiceController("MSSQL$SQLEXPRESS") 'stop the service controller.Stop() 'start the service controller.Start() Sven ...Show All
Visual C++ relative path
hi! how can i specify a relative path in vc++ 2003 i have a program (.exe) in some path. this program needs to read a txt file in the same path, but i don't want to specify the absolute path(ie, c:\dir1\dir2\text.txt), i want specify just the file name (ie, text.txt). anybody can help me thanks, marcelo Use GetModuleFileName to retrieve the name and full path of your application. Than you can use ..\..\ for example to get 2 dirs up. ...Show All
Smart Device Development TypeLoadException + System.Web.Services.Protocols
Hi, i'm trying to develop a simple web service application for my pocket pc... the appilication works fine when ran from the pc - cept when i try and run it from the mobile device i get the following error: "SmartDeviceApplication4.exe TypeLoadException Could not load type System.Web.Services.Protocols.SoapHttpClientProtocol from assembly System.Web.Services, Version-1.0.5000.0, Culture=neutral PublicKeyToken=B03f5f7f11d50a3a Application::Run+0xf Form1::Main+0xa" Now i've tried updating the cf with various downloads from ms, sp3 and cf2.0 etc etc But i just cant get past this problem: using System; using System.Drawing; using ...Show All
.NET Development Recreating Custom Entity Classes in Web Services
Hi Guys/Gals, Currently, I am facing some problems in recreating my Custom Entities after passing them out of my web services boundary. In my application, I have developed custom classes to represent entities in my business domain and when I exposed them as parameters in web services methods and have consuming ASP.NET projects access them via "Add Web Reference" in Visual Studio, the classes that were generated by the proxy on the other side are not my custom entities. I would like the ASP.NET application to be able to use my Custom Entity classes. I was wondering if anyone of you know how I can tweak/solve this problem co ...Show All
.NET Development How do i get the namevaluecollection from the web.config?
Hi My web.config file hase the following information. I would like to reterive the "membership" section as a namevaluecollection . <membership defaultProvider="MyCustomMembershipProvider"> <providers> <add name="MyCustomMembershipProvider" type="MyCustomMembershipProvider" requiresQuestionAndAnswer="true" enablePasswordRetrieval="true" enablePasswordReset="true" applicationName="CustomMembershipApplication" requiresUniqueEmail="true" passwordFormat="Encrypted" maxInvalidPasswordAttempts="3" passwordA ...Show All
Windows Forms Windows 2000 W2K does not work with clickone
On XP clickonce works. However on W2K not: I get file download box with: File download Some files can harm your computer. If the file information below looks suspicious, or you do not fully trust the source, do not open or save this file. When I press Open or Save it asks which program to use. Please advice. ...Show All
Visual Studio Team System Parellel Web Test Requests
It seems the way the WebTest::GetRequestEnumerator is structured, you cannot have a single instance of a test execute multiple WebTestRequests in parallel. In my case, I have a client app that executes several web service requests in parallel. Is there a way to more accurately simulate this behavior from a single WebTest I should note that you can't easily create web service requests (WebTestRequest with StringHttpBody) as dependent requests in the web test editor. You do have complete control over the requests within a coded web test. Josh ...Show All
Visual Studio Express Editions app.config problem
hello to everyone I am running windows based program compiled with Express Edition. I have User name and Password that application run OK and connect to remote computer everything is OK I Store these values in Application Settings all is fine… But when I run the application from Windows schedule IT IS CREATE NEW application setting WHICH are EMPTY in first start…. HOW to prevent that I want the application to run with same values stored in first one 10x in advance val use the registry... and with the scheduler make ...Show All
Visual Studio 2008 (Pre-release) ObjectSpaces
Is it true that ObjectSpaces are repleced LINQ Do they still have a plan to release with WinFS Thanks. ObjectSpaces was pulled out of .NET framework almost two years ago. DLinq is now essentially doing object-relational mapping that was once envisioned with ObjectSpaces - though in a much better way due to LINQ. Dinesh Kulkarni (Formerly ObjectSpaces Program Manager, now DLinq Program Manager :-) ) ...Show All
Visual C++ Mixing Templates and Generics
I think I've raised this questions a couple of times and the first time some three years ago - and have never got a real answer. Why does the language disallow mixing templates and generics. What's wrong with: template < typename T > value struct outer { generic < typename U > void foo(); }; or generic < typename T > ref struct outer { template < typename U > void foo(); }; And in case you wonder, yes I really wrote some code which exactly does that and I don't think it's hard to think of examples. -hg Jeff Peil wrote: Th ...Show All
Visual Basic Drawing Lines on a form
Ok I've given up trying to draw on a user control ! that seems a right mess seems very buggy to me! So i've transferred my code to drawing on a form surface and it all works ok But!! i have to do it twice for it to work I single step thru my code and can actually see the lines being draw on a Black surface then right at the end the form is repainted with its background colour and all my lines vanish! I've tried re-ordering my code around , setting background colour before doing the drawing etc but nothing seems to work. I am probably missing something obvious so if anyone knows what i'm not understand i would appreciate being enlightened ...Show All
Windows Forms Searching files in step-by-step mode
Hello everybody, I would like to get files from big directories. In that context, if the search takes too long (i.e. remote search), I would like to be able to interrupt it (I'am a little bit afraid that Directory.GetFiles() takes too long before returning control to my code...) When I was working with the Win32 API and MFC, I used some FindFirstFile/FindNextFile loop that I could stop on user action. I would like to know if the .NET class library provides such a solution. Any hint Is there a way to "kill" the execution of a method like "Directory.GetFiles()" Thanks. Do the file search ...Show All
Visual C# VS 8 Performance makes it unuseable
Hi, We have converted a large c# solution with 12 projects and about 60 Mb of code from VS7 to VS8 and find that working in the IDE is impossibly slow. We are running on a P4 3.2 Ghz 1 Mb RAM with Windows XP SP2 (clean install). It seems slow in all areas of development. The only area where perfomance is as good or better is in running the release code. So far it's a major backwards step when compared to VS 7. Is anyone else experiencing this or does anyone have any advice on how to make developing large projects in the IDE at least as efficient as it was in VS 7 Regards Steve Crabb Hi, Yes, this ...Show All
Windows Forms Show Error provider on error in row
I have a datagrid, I want to show that same error icon (for when you don't set a non null column) when someone either adds or edits a row. So that it validates the row and if it's bad will show the Icon. I want a tooltip on the icon to show what's wrong. I want to get a summory of the errors on button click. Is there a&nbs ...Show All
Visual Basic Formatting Excel using ASP VB Script
I am creating a .csv file using ASP. For one column ,I am setting the datatype as NUMBER and no of decimals as 2. Yet when the file is created values like 200.00 and 1.00 get displayed as 200 and 1. Values like 1.11 or 20.12 get displayed correctly. The column datatype becomes GENERAL. I dont want the decimal zeros to be chopped off. Any help would be appreciated. Thanks -T There is a forum for Office questions. However, what i do when i get stuck writing vba macros, is open excel(or whatever office app is the problem). Open the VB editor, and hit record button. I do what i need done (IE, set the cell formatting to ...Show All
