Readon's Q&A profile
SQL Server Can I set Excel connection manager's data source as a variable?
I do not know the Excel file name to load in design time. Would like to pass the value to a variable in the package in run time How to do this Thanks, Guangming Finally I found the problem: The way to put the command string is not right after dtexec /SQL. If there is not ENTER and all commands in one line (as it is a dos command), everything is OK! Is it COOL! Guangming ...Show All
Visual Studio Express Editions How do I add a Real Time Clock to my Application?
I am very much a newb to VB but want to get started on an Alarm Clock program, I have viewed the first 6 videos here http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx So thats about as fars as my knowledge goes. I havent been able to find a Clock controll to add to my project, so how do I add a Real Time Clock to my project so that I can perform different functions based on what time it is Add a timer control to your form, in the toolbox under "Components", which fires at least once a second, or whenever you want your clock to update. Then you can find out the current tim ...Show All
Visual Studio MSDN Library May 2006 update is failing
I just received the MSDN library May 2006 DVD, and it detects the previous library (Jan 2006), begins to install, and then prompts for the Visual Studio 2005 DVD. I insert my Visual Studio 2005 Profesional Edition DVD, but the Library install just keeps re-prompting to insert the Visual Studio 2005 DVD. How should I complete the Library update Thanks, Jim Hi Jim, Thanks for your posts on MSDN forums. It seems like the physical problem of your VS 2005 DVD. Would you please try the disk in another DVD-rom I sincerely hope this can be of help. If anything is unclear, please don't hesi ...Show All
Visual Studio 2008 (Pre-release) "yield enumerate"...
(Slightly off-topic, but it at least deals with enumerations.) Lately, I've found myself using the following pattern: public IEnumerable<T> Foo(IEnumerable<T> values, IEnumerable<T> moreValues) { foreach (T t in values) { yield return t; } foreach (T t in moreValues) { yield return t; } // more yielding } For example, if I want to maintain the sanctity of values, but catenate another set of values (checksums, e ...Show All
SQL Server visual studio running too slow
Hi friends after working visual studio (on my report model project) few minutes it runs too slow. i mean clicking on entities ,attributes takes ages to finish. I opened task manager i see "devenv.exe" is taking more than 800,000 k !! am using sql server 2005 standard edition. have you seen similar problem. Thanks for your help. I've seen similar issues. Not quite as bad though. I have a solution that contains 6 projects, including a report services project. When ever that project is loaded, especially if I've been using the report designer, VS seems more sluggish and other parts of visual studio (specifically the winforms des ...Show All
Windows Forms Loading User Controls using Command Patterns
Hi, I would like to know if I can load a user control using command patterns. Also I would like to keep a list of control loaded to use them with a "Forward" & "Back" button. Please I need some sample code! Thanks, Command Design Pattern. see: http://www.dofactory.com/Patterns/PatternCommand.aspx ...Show All
Smart Device Development how to record sound in Pocket PC with win32 API?
hi all, does anyone have ideas how to record sound in PDA and save it as a wave file by using Win32 API thanks a lot Please see this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/WaveInOut.asp I'm assuming you're using managed code (as in other case you would post to native C++ dedicated forum, right ), you can also use convenient wrapper from OpenNetcf.org. ...Show All
Visual Basic Notify Icon not responding to right clicks in my windows service.
I created a windows service using the Walkthough found on msdn. It works fine, but I have two problems. 1. I created a NotifyIcon, which shows up in the System Tray fine, and if I hover over it, it shows the name of my service, but it doesn't seem to respond to right clicks. I have a contextmenustrip that is never shown. What do I need to do to make the notifyIcon respond to right clicks and pop up the menu 2. The walkthrough creates a service that installs as a service that logs in as NTAUTHORITY\LocalService. I have to manually change this to Local System Account (Allow service to interact with desktop) before the notifyIcon will sho ...Show All
Visual Studio 2008 (Pre-release) HeaderedContentControl
Can anyone point me to a sample, blog or article that details how to correctly use all the features of a HeaderedContentControl Things like the HeaderTemplate, HeaderTemplateSelector, ContentPresenter, etc. Thanks John Try: http://msdn2.microsoft.com/en-us/library/ms771736(VS.85).aspx Regards, Hermann Rosch ...Show All
SQL Server Where is the SQL Server 2005 Express Manager Sep CTP?
Microsoft has posted a September CTP of SQL Server 2005 Express, details at http://www.microsoft.com/downloads/details.aspx familyid=6E4AAC3A-9D85-4734-B1FD-318FB83B0D29&displaylang=en . But no September version of Express Manager can be found, and we are unable to install the June CTP of Express Manager because of an installation problem that it reports: "This computer must have at least Windows 200 SP4 and the user must have administrator privleges in order to continue. Also, you must first install the SMO Components and the .NET Framework version 2.0." With regard to the above message, the only outstanding possibility is that we've ...Show All
Software Development for Windows Vista Custom Service and long running Workflow
I built a custom Service to listen to MessageQueue Messages: using System.Workflow.Runtime.Messaging; using System.Workflow.ComponentModel; using System; using System.Messaging; using Microsoft.SharePoint; using Microsoft.SharePoint.WebControls; using Microsoft.SharePoint.WebPartPages; namespace connvision.Sharepoint... { public class AskSharepointService : IAskSharepoint { string _SharepointSite; System.Collections.Generic.Dictionary<string, Guid> KeyToProcess = new System.Collections.Generic.Dictionary<string, Guid>(); public string SharepointSite { get { return _SharepointSite; } set { _SharepointSi ...Show All
.NET Development localisation query
Hi. I was just sitting down and had some ideas in general for my application and thinking in general in the future what "architecture" or features would be a standard thing in my application. I am just wondering how this would work: Lets say that I am going to implement localisation in my application (english, spanish, italian, german) Now, since my application by default is in english, anything displayed on the UI (for example, the status, error messages given by the application itself - not the framework) I would like it to be localised to the language chosen by the user. I am wonderin ...Show All
.NET Development .NET Remoting Bug - fixed in 1.0 SP3?
All, Can anyone tell me whether the bug mentioned at http://support.microsoft.com/default.aspx scid=kb;en-us;322975 was fixed in the .NET Framework 1.0 SP3 Thanks Matthew ...Show All
Visual C++ Program database manager mismatch
I have been working with vc++ express for about a month, and all my projects were fine but now whenever I compile anythingi get the following error: fatal error C1902: Program database manager mismatch; please check your installation I searched for a solution on Google and MSDN but neither showed anything i could make sense of. Had a very similar problem after fooling around trying to get a parallel make working (I couldn't). I hadn't touched any of the visual studio files, and was working exclusively in my c:\temp directory so I don't know quite what happened..! Did a search and found mspdb80.dll in ...Show All
Visual C# Passing arrays from unmanaged DLL code to c#
Hi, I pass my dll the filename (string) to an image and it returns a list of points which are detected faces on that image. What I have done is pass a parameter from c# which is a pointer to an empty array. The dll code then allocates the array for the list of points and returns the size of the array. I then copy the array for use in c#. This does work - but is it the right way to do this (seems like a bit of a hack) If I wanted to pass a list of structs (instead of ints) back from the dll how would I do this see code below Thanks Ashwin ashwinv wrote: This does work - but is it the right way to do this (s ...Show All
