Answer Questions
chunket Control+C (user break) handling disabled when program launched from Tools menu
I have a C++ Win32 console program in which I trap Control+C (SIGINT) with my own handler. This works just fine when the program is started from within Visual Studio 2005 using the menu items Debug\Start Debugging or Debug\Start Without Debugging, or when the program is started outside of Visual Studio. However, if I use Tools\External Tools to create a tool that starts the program, and if I start it using that, my handler no longer gets called. This is a big problem because many users of my program use Visual Studio 2005 and start my program from the Tools menu. Does anyone know how to solve this problem Thanks, Jim OK - so the code looks like it changes a couple of parameters based ...Show All
Bernardo Piano Developing for both 2003 & 2007 with VSTO 2005 SE
Okay, maybe this is a stunned question, but I want to make sure I'm crystal clear before I head too far down the wrong path. I did a search, and I understand all but one thing... I want to make an add-in for both Outlook 2003 and Outlook 2007. I *do* understand that the best (only ) approach is to make a "stub" add-in for 2003 and another "stub" for 2007, and have them each call into common assemblies. No problem there. On my development machine, I have Office 2007 installed. That means I don't have the Office 2003 PIAs (since you can't have both Outlooks installed at once). So if I make a new VSTO 2005SE project for an Outlook 2003 add-in, it obviously bitches that it can't find the Office 2003 PIAs. My question is: is ...Show All
TomJ72 api message
Hi any idea how to send to window api message with resizing Resize window is my target. WM_SIZING didnt work :-( A WPF Window is resizable with out using WM_SIZING. Have you tried setting Height/Width of the Window object Did that not work Why isn't that good enough Please explain in more detail. Thanks, Rob Relyea Program Manager, WPF Team http://rrelyea.spaces.live.com solution http://forums.microsoft.com/MSDN/showpost.aspx postid=1124162&siteid=1 Something like this: http://www.sturmnet.org/blog/archives/2006/12/07/custom-handling-of-the-non-client-area/ in wpf Hi, Ihave a trnsparent window with backgroud object: < Window x:Class = " F ...Show All
tinny4u Datasource List<String> problem
I have a custom business object that returns a List<String>. In the Report designer, it allows me to use the following property values to bind a textbox to: Fields!Chars.Value Fields!Length.Value The Length works fine and returns the correct lengths for the strings, but the Chars never returns anything. Since Chars doesn't appear to be a property of the String class, I'm wondering if that is the problem. I've tried some other combinations "Fields", "Value", but I can't get anything to work. Does anyone have any ideas I know the actual text is in the object since the length works, and I also switched to a custom class that only contained a string and returned a List<customclass> and that worked fine. S ...Show All
Sreedharan Can anyone help with video and clip path?
I'm trying to display a video which is clipped by a text path. The effect I'm after is to display the moving video on the 'surface' of the text. Should be simple eh I see the text path but no sign of the video. The events attached to Window.Loaded and MediaElement.Loaded fire as expected, and the video is loaded. Can anyone help me get the video displayed Thanks Dave Arkley XAML and code-behind are: XAML < Window x:Class = " VideoText.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " Video in Text " Background = " Black " Name = " my ...Show All
Nick Darnell Reordering the disc?
Hello, I lost the Installation Disc, and I would to place an order. Is it even possible Can I download the 90-day trial and user my license with it Any help would be greatly appreciated! Daniel. 90 day trial is a seperate license I believe and perhaps a time limit product, but don't quote me. It is better to have the original discs for many reasons. To place an order of another disc, I dont think this is possible. you maybe best asking MS Support: http://support.microsoft.com Usually you would go back to the place you purchased the product from and they will be able to assist you. ...Show All
rock.aut Getting CodeElement from file path
I'm want to "parse" a c# file to find out what classes and methods it includes. I have only file path. I have found that for parsing I can use CodeElement class. How can I get this class using file path See my article: "HOWTO: Navigate the code elements of a file from a Visual Studio .NET macro or add-in." http://www.mztools.com/resources_vsnet_addins.htm thank you, I will try it. Hallo, To examine the code model of a project and the code elements in a file: 1) The project that contains the file must be loaded in VS. You cannot parse the code model of a file through automation if it's not part of a l ...Show All
Keith Chapman Reorganize solution structure programmatically
hi there, how is it possible to reorganize the structure of an existing solution. How can I reorganize the hierarchy of an existing solution by code. Is it possible to add a parent project to an existing project programmatically I already checked the NestedProject sample but my idea is to add a new project at a certain hierarchy node. I this possible cheers, bkohler hi, is there really nobody out there, who can tell me how i can change the order of my solution hierarchy programmatically Any hints would be really appreciated. Thanks a ton, bkohler thanks carlos, but I couldn't really solve my prob ...Show All
Dave111 Linq2Sql: Persisting new objects with relationships to existing objects
I'm seeing some strange behavior when I try and persist a new object which has an existing object set to one of it's child properties. The scenario goes something like this: 1) create a new Book instance 2) assign an existing Subject to the book.Subject property 3) Save the book instance <<psuedocode>> MyDataContext ctx = new MyDataContext(); Book book = new Book(); //... do stuff book.Subject = ctx.Subjects.Where(s => s.Name == "My Subject").First(); ctx.Books.Add(book); ctx.SubmitChanges(); When saving the book instance Linq to Sql attempts to INSERT the Subject even though it already exists which obviously results in an exception being thrown (duplicate key violation). The book and subject classes are using GUID's for the ...Show All
Roger Lipscombe HELP ME PLEASE !! PARAMETERS
I need to switch between the databases at runtime for my crystal reports in .NET 2.0. Is it possible to change the crystal reports connection string at run time in .NET 2.0 Please provide me any sample code which illustrates dynamically changing the connection string of crystal reports at rune time. Thanks in advance, Vaishu Thanks for your prompr reply. I'll try this code sample and let you know. Once again thank you for giving me the reply. Hi, If I understand well uor cristal report is linked with Datatbase 1 and in run time u want to change the source ... In thant case the return data have to get same struct becouse in other way the Creport reise the error. So u have to make new conection ...Show All
Rruna How to add SmartTags in Outlook
Hi, I wrote a SmartTag assembly for Word that searches some article numbers and shows some details. Now I want that functionality in Outlook. For example when a customer sends me an email within some article numbers it should be found by Smarttags. How I can do that Outlook supports SmartTags only when Word is the email editor, and thus uses the same tags as Word. Note, though, that Word can be the editor for received items only when they are in rich-text format, which is unlikely for mail coming from outside. Thanks for your replies. Word 2003 is my standard email editor. How I can say to Outlook that it should use a certain WordTemplate(with SmartTags) for ...Show All
qt1h00 Documentation on XML format
Hi, Is there any documentation available on the xml format used by the class designer Thanks swin ok, thanks Pablo. swin Glad to help Pablo AFAIK there is no official document that contains the xml schema of the class designer serialization. But you can check this post: http://blogs.msdn.com/classdesigner/archive/2005/07/29/444501.aspx Pablo ...Show All
DavidW57 How would I achive this using the new RelativeSource syntax?
DataContext = " {Binding RelativeSource=/Self, Path=MyClass} Where DataContext is set on a window for example I'm stumped. Thanks Senkwe DataContext="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=MyClass}" Thanks Sam, got it. ...Show All
PaulMendoza using Visual Studio to build C/C++ projects with dependencies
Hello everyone, I am using Visual Studio to create a solution, and in this solution, there are several projects which have dependencies, for example, the output of one project is a DLL and another project will utilize it to build an executable application. My question is, whether Visual Studio could recognize the dependencies and build projects in correct sequence Means, building DLL project first, then build the executable application. If Visual Studio could not, I have to build them manually one-by-one in the correct sequence. thanks in advance, George Hi Adrigo, Adrigo Gallus wrote: Yes, for C# and VB projects. Don't know for C++, but its unlikely that it is different. You indicate ...Show All
Takashi Toyota Tcp error 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted
I have developped an application that call a WCF service Two ChannelFactory<T> has been opened in try block and they are close in finally block. This operation is carried out in a while condition and it's executed 30000 times. while (i<30000) { try { OPen ChannelFactory<T> OPen ChannelFactory<T1> } finally { Close ChannelFactory<T> Close ChannelFactory<T1> } } When i arrive at 2000 calls i have this error : System.ServiceModel.CommunicationException: Could not connect to net.tcp://srv-mpl-int12:4151/ISupplier. Tcp error 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted. ---> System.Net.Sockets.SocketException: Only one usage of each socket add ...Show All
