builtsoftware's Q&A profile
.NET Development how to associate a filetype with a windows service
suppose i have a custom file format with an extension. how do i associate that file extension with a windows service. suppose when i click on the file with particular extension '.dmz', the particular windows service is automatically invoked. should i use filesystem watcher component. Hi, Sure. Since you have your own filetype, you can associate the type with another program that you would need to write. This is a simple proxy that would then communicate with the Windows Service. You would not use the File System Watcher component - that's for monitoring when files get created/modified for eg. Cheers ...Show All
Visual Studio 2008 (Pre-release) Inheriting default styles.
I have a templated control: class MyControl: Control { ... } I have a control that inherits from it: class MySpecializedControl: MyControl { ... } I have a style for the base control in an application-scope resource dictionary: < Style TargetType = " {x:Type local:MyControl} " > ... </ Style > The style is applied successfully to MyControl, but isn't applied to MySpecializedControl. I know I can provide an explicit style with a "BasedOn" attribute for MySpecialized control. I can understand why that might be the case (although the behaviour is a bit disappointing). But builtin controls don't suffer from this limitation. A class that derives from Button gets the syle for Button. How wou ...Show All
Visual Studio 2008 (Pre-release) multiple animations within one EventTrigger
hi, how can i realize animations on multiple rectangles within the same event. I want to define this within a style in my XAML. My idea is, if a certain event takes place, multiple animations on different rectangles will be started. i tried the following: < ControlTemplate.Triggers > < EventTrigger RoutedEvent = " Button.MouseEnter " > < EventTrigger.Actions > < BeginStoryboard > < Storyboard > < ObjectAnimationUsingKeyFrames Duration = " 0:0:0 " Storyboard.TargetName = "rect _Normal " Storyboard.TargetProperty = " (Rectangle.Visibility) " > < DiscreteObjectKeyFrame KeyTime = " 0:0:0 ...Show All
SQL Server accessing result of sp_tables
When I run exec sp_tables it give me a "list" of tables in databases. In fact the result is a table where one of the columns contains the database table names. It is no problem to access it in a client application but I need to access that column and verify existance of a certain table in SQL Server's user stored procedure . So far anything I tried did not work. FETCH pertains to a cursor and I cannot declare a cursor for this command. The only thing I got so far was @@ROWCOUNT but it is of no use for me. Perhaps there is another way to verify if a table exists from inside a stored procedure . I have the same problem in terms of verifying existence of a user stored procedure from inside another user stored procedure but if I g ...Show All
Visual C++ Accessing CView From CDocument
I'm trying to get a variable statusBox that is a CEdit in the CView class to be used in CDocument class. Thanks. This forum is chartered to answer questions on the C++ language. There is a perfect place to ask this question: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vc.mfc.docview&lang=en&cr=US ...Show All
Visual Basic Need To Create Search Bar For Database
Greetings, I am completely and utterly amazed at the lack of information on how to create or employ a search bar. This is the one simple attribute that has made the internet what it is today. Nearly every program I have ever used has a search bar which, when data is entered into the textbox and the search button is clicked, it returns matching criteria. However, I have searched (Imagine That) Google, Yahoo,LearnVisualStudio.net, MSDN, and Help for three days on how to create such a simple procedure and have found nothing. What I need to do: I am creating a database where I have all my Employees Information which includes columns: [Employee Number], [Emloyee First Name], [Employee Last Name], etc.... I have created the database and ...Show All
.NET Development Terminating a remoting call
I have a client making a long-running remote synchronous call (via .NET Remoting) to a server. Is there a way to termiante this call, perhaps by retrieving the thread ID on which the remote call is being serviced on the server, and then termianting the thread Thanks. Yazan D. One way to do this is to specify a TimeOut in the properties for the channel. Please check http://msdn2.microsoft.com/en-us/library/kw7c6kwc.aspx for the complete list of Channel properties. Please see http://blogs.msdn.com/dotnetremoting/archive/2006/07/27/680893.aspx for a helper class to use the Channel Properties. I hope this helps ...Show All
SQL Server CPU Usage on AS 2005 Server
I have 5 cubes with 15 dimensions and one cube (like Virtual cube before) with 5 linked cubes. My client is Excel 2003 Pivot table. From Excel/Pivot table if I run a query which is taking long time. I press "Esc" key to cancel my query. However if I look into my Server "CPU Usage" even after canceling my query is very high. Looks it doesn't cancel my query on server. I am the only user using this server. If I restart my Analysis Services 2005 the CPU Usage drops in 90 degrees to almost 0%. Where is the problem any idea Thank you - Ashok In other words how to cancel/kill these "runaway query" without restarting server I do have aggregation setup. In SQL Server ...Show All
Commerce Server webcast unavailable
Live From Redmond: Commerce Server 2007 Overview We’re sorry, the requested Webcast could not be found. Reference Event Code: 1032303897 Anybody know how I can get this supposedly archived webcast I confirmed there is a problem with this Webcast. The link sent to me when I registered for it was https://msevents.microsoft.com/cui/WebCastRegistrationConfirmation.aspx culture=en-us&RegistrationID=1286829091 But when you click on the View Online link you get https://msevents.microsoft.com/cui/WebcastNotFound.aspx &EventID=1032303897& ...Show All
Visual Studio Express Editions Native DLL
just for giggles I am trying to create an old fashioned native C++ dll. I am using VS Express edition (no native dll project is avalible). Every time I try to compile my project it says I need an entry point, but when I add the int main() it makes it an exe ... I dont want an executable... I am confused nobugz wrote: You would normally need the retail version to be able to build native DLLs. However, Martin Richter has discovered a hack to bypass this limitation, check this thread ... I don't understand this remark. I compile native DLLs with VC++ 2005 Express Edition every day. Now, I am using the compiler from the command line where all it takes is the ...Show All
.NET Development Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
I have created a client test app that tests a asp.net api web service and in an api method it requires a Nullable<int> operationResults parameter to be set.. I do the following: public void TestAuditLogGetRec() { TestAuthProj.AdministrationService.AdministrationService AdminService = new TestAuthProj.AdministrationService.AdministrationService(); AdminService.Credentials = System.Net.CredentialCache.DefaultCredentials; DateTime currentTime = DateTime.Now; string dateStart = "1/17/2007 06:00:00 AM"; string dateEnd = currentTime.ToString(); int startIndex = 0; int range = 200; string searchString = "test"; System.Nullable<int> operationResults = 0; try { s ...Show All
Windows Forms NumericUpDown Hex Display Formatting?
I'm using a NumericUpDown control set to Hex display and I'm trying to find a way to display the value in a 4 character format. For example, if the value of the control is set to "30," it displays as "1E" in hex. I'd like the box to show it as "001E." Likewise, "1" would show as "0001" and so on. Is there a built in way to set this up Thanks! Do you have any more information on the creation of a custom control. There is a partial class but what would the remainder of the code look like and how is it contructed Thanks, Liam ...Show All
SQL Server Use of temp table
Hi there In Control flow of my package I have created a temp table. How do I use that temp table in my next task which is Data flow task. I want to use my temp table as source in data flow task. I have set retain connection property of my connection as true.\ Thanks and Regards Rahul Kumar, Software Engineer Hi Akbar Session is not the problem i am able to retain session. Problem area is, as is insert a Data Flow Task,I double click on it to give the data flow.now in DataFlow Pan i have to create a data flow source,after giving connection it asks for table name,now if I give that temp name,It says table doesnot exist,Rightly so because temp table wont be c ...Show All
Windows Search Technologies Protocol Handlers in WDS 3
Can anyone tell me what Interfaces have to be implemented for a wds3 PH Also where to find the Interface definintions (preferably for C#) How do we install PH's for wds3 Paul, I've referred parts of your question to one of our developers to address. In the meantime, however, I can provide some information. I would not recommend developing your protocol handler using c#. This is because the process that CoCreates the handler cannot host multiple instances of the CLR. This could pose a problem if a user runs different handlers that each require different versions of the .net framework. I hope to have the interfaces and the idl's available shortly. Paul Nystrom - MSFT ...Show All
SQL Server Allow null in a field in Flat File Source
How could I specify in either FF Connection manager or source that it shouldnt give any error and assume blank or no value as NULL Thanks, Fahad you can go to the properties of the Flat file source and set 'RetainNulls' to 'True'. I think that solves your problem. ...Show All
