DQM's Q&A profile
Visual C++ Autogenerated copy constructors and equals operators
Hi everyone, Anyone know how to inhibit the compiler's autogeneration of copy constructors and equals operators for classes other than defining your own I have a template queue class for which cloning is not really a valid operation, and as such some of it's nested types are not suitable for auto-generated copy constructors/operators. Because of this, when I compile some code that uses the outer template class, I get compiler errors such as: error C2678: binary '=' : no operator found which takes a left-hand operand of type 'volatile T<itemtype>::NestedType' (or there is no acceptable conversion) When I double-click on the error, the editor simply goes to the end of the class declaration that has declared a member o ...Show All
Visual Studio 2008 (Pre-release) Timeout in call context
Hi, Is it possible to set a timeout for a method call My default timeout is 10min, but for a specifiq method call I want to set to 1min...Does anybody know if is possible and how Regards, Alexnaldo Santos Short answer is probably to set the SendTimeout on the binding, but see this http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=876841&SiteID=1 for more details on timeouts. ...Show All
Visual C++ Problem with "PlaySound" function ????? -platform SDK-
i am using the PlaySound function -Platform SDK: Windows Multimedia- to play .wav files, the problem is i need to know when this function finish playing the sound file and F.Y.I. when (fdwSound) parameter is set to SND_ASYNC "asynchronously", the function return immediately after beginning the sound. also when (fdwSound) parameter is set to SND_SYNC "Synchronous", the function wait till it end the file playing and then return i want to know : 1 - when the function finished playing the file if the (fdwSound)param. is SND_ASYNC 2 - OR how can i stop playing the file if the (fdwSound)param. is SND_SYNC thnx alot 4 ur time and concern !! Hi, I think you must calculate the time of your wave file to get when ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you draw text?
Since the XNA documentation is lousy, I'm gonna ask here. How do you create text in XNA I want to use it for debugging purposes :( I tried using BitmapFont myself, but even though I copied all the code correctly from the example into my program, it tells me it cannot find the font. I included the .xml file and the .png file in the project. Could somebody tell me a detailed explanation of everything I need for the font to work correctly I need to know what I have to include where, but I think the code is fine. ...Show All
Visual Studio Express Editions How to take the Value from Database
Hi, I am a beginner of C# and a beginner of Database system. I am studying by using VS and SQLServer 2005 free of charge.But it's difficult for me to learn many things.I am stumbling in the method of obtaining the value from a data base. Please see the following... ---- SQL Server2005 Express Table: Daily ---- Create Procedure GetLastID: Return (SELECT MAX(ID) FROM Daily) ---- C# Express ---- int iCode; SqlCommand sqlCom = new SqlCommand("GetLastID", cn); sqlCom.CommandType = CommandType.StoredProcedure; iCode = sqlCom.ExecuteNonQuery(); MessageBox.Show(iCode.ToString()); ...and the result is always Minus One. Here, will it be a place in which it ...Show All
Visual Studio Tools for Office Outlook Appointment Schedule
Hello, this is my first post here. I am trying to create a custom appointment scheduling windows application using VB.net that is setup like the appointment scheduling in outlook. Is there a control that I can use that will help me, or can anyone offer me any advice as to how to achieve this Basically, the main aspect of the outlook appointment scheduler I can't seem to figure out how to set up is getting the day view like the one in outlook. Any help would be greatly appreciated. Thanks in advance for any help which you can provide me. Dynamic_Array, If the appointment scheduling application will interface with outlook calendars, then I would strongly (strongly) urge you to create the application as an ...Show All
Visual C++ mysterious relinking
Environment: In MSVC IDE 8.0, in a project that is not using .NET (but using MFC). I have a solution with a few different vcproj in it. If I hit F7, then they all build and link just fine. If I hit F7 again immediately, then one of the projects relinks. In fact, I can hit F7 repeatedly, and only this one project keeps relinking. Is there any way to get a "noisy compile", where I could get detailed info on what dependancies the IDE is looking at to decide a project is out of date If I could figure out which file is triggering it, I could probably figure out why. That's usually caused by either some outside application modifying / accessing some of the intermediate files. The most like ...Show All
Software Development for Windows Vista Problem calling web service with more than 1 Windows Workflow at a time
I have a Web service call that is made to invoke the Windows Workflow from a Windows Service running on a server. If I run 1 Workflow at a time, it's fine, but when two are processed within a short period of time, it gives me the error objProxy_manageWorkflow ERROR: System.ArgumentException: There was an error during asynchronous processing. Unique state object is required for multiple asynchronous simultaneous operations to be outstanding. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'System.Object' Key being added: 'System.Object' at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value) at System.Collections. ...Show All
Windows Forms executing SQL query in C#
hi, suppose we have some text boxes already binded with BindingNavigator how to execute an SQL query using the code so the binded data can be specified with this SQL statement using C#. Just say a textbox (txtMyID) is bind to a database filed called "MyID". So you can write UPDATE SQL like this string SQL = "UPDATE MyTable SET SomeField = 'Something' WHERE MyID = '"+ txtMyID.Text + "'" I don’t know is this the thing you are asking. But hope this will help you ...Show All
Visual Studio Express Editions Filter to form2
I am brand new to VB Express 2005 and only just getting starting to understand it. Here is my problem. I have two forms connected to a SQL Express database within the project. Table 1 and Form 1 lists the customers Table 2 and Form 2 Lists the email addresses and passwords for each account 1 customer could have up to 30 email addresses. I can get the customers to show on Form1 and all the emails and passwords to show on Form2 with no problem. I can even add a button that opens Form2. What I am trying to do is open form2 and only shows the data that relates to the selected customer. It’s probably very simple but I am a beginner after all ...Show All
SQL Server Server mem usage
Hello. I am using a SQL Server 2005 devenv and each time I open my ssis package, the server mem usage jumps up to almost 400mb ram. On opening, tries to validate each data flow task and that takes forever, I have delayed validation however still takes time to load. I am currently using terminal services to access visual studio and the project has two ssis packages that myself and another developer are working on, could this have something to do with this In saying this, everything worked perfectly a week ago, now its extremely frustrating. Anyone with feedback would be greatly appreciated. Cheers If you do not want the package to validate when it opens, set the Work Offline option on the SSIS menu, before ...Show All
Visual Studio accessing textbox value in expressions
Can I access a textbox value from another textbox in order to apply a function to it If so how is this done ...Show All
Visual C++ How to place a image file(BMp) into clipboard???
Hi to all, I want to gather a image from a file and place that image into the clipboard. and i have to do this in win32 with out using MFC. could any one help me in this regard. Thanks in advance. From Gopinath MV ...Show All
Visual Studio 2008 (Pre-release) Little help plz
Hi i have the following code taken from a tutorial. Now i wish to return a string called returnString but it won't compile because the string is being accessed from another class. So how do i return the string Basically i wish my service to access objects from the application hosting the service. Thanks. using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; namespace Messenger { public class ClientService { ServiceHost serviceHost; String returnString = "String I want to return"; public ClientService() { } public void startService() { Uri baseUri = new Uri(" http://localhost:1234/hello "); serviceHost = new ServiceH ...Show All
Visual C# Could not load file or assembly … The parameter is incorrect … HRESULT: 0x80070057 (E_INVALIDARG)
I've just had my machine upgraded at work. We can't see anything that's changed, except now when I try to build the website project I'm working on (in Visual Studio 2005), I get an error: Could not load file or assembly 'uSwitch.Web.UI.Lego, Version=1.0.2405.17351, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) The assembly name is the main assembly I'm working on and the version number is the current version created by Visual Studio's autoincrement. The file has correctly been copied to the web project's bin folder and I can open it up in Lutz Roeder's .Net Reflector and see everything I'd expect to see, including recent changes to ...Show All
