DarrellMerryweather's Q&A profile
Gadgets Shared memory reading by gadget
Hi All, Is it possible to access to shared memory by gadget Do you know any implementation/sample gadget/projects that uses shared memory (storing some data by process for example, and reading and displaying this info by the gadget). Thanks No, but there are two workaround: 1. Write to a file in the Gadget directory and monitor it 2. Write to the registry Personally, I'd go with option 2 as it's neater. eg var oShell = new ActiveXObject("WScript.Shell"); oShell.RegRead("HKCU\\Software\\My Company\\My Gadget Name\\My Value Name"); oShell.RegWrite( HKCU\\Software\\My Company\\My Gadget Name\\My Value Name\\","My Value" , "REG_SZ"); ...Show All
Visual Studio 2008 (Pre-release) Installation issue SDK 3.0 .net CTP July
When I try to install the latest CTP from July I get the error message You must uninstall previous version of the Microsoft SDK ................. I already run that vs_uninst_winfx, that worked at least and tells nothing to deinstall Attacht the Log view, may somebody can help! 23:32:15 Mittwoch, 19. Juli 2006: === Logging started: 19.07.2006 23:32:15 === 23:32:15 Mittwoch, 19. Juli 2006: Action 23:32:15: INSTALL. 23:32:15 Mittwoch, 19. Juli 2006: Action start 23:32:15: INSTALL. 23:32:15 Mittwoch, 19. Juli 2006: Action 23:32:15: WindowsFolder.D0DF3458_A845_11D3_8D0A_0050046416B9. 23:32:15 Mittwoch, 19. Juli 2006: Action start 23:32:15: WindowsFolder.D0DF3458_A845_11D3_8D0A_0050046416B9. 23:32:15 Mittwoch, 19. Juli 2006: Act ...Show All
Visual C++ C++ Generics issue
Hi. I'm having a problem converting some C# to C++/CLI, which involves generics: //// C# code (compiles and runs): ///////////////////////// // The constraint requires the generic parameter T // to be convertable to the type of the derived class: public abstract class MyBaseT<T> where T : MyBaseT<T> { public MyBaseT() { } } public class MyDerived : MyBaseT<MyDerived> { } //// (equivalent ) C++/CLI code: //////////////////// generic<typename T> where T : MyBaseT<T> public ref class MyBaseT abstract { public: MyBaseT() { } }; public ref class MyDerived : MyBaseT<MyDerived> { }; /// Compiler error: Error 1 error C3393: syntax error in constraint cla ...Show All
Visual Studio Express Editions Embedded forms
How can I embed a form inside another Both these forms should be synced, ie: when parent is resized, child is exactly resized. When parent is dragged, child is dragged Thanks ! See my post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=557731&SiteID=1 The hidden form that has floating objects stays sync'ed with form2. ...Show All
Microsoft ISV Community Center Forums Delete Unwanted rows based on value in cell
Hi all, I have to loop through a range of rows with an excel sheet and delete unwanted data. To identify the rows to be deleted I have to do the following: Firstly I must start at A1 and check if it contains the value "Product", if not i go to the next row but if it does i must then delete this row and go to the next. I must then check that the next cell contains the value "Total", if not i go to the next row but if it does i must then delete this row and go to the next. I then need to delete each of the next rows until i find the next cell that contains the value "Product", delete this cell and then go through each of the next rows until i find the next cell that contains the value "Total&quo ...Show All
Software Development for Windows Vista External Events, ThreadPool and WaitForIdle
Hi, Given: stateMachineWorkfow, which waits for some external events that are being sent to it via ExternalDataExchangeService. The service code contains something like: public event EventHandler<ServiceEventArgs> FireEvent; void TestFireEvent { ThreadPool.QueueUserWorkItem(delegate { if (FireEvent != null) { FireEvent(this, args); } }); } where ServiceEventArgs have 'WaitForIdle' property set to 'true'. Such a code makes the workflow runtime to wait till the workflow becomes idle, before delivering the event. Therefore the thread in the thread pool may be waiting for quite a long time, because we can not be sure if the workflow will become idle fast enough. This leads to potential problems because t ...Show All
Visual Studio Express Editions wide characters in program
#include "stdafx.h" #include <iostream> #include <string> int main() { std::cout << "Please enter your first name: "; std::string name; std::cin >> name; std::cout << "Hello, " << name << "!" << std::endl; return 0; } wchar_t where do i put this in for wide characters like japanese thanx first step response #include "stdafx.h" #include <iostream> #include <string> int wmain() { std::wcout << L"Please enter your first name: "; std::wstring name; std::wcin >> name; std::wcout << L"Hello, " << name << L"!" << std::endl; retur ...Show All
Windows Forms Creating”alert” when new file arrives
Hello! I hope this is the proper forum for this. Every day a computer sends out new files to a certain folder in my computer. I am to check these files when they arrive, ASAP. However they come within a one hour window. This means that I have to check my folder every five minutes during the waiting time if I want to be able to check the files as they arrive. Therefore I would like to make some form of “alert” that notifies me when new files arrive in my folder, preferably but necessarily using audio. Is this possible If so how can you do it Any help very much appreciated! Thanks a lot in advance! I know I can minimize the window showing the folder and just have it at the corner of my screen but that is not very convenient as I ...Show All
SQL Server Full text search with MSQL 2005
Does MSQL 2005 Full-Text-Search engine make use of Microsoft Search Service like the previous version (MSQL2000) If yes, where there any improvements in performance Is MSQL 2005 Full-Text-Search recommended AND ready for large scale / enterprise systems with lots of traffic If yes, how is the performance I've been doing some research, but I can't find any good articles on it... if you know of any please add them to the thread! :) Thank you very much! You can read all about the architecture of SQL Server 2005 Full Text Search here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnsql90/html/sql2005ftsearch.asp Buck Woody ...Show All
Gadgets Web Site in sidebar Gadget; Need to Refresh Every 10 Seconds
I need to be able to display a web site in a sidebar gadget, and have it update every 10 seconds. It is used to monitor servers. The gadget needs to be about 500 x 600 pixels. I have seen some messages talking about using iframes to display a web site in a sidebar gadget, but I cannot find a way to successfully get it to refresh at a specified interval (say every 10 seconds). Any assistance and/or code samples would be greatly appreciated. Thanks! It needs to go into either the <HEAD> section, or your JS file - if you have one. eg. <HEAD> <SCRIPT language="javascript" type="text/javascript"> ... </SCRIPT> </HEAD> ...Show All
SQL Server Connection manager validation within UI
Hi all, I need to validate a custom connection manager within its custom user interface, like the FlatFileConnectionManager does it, by showing errors and warnings at the bottom of the window. How can I do that since SSIS provides only a ConnectionManager object with the IDtsConnectionManagerUI::Initialize method, and this object doesn't contain any Validate method Note that for a custom data flow component, SSIS provides a ComponentMetaData object which supports a Validate method. Thanks. Pascal I can't call the Validate method of my custom connection manager because SSIS doesn't give me my object but a ConnectionManager which is not a ConnectionManagerBase type... ...Show All
Software Development for Windows Vista working of a keyboard !
i want to know how keyboard/mouse interact with the system how any instruction is get executed by the system whenever any key is pressed in mouse/keyboard e.g. when we pressed 'a' key in the keyboard then exactly what happens in the system how system execute that instruction i think my question is clear to you , please give ans of my query n if any doubt in question then ask your welcome. thank you Bhupi, This is a really good question. Back to some basics. I think it has something to do with an electrical pulse that is decoded into a code that is sent (pushed) from the keyboard device to the operating system. The OS probably has different interupt levels and one of them will be triggered that notified the OS that an event has occ ...Show All
Visual Studio 2008 (Pre-release) Converting a collection to comma seperated list
Hello all, I have an entity (ContactInfo) that exposes a bunch of properties and a collection of Persons (the collection is called People). Here is how I want to show it: Contact Info Name: xxxxx Created By: xxxxxxxx Creation Date: xxxxxx People: John, Jill, Jack. I have defined a datatemplate for this entity, where each property is bound to TextBlock.Text. Then, I created a value converter that would take a the people collection and return a list of comma seperated names. public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value == null) return ""; People people = value as People; //TODO error handeling ...Show All
Visual C++ CWinThread derived Object and Menu trouble
Hello I can't find my previous question so i'll re-ask it; I created few WinThread derived objects With which i send and receive info by posting messages. When i click on the menu While my threads are runing they seems to crash or to terminate their message processing. The thread being terminated not in a clean manner it causes my program to randomly behave. I use these this thread with multiple Windows and in a various range of way but only the menu affects their stability. Does anybody can lead me on the right path to overcome this problem Thanks a lot. After a bit more of thinking and testing. I've found the answer to my problem. As I thought the menu was interacting with my threads but not directly. The P ...Show All
Smart Device Development Memory Efficiant Coding Practices for Mobile Devices (Should I be more careful?)
Hi All, I'm writing my first Windows Mobile 5 application using C# and .NETCF2.0. I've had my ups and downs but all is going very well at present. I've recently written a couple of File IO routines that 1) Reads INI style files 2) Reads CSV style files. I'm very concerned about the way I'm reading these files. My issue is with available system memory. The target device for this application is a HP IPaq hw6915. The device is telling me there is a mere 23Mb of available system memory. Ok, no surprises there really, there are smart devices with less. With this in mind if I read a whole 24Mb file into memory I'll saturate the device. Now I'm not worried about the INI file reader as this reads the whole file in (Not that big in theor ...Show All
