Telemann's Q&A profile
Visual C++ Very simple member variable question
Hello all, I'm using VC++ 2005. I've got an MFC dialog app to which I've added a ComboBox control. I right-click the control and select "Add variable...". In "Category" I select "Value" and in "Variable name" I give the variable name "m_intComboBoxVal". I hit "Finish". But when I try to look for the declaration in the source files for the dialog, I don't see it anywhere. It is listed in Class View when I select my dialog class...when I right click the member variable and select "find all references" it finds one reference in the dialog header file but on an empty line. Where does the wizard insert the declaration for my variable Now a ...Show All
Visual Studio 2008 (Pre-release) Problem with changing Navigation Source in Frame Element
Scenario: I've page1.xaml where i've frame named frame1. I've functions to change the navigation source in Page1.xaml where i will load the Page2.xaml, here i've a function which changes the navigation of frame in page1 to load page3.xaml. The function is thru and is not giving any exceptions but frame is not loading the Page3.xaml Hi Chidu, I'm not sure if your issue has been resolved already but if not, here's my shot at a solution. Have you tried using Frame's Source property or the Navigate method to navigate to any of your XAML pages This is an alternative to explicitly using NavigationService's public static methods/properties -- Frame still uses its own NavigationService to actually perf ...Show All
Visual Studio 2008 (Pre-release) What's equivalent in WPF for "Application.Restart()" in WindowsForms?
Application.Curent object doesn't contain such method. Any suggestions Thanks Why a such method has been omitted in WPF It's very useful for ClickOnce (after an update) or a language change... There is absolutly no alternative Thanks ...Show All
SQL Server Service broker on the same database.
I'm trying to create a service broker on the same database...with one service and one queue. But my queue ends up with nothing in it. Here is the source...what's wrong Alter Database adventureworks set ENABLE_BROKER ; ALTER AUTHORIZATION ON DATABASE :: [adventureworks] TO [SA] ; create master key encryption by password = 'P@SSw0Rds' ; CREATE MESSAGE TYPE CreateQBLetters VALIDATION = NONE CREATE MESSAGE TYPE LetterResponse VALIDATION = NONE CREATE CONTRACT BuildQBLetters ( CreateQBLetters SENT BY INITIATOR , LetterResponse SENT BY TARGET ) CREATE QUEUE BuildLettersQueue with status = on CREATE SERVICE CreateQBLetters ON QUEUE BuildLettersQueue -- At ...Show All
.NET Development [Question] Encrypt with Private key (Not Sign)
Hello, This maybe the stupid question, but I wonder I can encrypt a message with sender's 'Private key' not public key. Of course this is 'Sign'. But I wonder is there any way the 'Receiver' can decrypt the message with his/her public key and 'see' the original message. (Not just verify). It maybe basically impossible, but I don't know. So please tell me whether it is possible or not. Best regards. Just in case someone who knows how to do this ever stumbles across this, I will add "I also want to do this!". I know that normally you want to encrypt with public and decrypt with private, and that normally makes more sense, but we want to do it t ...Show All
Visual Studio When will VS 2005 and VSS 6.0 work?
Open vs 2005, select "pending checkin window" for about 10,000 files wait 45 min to 1 hour.. I think you misunderstood me Barry.. "I was only in charge of testing the fix for the pending checkins window for the SP1 which was a regression from VS 2005 RTM. BTW, what breaking problems are you encountering which is a regression besides the bug that was introduced by SP1 Beta and fixed for final SP1 " Please read the original thead, the "pending checkin" problem existed with the release of vs 2005.. "The last time I remember talking to the person in charge of Performance, I recall that VS 2005 has better or equivalent Perf numbers than VS 2003." T ...Show All
Visual Studio Element Event Declaration vs. Element Event in VS2003/VS2005
I am having a problem with the behavior of VS2005 vs. VS2003 in an Add-In. I am doing a TextPoint.CodeElement call to determine the type of an element. When it comes to event declarations in VB such as the following: Public Event SomeEvent(sender As Object, e As System.EventArgs) In VS2003 the type would come back as vsCMElement . vsCMElementEventsDeclaration In VS2005 the type comes back as vsCMElement . vsCMElementEvent The interface for vsCMElementEvent does not support the parameters property and I cannot cast it to a CodeFunction. vsCMElementEventsDeclaration does. I've snooped through the whole code element tree and could not find any elements that were ElementEventsDeclarations at all. I am absolutely stuck. ...Show All
Visual Studio 2008 (Pre-release) Destructor of service .
Hi i use in InstanceContextMode .PerSession when client is closed i does not reach to destructor of service desspite of that i close the channel , and the client is down. i dont know why the service is not release despite of client is down. If you want to explicity release some unmanaged resource on the Service side you could add another method like Close() to the Service and call it after a client is done. Closing the proxy/channel alone doesn't guarantee that the Service destructor will be called immediately as its GC's job. ...Show All
SQL Server Problem with matrix header (bug?)
hello, I'm having a strange problem with a matrix headers. I can't put column headers above each row group header. There is a merged cell above them, which can't be split. If I have several row groups, including Customer ID and Zipcode, I can't put headers above them to identify them in the matrix. Since both have 5 numerals, they can be confused. Does any body know how to solve this Thanks in advance, Roy. Hi Davids. Thanks for the reply but i think I found a better solution. In the Header TextBox you can insert a rectangle and in that rectangle you can enter a few textBoxs that will be use as a column header. Its work fine and looks good even when exporting to excel and pdf. Take care, Roy. ...Show All
SQL Server Rich Text Format interpretation using .RDLC report file
Can someone point me to any RTF text interpretation capability with VB 2005 .rdlc file I would like to select a field that is saved to SQL server with formatting, and do so without reporting the format string. This is what I would like to avoid reporting: http://img381.imageshack.us/img381/6217/rtf1gd.png Thanks, josh. It should work fine. It is a pretty generic class that just renders the RTF to a fixed size, creates an array of images that correspond to the total number of pages then either merges all of the pages into a single image, returns back a specific page, returns back a bit array (which is what is required for reporting services) or returns all of the pages in an ArrayList. ...Show All
Microsoft ISV Community Center Forums Copy text from textbox to clipboard?
How to copy just the text from a textbox to the clipboard in VBA (MSO 2000 - Excel). I can copy the entire textbox but I only want the text (not the box). My brain has gone to sleep and I can't do it :( can in VB but do not want to reference VB components. Cheers. NM Graham, reference to PutInClipboard is here: http://msdn.microsoft.com/archive/default.asp url=/archive/en-us/office97/html/output/F1/D6/S5B40E.asp . I haven't used this function so I can't vouch for it. I suspect it's deprecated by now and you're probably safer using the API. Check http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/dataexchange/clipboard.asp for information on API funct ...Show All
Smart Device Development CF 2 & 3 Web services capabilities
Hi, I'm looking for DPWS web services capabilities embedded in these two frameworks, I'm pretty sure that CF 2.0 doesn't have any web service capability but what for the next step of compact framework (I guess 3.5 from what I read) Will it be possible to make DPWS devices directly with compact framework Thanks the .NET CF is only capable of consuming web services. I'm not aware that this is going to change with the upcomming version to be shipped in 'orcas'. Windows CE does provide a web server (which is avaliable on Windows Mobile 2003 and 5.0 as additional server component). The general embedded version of Windows CE ships with support for hosting web services (native code only). ...Show All
.NET Development Problems with deserialization of SOAP Response (Complex Type from Apache / PHP Webservice)
Hi, I want to consume an Apache Webservice with a C# .NET Client. Everything works fine, but I’m having problem with the deserialization of the complex type “Item” that is included in the response of the web service, what seems so be the type “hashtable” in .NET. Every “Item” consists of two fields “key” and “value”. I read a lot about SOAP/Apache/.NET/Complex Types/etc. and somewhere I read that there is no automatic deserialization possible of such a type. Does anyone know a HowTo-Example or Codesnippet Or can somebody explain how to consume Complex Types from Apache I didn’t find any helpful postings or Code Examples… I’m looking forward to your replies! Best regards, Gregor Hi Elen ...Show All
Gadgets center the gadget in the modules in the spaces live com
hi everybody, I have a little problem whith the center tag. I want my gadget to be centered in the module, and I use the CSS file to do this. As that did not function, i tried to use a global div whith a .style.align='center'; as well in the CSS file than in the js file.......still don't work, my gadget is sticked on the left side.... My js and CSS syntax is correct, so so....it's here for the manifest ( http://albidochon.free.fr/jeu1/gadget.xml ) i tried, and it works, but I think it's not the best.... : .albidochon_gadgetfran1_jeu1 .Divglobal { position:relative; top:0px; left:18%; height:250px; width:250px; ...Show All
Visual Basic Calling an exe multiple times
I have to develop an application where I need to generate PDF from HTML. I am using ABCPdf component for the same. Now I am giving my users a web interface where they can select the HTML documents (lets say HTML1.html,HTML2.html,HTML3.html ...so on) and then the PDF gets created by invoking an exe which does all the work in the background. Now i want a scalable and robust solution to accomplish this task as my users can be any number and there can be n numbers of html documents to be converted to pdf. For example my user1 schedules 20 HTML files to convert to PDF like wise my user2 also schedules his 20 html files to be converted to PDF and there is no limit to the number of users. and so on .. so if I develop an exe to do the task ...Show All
