K. Rose's Q&A profile
Visual C++ CWebbrowser object and IE 7
I am getting a strange error from the scripts of this object when ran on IE 7.0. When I step into the debugger, I get the message: "Object expected" and I get this listing: <html><head><script src="res://mshtml.dll/objectembed.js"></script> <script language="javascript">var objectSource="http://www.photosphere.fr/sedonline_anim/entree_nor.swf"; </script> </head><body onload="ObjectLoad();" leftmargin=0 topmargin=0 scroll=no> <form id="objectDestination"></form> </body></html> With ObjectLoad() highlighted in yellow. This of course works like a champ with IE 6.0 and former. Nor do I have any problem ...Show All
Software Development for Windows Vista Determine correct activity instance during Activity Tracking
I have written a custom persistence and tracking service. When I track that a new activity instance has been initialized, I write a new record a database. What I want to do is add the record ID as User Data to the activity so it can be used during processing. I know the root activity, the context guid and the qualified name for the current activity. But how do I use this information to get the correct activity instance Any help would be greatly appreciated. Thanks Nate Local service is the right way to get data into the workflow. EventHandlers can be used to handle an event raised on the local service, and put into the right place of the workflow. Local service events can be raised from tra ...Show All
Visual Studio 2008 (Pre-release) Can we add an operation to a service description once the serviceHost has opened?
Initially my service has say two methods. I want to add a third method by calling one of the two methods. If any new client subscribes to the service it should be able to call all the three methods. The method which should be invoked when the dynamically added operation is called is implemented in the service class. Is this feasible hi, i thought for some time regarding that problem of operation not getting called. Even though we are updating the service description to hold one more dynamic operation.. we are not updating service contract itself.. i mean the interface.. so what must be happening is when the request from client for that dynamic operation comes to server, it must not be able to find tha ...Show All
Visual Studio Team System Creating a Project
Just starting with TS ...created a Project ...added a scenario and even managed to add some work items directly from MS Project, after much editing. At each stage of adding things I looked on the Project Portal - but this didn't seem to refresh in line with new things added. I've now got 98 Work Items in the project - and even after save & exit of Team Explorer - and refresh / reload of the portal - they aren't appearing. Is there an option in Studio / Team Explorer somewhere to 'publish' or send these to the portal Also - is there a SAVE that needs doing after each ADD of Work Item or Task - I am just exiting then selecting Yes to Save. Sorry for the basic Qs..but I'm following the book 'Studio 2005 Team System' which ...Show All
Smart Device Development how to know whether a Registry key is exist?
how to know whether a Registry key is exist for example RegistryKey rk = Registry.LocalMachine.OpenSubKey("Software\\myTestKey", true ); if myTestKey is not exist, I want to create it, and set some values to it. if myTestKey is exist, I want to read values from it. How to code with c# .net cf. Thank you. Check the return value of OpenSubKey() (as stored in rk) to see if it is null... if it is use CreateSubKey() to create the key as it does not already exist. Does this work for you ...Show All
Visual Studio 2008 (Pre-release) Quick question, XAML to C#
How do i write this in C# < Control Template = " {DynamicResource extrastuff} " /> You may need to register the Name of your Control. Application.Current.MainWindow.RegisterName(Control.Name, Control); ...Show All
Visual Studio Team System Maximum work item ID# supported by TFS
A question from our Director of Software Development: "If we are using work items across all projects, we can expect this ID# to grow pretty fast. It may become unusable faster than we would like. Is there a better way to deal with very big work item ID# Can we use a different ID sequences " Thanks, Maggie The ID column is defined as a SQL int datatype, which has a maximum value of 2,147,483,647. The general expectation is the IDs are useful for uniquely identifying a Workitem, but not the best way to remember a workitem. Categorizing and searching for workitems by Area and Iteration Paths, Projects and other field values is how Workitems were designed to be retrieved. eg, someone would ...Show All
Visual C++ Using resource as a normal file
Hi, i have a problem regarding resources and files. So i'm using ZipArchive library to manipulate zip files, and i don't want to load file directly from specyfied path, but from resource. I've add *.zip file into resource, but i can't think a way to open it, directly from program. I'am opening archive with CZip::OpenArchive(const char*) // specyfied parameter can have diffrent type, but i think the main idea is obviuos. Thank for help, and sorry about my English if i've made anny mistakes. Something like: rsrc = ::FindResource(0, MAKEINTRESOURCE(YOUR_RESOURCE_ID), "YOUR_RESOURCE_CUSTOM_TYPE") //I do not remember order of arguments it could be id first, also it could be easier if your ids are strings hg ...Show All
Windows Forms Create Trace in my application
Hi to all, i like to create a application, that will allow user to trace through out code runtime like f11, i will use reflection to open the methods in the user dll. how create a trace in a new window...... please help me........... is it possible, any ideas, i like to do that application in c#. Yes for example, i working on some method it through exception, i want to provide a trace button it will allow user to debug the code and find which will cause this error. thanks Amjath ...Show All
Visual Studio Express Editions RSS Screen Saver
I've looked and looked but cannot find the rss screen saver project. Hi vio69, The RSS Screen Saver project can be found here http://msdn.microsoft.com/vstudio/express/visualcsharp/starterkit/#rssss Enjoy. Scott ...Show All
Smart Device Development Bring application to foreground
Hello everybody! I used google, I used the search-function in this forums but I can't get an answere. To the risk this has been answered several times before, here is my question: How do I bring an application to the foreground after it has been minimized with the x-button I am using .NET 1.0 framework (no, there is no chance to update...) on an windows 5.0 pocket pc. My app registers for an event. When the event is triggered the app should come to front so that the user can see, whats happening. Everything is fine, the app does what it should, but it is not showing up in the foreground. So the problem is not the event-handling. I tried: this.Focus() this.BringToFront() WindowState = FormWindowState.Normal Attached is an example applica ...Show All
Visual C++ ATL OLE DB Consumer Wizard crashes VS2005
I am learning how to create an OLE DB Consumer application by doing a simple example as described in the MSDN Library in an article entitled "Creating a Simple Consumer". This article is found in "Visual C++ Programming Guide > General Concepts > Data Access > OLE DB Programming > OLE DB Consumer Templates > Creating and OLE DB Consumer > Creating an OLE DB Consumer Using a Wizard." Since I want to write a C++ application that will interface to my VFP database, I want to use the Microsoft OLE DB Provider for Visual FoxPro. I have it connect to an my existing VFP database on my system. I follow the instructions in the article. I am in the section where I am using the wizard to add a class. I ha ...Show All
SharePoint Products and Technologies Sharepoint authentication problem
Can anyone help I have a very small network (3 clients) and I am running Sharepoint services on Win2K3 in a server, and SQL Server 2005 in another one. I now can't access the Default Web Site in Sharepoint. Requests from Clients are being rejected with 401 errors. The Client requests for pages are met with the following "HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials. Internet Information Services (IIS)". All accounts are properly configured Domain accounts, and have already been added as users in Sharepoint Administration, and are also part of Active Directory. An interesting observation is that if I prefic the Account name with the name of the Host, e.g. LAPTOP\AccountName, I get access ...Show All
Software Development for Windows Vista HELP: Adjusting/Controlling Attenuation (Volume) Level
I need help guys ... How can i adjust the volume of the audio playout in real time For e.g Left Channel Right Channel 50% 50% 30% 30% 0% 0% 30% 0% 0% 30% i really need this program, good if there's an article of it or a source code or at least steps that where can i get this achive. note that im using simple audio playout using directshow that make use of the Quartz.dll thank you in advance I found this.. http://www.codeproject.com/audio/volumeclasses.asp but the problem is, its in c++ code where im need to build it in c# please help.. kudasai ne :( ...Show All
Visual C++ Fstream file input
The following code stores the words of ifstream object into a vector template and then counts them. It works when the file that the ifstream object contains is "words.cpp" . //words.cpp #include "stdafx.h" #include <string> #include <iostream> #include <fstream> #include <vector> using namespace std; int _tmain( int argc, _TCHAR* argv[]) { ifstream in( "C:\\C++ Projects\\dev.txt" ); vector<string> words; int i=0; string word; while (in >> word) words.push_back(word); while (i < words.size()) i++; cout << i << " words in file" ; cin >> i; return 0; } The problem is that no matter which file ...Show All
