Rhubarb's Q&A profile
Visual C++ window pointer for a new window
Hi, I have created a new window using the following method AfxGetMainWnd()->PostMessage(WM_COMMAND, ID_FILE_NEW); How can I get a pointer to this new window What is the difference between a window handle and a window pointer Pritha If the ID_FILE_NEW command succeeded, a new view object will be created and activated. In order to obtain it, I think you can try the GetMainWnd()->GetActiveView() function. (See the documentation of CActiveView about how to do this differently in case of MDI applications). Note that the new window is created after fully processing of ID_FILE_NEW command. Therefore you probably should try SendMessage instead of PostMessage . Otherwise GetActiveView will be called ...Show All
Visual C++ installation windows xp 2-2006
dear sir pl installation xp 2-2006 on line download due to my xp cd 2006 getting error. so i am request to you online download windows xp 2006 total program . OR SEND THE PROGRAM TO MR E.MAIL ADDERS thankingyou VENKETESH DORA This forum is not intended to handle the software issues. It would be better to approach windows XP news groups Try this forum ...Show All
Audio and Video Development An interesting survey: HD-DVD vs. Blu-Ray
A survey from http://www.dvdtown.com/announcement/hddvdsurveybyipsos/3665/ 1. In response to the question “Which statement best describes how likely you would be to buy an HD DVD player,” respondents were over seven times more likely to buy an HD DVD player vs. a Blu-Ray player when all studios support both formats. a. 57% would definitely or probably buy an HD DVD player vs. 8% for Blu-Ray. b. 25% would definitely buy HD DVD vs. 2% for Blu-Ray. 2. Purchase interest in HD DVD remains three times higher than Blu-Ray -- even without HD DVD studio support from Disney and Fox. a. 56% of respondents would definitely or probably buy an HD DVD player vs. 18% for Blu-Ray. b. 20% would definitely buy HD DVD vs. 6% for Blu-Ray. ...Show All
Visual Basic how to show a form on key press
Hello, I have a application which runs in the background. what I'm trying to do is when a user press ALT key on the keyboard i want to display a form but the form should be closed if the user releases the ALT key without clicking on the form. Thanks in advance for any ideas. AP If you are wanting to check for keystrokes when your application does not have focus...then search for "Keyboard Hook" here on the forums ...alot of info and examples ...Show All
Internet Explorer Development Touchpad Back Gesture Not Working In IE7
Hi, windows update just installed IE7 on my laptop and the Back gesture on the touchpad does not now work. The scoll up and down gesture still works. Any ideas on how to fix this problem It is a Toshiba Satellite laptop with an Alps Electric touchpad. Guy Yep...me too. C'mon Microsoft, this post started many days ago. Please get us a solution. Shouldn't have my hardware go kaput just b/c I want to use your latest software... heath ...Show All
SQL Server Slow query when run in multiple threads
Hi, I'm trying to stress test my web application, but when I get high load, the queries that used to take 10-20 ms starts taking 500 - 2000+ ms. Or to put it another way, when i run them single threaded i can do about 43000 a minute, when they are run in paralell it drops to about 2500 a minute. What can i do about this There are severeal queries thats affected, but here is one example: update [user] with (ROWLOCK XLOCK) set timestamp = getdate() where userid = 1'' btw: im running sql server 2005 sp 1. The stress test is run on 3 machines total (web, sql and client) the client is simulation 400 users, cliking a page as soon as the last one is loaded, ie there will always be 400 page requests. Hmmm.. w ...Show All
Windows Forms Execute custom action without installing the assembly.
Hello all... I'm using Visual Studio 2005 to create an MSI for a legacy VB6 app. The MSI mostly just registers a bunch of COM DLLs. However, the MSI also needs to install a new code group to the machine. I have written a .NET DLL that will install the code group without a problem. I added this DLL to the Setup Project and used it as a 'Custom Action'. Everything works fine. The only problem is that the DLL is installed to the machine. I don't want this to happen because the DLL's only purpose is to create the code group. It does nothing else. I tried setting the 'Exclude' property to True for the DLL, but that doesn't work, either. I even tried setting the 'ExcludeFilter' property to '*.dll' for the assembly. Nothing works. It seems tha ...Show All
Visual Studio Express Editions How to check for duplicate mnemonics?
Is there a way to check for possible duplicates in mnemonics Something like the tab order view where you can see same key. You could iterate through the form's controls and check their Text property for the "&" character... ...Show All
Visual C# process.HasExited
Hi, I'm trying to maintain a list of process which are started by an winform application. I would close any existing process by checking the process.HasExited property. I works for any IE which is being opened but, this did not wrokout for word process which is open. The process.HasExited gives me always true even the document is open at the background. My example code snippet, private void button2_Click( object sender, System.EventArgs e) { process.StartInfo.FileName = "winword"; process.StartInfo.Arguments = "\"C:\\Karthick files\\Test.doc\""; process.Start(); } private void Form1_Closed( object sender, System.EventArgs e) { MessageBox.Show(process.HasExited.ToString()); ...Show All
Visual Studio 2008 (Pre-release) Calling "transactional web services" within a series of database update calls - is Indigo the only way?
SCENARIO Suppose I call the following method in a ServicedComponent: public void DoMixedUpdates() { DoDBUpdateA(); DoDBUpdateB(); CallWebService1ToDoDBUpdateC(); CallWebService2ToDoDBUpdateD(); DoDBUpdateE(); DoDBUpdateF(); } All 6 calls perform DB updates but the middle 2 calls call "plain old" ASMX web services that each then call a component that performs DB update C and DB update D. QUESTION On the current shipping versions of Windows Server 2003, does a) .NET 2.0 with WSE 3.0 or b) .NET 2.0 without WSE 3.0 support the "transactional web service" scenari ...Show All
.NET Development Designs for communication softwares
I'm about to implement some custom communication protocols for a distributed system. Anyone got pointers to good designs, design patterns etc that I should not miss before embarking on this Note that, It's important that these patterns will be reausable and abstract in that way i can use it for more applications. Waiting for ideas.... I'm not clear what the question is. Are you asking for wire protocol designs (ie. header layout, etc) or for advice on software patterns when building a network communication layer in a multi-tier application ...Show All
Visual C# Iterating Outlook Contacts
Hi there!, I have this very strange problem: I want to iterate through Outlook contacts located in a public folder, but iteration stops randomly giving different error codes, among them these ones: -833601531, -695189499, -625983483, -37732347. Everytime I get the same text message: "The operation failed". for (int i = 1; i <= mexicoContacts.Items.Count; i++) { if (mexicoContacts.Items is Outlook.ContactItem) { Outlook.ContactItem contact = (Outlook.ContactItem)mexicoContacts.Items ; if (contact.LastName != null) listBox1.Items.Add(contact.LastName); } } Any Ideas Thanks... Some good news: I added a try / catch block and now I always logoff from Outlook namespace... e ...Show All
Internet Explorer Development HTTP 401.1 error code on IE6
Trying to access a website, I got a reply error code HTTP 401.1 "Invalid credentials" using IE6 on Win XP. Please can someone help me resolve this Thanks ...Show All
Visual Studio Team System TFS WorkItem Tracking : Error
Hello all, i am getting the error in TFS WorkItem tracking in the event viewer like this: I am using Single server deployment of TFS. Event Type: Error Event Source: TFS WorkItem Tracking Event Category: None Event ID: 3000 Date: 12/1/2006 Time: 2:48:40 PM User: N/A Computer: <server name> Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 12/1/2006 9:18:40 AM Machine: <server name> Application Domain: /LM/W3SVC/2/Root/WorkItemTracking-5-128094383134804186 Assembly: Microsoft.TeamFoundation.WorkItemTracking.Server.DataServices, ...Show All
Windows Forms how to connect to database from dataGridView
I've been working on the C# windows application with connect to database using dataGridView. On the smart tag on dataGridView, click new connection and click second button for browse database. If I select northwind.mdf, click 'test connection', error message says "Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances". I don't know why I cannot access to database. I appreciate for the tip. Oh, my god! I can do it! It's amazing! I was struggling for a while to solve this problem. Thank you so much. You're genious. So, how does it work to do it, though... I appreciate if you can explain about this work. Thanks. ...Show All
