Quammy _OldProfile_'s Q&A profile
.NET Development Connecting to a database through a webservice
Ilya Tumanov wrote: Yes, but it makes no sense. To accomplish that you would have to purchase SQL 2000/2005 and pay CALs per device (or per CPU license). If that’s acceptable, simply get rid of Access and use much more powerful SQL you've paid for. Alternative solution is to use Web Service to talk to Access database. Create couple WEB methods to talk to access and call them from device. Something like this should do: DataSet GetAccessData(String command, …) { // Connect to Access DB here, execute command and populate data set with returned data. return dataSet; } Bool ...Show All
Visual Studio 2008 (Pre-release) Unrecognized attribute 'type'. Note that attribute names are case-sensitive.
I have built it successfully ,but run it ,it will occur some errors,error message is: "Unrecognized attribute 'type'. Note that attribute names are case-sensitive." Below is the source code, Thanks a lot !! using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; //Define a Service Contract [ServiceContract(Name = "HelloWorld")] interface HelloWorld { [OperationContract] string sayHello(string sName); } class HelloWorldImp1 : HelloWorld { #region HelloWorld Members public string sayHello(string sName) ...Show All
Visual C++ Intellisense Problem
Hello, I have yet another problem which is that Intellisense stops working. When my script reachs a certain legnth it just won't work anymore. Now it sometimes even doesn't work when I start new applications. (I am using Visual Studio 2005 June CTP). With Thanks, Gal Beniamini. Can you be more specific on what does not work Does IntelliSense fail for the whole file Or for a portion of the file after a certain statement Or for all symbols in a project Or for just some symbols everyone in the project IntelliSense was v ...Show All
.NET Development WebClient Object very slow on first request, second request fast
Hi All We are using the WebClient class to pull the text from a simple web page. The first request after starting the app takes 5 to 10 seconds to return the data, the second request takes .1 seconds. We can change the URL and the request is still fast after the first request processes. We have tried WebRequest/ WebResponse with the same results. We have also tried using a IP address, and a WINS name. As long as we do not close the App, all requests after the first request are fast, but if close the app, wait over 45 seconds, then try it again, we are back to the slow first request. It seems like .NET is building some kind of monster o ...Show All
Visual C# requiring a override method to call the overridden method
I'm trying to fiqure out how to require a override method to call the method that it overrode. for example: public class test { public test() { } public virtual void whatever() { // do something here you don't want to be done even though the class gets overridden // I know its not the way it should be done but I inherited this and have to get it to work } } public class test2 : test { public override void whatever() { // do stuff here } } // caller test2 t = new test2(); t.whatever(); // I want to get to the overriden method to the c ...Show All
SQL Server cannot create database error in sql express 2005
hi.. i have a pc that is on a domain with domain user rights and i installed a sql server express 2005.. when trying to create a new database am encountering an error: create database permission denied in database 'master' (microsoft sql server error:262) could anyone help how to go about this..am new to sql express. thanks If you're wortking with VISTA do: Go to all programs Microsoft SQL 2005 TOOLKIT Surface configuration Add new administrator Select the SQL instance (on the left) and move it to the right Then you'll have permission (sorry but I have all in s ...Show All
Windows Forms Datagridview Performance "Work around"
I thought I'd share this with others that may have found a performance issue with displaying data in Datagridviews that have a lot of columns. (I have about 100). I was finding that initially displaying the form it would take 3 or so seconds to display 10 rows of data. What I have done now is to initially make all columns that are not initially displayed to invisible and then as soon as the user clicks the grid or the scroll bar to make the other 90 or so columns visible. This seems to be displayed instantly as opposed to the 3 seconds and doesn't seem to reduce the users "experience" too much etc. I did try to run a seperate th ...Show All
Visual C++ File Open/Save As dialog box
GetOpenFileName uses a File Open/Save As dialog box that is subtly different from the one used by Visual Studio, which has "FTP Locations". Is it possible to use the bosa_sdm_Mso96 dialog box in applications built with Visual Studio Thanks, Keith MacDonald Would it be remotely possible to get access to the Office version of the file dialog By the way, I notice that it is not used in VS 2005! I have been presented with a spec to make our file dialog use all of the Explorer style dialog features but also use the preview that we had implemented in a home grown file dialog that is derived from CDialog instead of CFileDialog ...Show All
Visual C++ Help on very basic OpenMP program
Hello, I have a hello world program that uses OpenMP, and I am unable to understand it's behavior. The code is: #include <iostream> #include <omp.h> using namespace std; int main () { cout << "Max openMP threads = " << omp_get_max_threads () << endl; #pragma omp parallel { int num = omp_get_thread_num (); cout << "Hello from thread " << num << endl; } cout << endl << "Number of threads " & ...Show All
Visual C++ Pass XML File as (unsigned char %data, int length)
Hello Everyone, I have an XML File, which I read from disk...If I want to pass it to this function how should I do it... Write(unsigned char %data, int length)..... I have a little bit of idea that I have to read my XML File as stream and pass it to unsigned char %data, if someone can give me a code snippet how to do it... Thanks, Harsimrat Harsimrat wrote: Hello Everyone, I have an XML File, which I read from disk...If I want to pass it to this function how should I do it... Write(unsigned char %data, int length)..... I have a little bit of idea that I have to read my XML ...Show All
Visual Studio Express Editions How do I view full code created by form designer
I have created a simple form (only has a button) and proved that the project compiles & runs. How do I see the full code that has been created by the designer. All that I can see by default is the event code for the button. I would like to be able to see, and edit, all the code relating to my form. Cheers Paul Hi Paul, You can view the code which simply consists of parameters describing the color such as forecolor, backcolor etc in the FormName.designer.vb files BUT BUT BUT it is recommended that a user NEVER edit those files. I've only done it a few times myself.... and only when ...Show All
Visual Basic VB vs C#. How capable is VB compared to C#?
I need some clarification please. I am learning VB.NET right now and have a co-worker who has a very strong technical background and feels very strongly that learning VB is a "waste of time in all respects" compared to C#. I don't understand this point of view. Since VB is a .NET language does it not posses the same capabilities as C# Am I on the wrong track I really enjoy the VB.NET syntax and am picking it up quickly. Here's my background ( being totally honest ). I am self taught, I learned C++ back in the late 90's. From there, I moved to C# because ASP.NET is the best platform availabl ...Show All
Smart Device Development VS2005 resets the size of my WinCE GUI project window
I want my Windows CE GUI project window to be a certain size. The same size as it is on my WinCE device. Every now and then when 1. I double-click on the file in solution explorer to show the GUI designer view, or 2. click on the tab for the file, or 3. right-click in the solution explorer and choose view designer, VS2005 resizes my GUI. Is there any way of avoiding this The only available FormFactor is "Web Pad". And I cant type anything in the box. I can change the Size property but that doesn't help. How do you create custom form factors And how do you add them to the FormFactor comboBox ...Show All
Visual C# Calling a form within a folder
Hi All, I created a windows form called "MyPref" inside for a folder called "SysOpts1" and now I want to execute or call this form when I select it from the menu. Could this be done I tried the following in the click event of the menu, but I got an error. form iMyPref = new form SysOpts\MyPref(); iMyPref.show(); Any help is appreciated. TIA If the SysOpts1 folder is also in your namespace hierarchy, then it would be: SysOpts1.MyPref myForm = new SysOpts1.MyPref(); In your MyPref code behind, is it wrapped inside of a namespace decleration Also, if you click on the code behind for MyPre ...Show All
Visual Studio Team System How to get the next allowed state from the current state programmatically?
Hello, I am wanting to write some code that will get the allowed transition values (for CoreField.State) for a work item given the current state. I have tried both getting the WorkItemType and FieldDefinitions.AllowedValues, but this gives me all the AllowedValuesCollection for any state. I see there is a function, WorkItem.GetNextState(string action), but I don't have any context to what the action is, or can be. Where can I get this information Here is a concrete example for the Agile Scenario WorkItemType (assume the scenario is currently in the Active state)... WorkItemType wit = wi.Type; FieldDefinition fd = wit.Field ...Show All
