Kim Carlsen's Q&A profile
Gadgets newbie questions...gadget SDK
Hi, Can anybody explain me : 1)What all values can be stored for p_args argument of the gadget class function I saw few of the values in the samples like "module","dashboard".... 2)What do these values indicate 3) For testing purposes, I am planning to use existing web services listed in this site..( I am new to web services also.) http://www.webservicex.net/WS/WSDetails.aspx CATID=12&WSID=56 I am not sure if I can use them in the gadget building directly..And if I can, what all functions do I need to make a call to these services. I would appreciate any suggestions... Thanks.. The SDK has all the information you need. Keep in mind that some ...Show All
SQL Server CASE Returning NULL
Hello, I have a query that contains six derived columns; FirstPerYr; The current year FirstPerMo; The current month FirstPeriodRevenue; CASE the current year, use the CurrentYearSalesTable (CY). CASE the current month, match the correct column (JanRev, FebRev, etc) of the CurrentYearSalesTable to get the correct data. FirstPeriodYrAnnum; Last year FirstPeriodMoAnnum; The current month, last year FirstPeriodAnnumRev; Same as FirstPeriodRevenue, but from the year and month before. In the following query, I get the correct FirstPeriodRev value, but FirstPeriodAnnumRev comes up NULL. I know I have data for January 2006. The query is as follows; --************************** DECLARE @FirstPerYr Int DECLARE @FirstPerMo Int DECLARE ...Show All
Software Development for Windows Vista Why is the Activity ContextGuid not public???
The execution context of an activity is an important piece of the workflow. So why is this important piece of information hidden Currently, there is no way for me to correctly obtain a specific instance of an activity. The main issue I am running into is with tracking. I need to track additional information that is supplied by custom activities. Also, can see the need for a workflow to be able to access other activities in a specific context in order to complete. The context is not always set. You need to walk the activity tree until you find an activity that has it set. From what I was told, it may only be set on Activities that spawn new contexts. ...Show All
Software Development for Windows Vista Using HandleExternalEventActivity to communicate from state machine workflow to asp.net host doesn't appear to work reliably
Dear all, I have a state machine workflow hosted under asp.net 2.0, using SimpleReadWriteActivities and LocalServiceContract from the HelpDeskSupport sample app. This uses static lists to keep track of data pipes, but has no mechanism for cleaning these up. I have added this capability, in order to get consistent behaviour after a re-start of the host web site. Everything works fine unless I return to a state which has already been executed once, and execute it again. The state concerned has an EventDrivenActivity which contains a ReceiveDataFromHost activity, derived from HandleExternalEventActivity. When the ReceiveDataFromHost activity gets called the second time, I get an exception with message: Correlation value on declara ...Show All
Visual C++ ConnectServer() API gets fail in Windows XP PE
hi, Why ConnectServer() API gets fail in Windows XP PE This there any changes to be done or some kind of setting to get this API successful. As of i'm checking the error with the switch for every possible error but it is going into default... ithink i'm going some where wrong ... here is the code hRes = pIWbemLocator->ConnectServer( bstrNamespace, // Namespace NULL, // Userid NULL, // PW NULL, // Locale 0, // flags NULL, // Authority NULL, // Context &m_pWbemServices ); if (FAILED(hRes)) { switch (hRes) { case WBEM_E_INVALID_N ...Show All
Visual Studio 2008 (Pre-release) Orcas Install Problem
After some major frustration I finally got Virtual Server 2005 going on my Windows 2003 Server. I followed the instructions to the letter on the Microsoft web site for installing Orcas. Problem is, while I have Virtual Server going with the appropriate base image, I don't see anything for Orcas... I am clueless here... Anyone know what is wrong Are the instructions leaving something out Hi, Now it's clear, that this is a majorly faced problem by all of us. So now wat are we heading towards a resolution cant we have , what they've commited! I guess everybody's gone thru the scott guthrie's blog thanks.. good day.. ...Show All
Visual C++ Detecting keyboard and mouse activity using a daemon
Hello all, I would like to write a daemon application that sits in the background and detects keyboard and mouse activity setting off an action when there has been no activity for a fixed period of time (think Windows screen saver coming on if user does not use keyboard or mouse for x minutes). Any ideas on how to approach this Cheers. N. Farr I just came across this source code that answers my question. Just sharing it for everybody else's future reference. http://www.codeproject.com/csharp/globalhook.asp Cheers N. Farr ...Show All
Windows Forms icons on command buttons
Hello! Can anyone please explain to me how can I assign icons to command buttons, in order to make them look more intuitive When you want to use an Icon as an Image, you create a new instance of the Icon object, passing the path to the icon as an argument, and then call the ToBitmap() method of the Icon to get an image. eg. Dim ico As New Icon("c:\test.ico") CommandButton1.Image = ico.ToBitmap HTH ...Show All
Smart Device Development WCELOAD & NETCFv2.wm.armv4i.cab
I am trying install NETCFv2.wm.armv4i.cab using WCELOAD with "/SILENT" via CreateProcess. I am unable to WaitForSingleObject or GetExitCodeProcess as this cab remains ' STILL_ACTIVE' indefinately. I have done this many times for other Cab installs, without any issues. The only difference i am aware of with NETCFv2.wm.armv4i.cab is that you receive a message 'You must restart the device to complete installation' , if you run this manually. I want to avoid using a 'poke &hope' timer on the GetExitCodeProcess. Can another suggest a way i can monitor the CreateProcess'es completion Hi Can you please explain what you mean by correct command line I believe thi ...Show All
SQL Server sorting problem
Hello there SQL experts - I'm not sure if this is a T-SQL problem but I thought you guys would be able to at least point me in the right direction. SELECT gen."loan_num", gen."borrow_ln", gen."loan_amt", doc."drawn", doc."returned", brokers."dba" FROM { oj ("DMD_Data"."dbo"."gen" gen INNER JOIN "DMD_Data"."dbo"."brokers" brokers ON gen."brokers_id" = brokers."brokers_id" AND gen."site_id" = brokers."site_id" AND gen."branch_type" = brokers."branch_type") INNER JOIN "DMD_Data"."dbo"."doc" doc ON gen." ...Show All
Windows Live Developer Forums Pre-Processing Tiles for Image Manipulation
Hi Everyone, I have seen some examples on the web where people superimpose various effects on top of the maps. IE. They would show temperature by shading different areas of the map to show different temperature. This goes beyond just drawing polygons on the map, they seem to have used a better way of displaying graphics on top of the map. I was wondering if grabbing the tile first, then adding any graphic data to it before serving it would be the best way of doing this kind of thing. I know you can do various mashups of data etc. but I was looking for a dynamic way of maniulating the image based on data changind day to day Any suggestions would be appreciated. Thanks, sos The best method i ...Show All
.NET Development Help in regular expression
Hello, can someone help me in providing a regular expression who 'se adequter with a string who have a min required length 6 characters . in these caracters 2 , minmum, are none alphanumerical characters thanks Maaloul wrote: .. adequter with a string who have a min required length 6 characters . in these caracters 2 , minmum, are none alphanumerical characters thanks The issues in red need to be clearly stated. It looks like these are the rules 6 characters minimum 2 characters non alpanumeric [A-Z] (Implied) 4 alphabetic characters From those rules ^.*( =.{6,})( =.*[@#$%^&+=]){2,}( =.*[a-z\d]).*$ ...Show All
Visual Basic How to connect vb 6.0 and access?
I am a total amateur to VB and Access...so pls help me to connect vb and access. I need step bt step instructions. I just want to learn the basic so that i can do better applications next time. i want to have only one field : 'name' in MS Access ! So pls help me you need to specify the exact name of the database you have created to be connected on your program. ...Show All
Visual C# Fast searching of a byte array
Can anyone provide guidance on what would be the fastest method of searching a large byte array for some particular sequence of bytes I know I could convert it to a string and do an IndexOf but I would like to avoid that. Any ideas For big byte array (20 more items maybe), you can copy it and use quick-sort to sort it then use binary-search... Even if you were just looking for a single byte, I'd guess that the array would have to be much large (several thousand, I'd say), before sorting becomes faster than a linear search. (actually, as the search would be O(N) and the sort O(N log N), unless you can get several searches out of one sort, it would never be faster) ...Show All
Visual Studio Express Editions Display a form
Hi, I am having some trouble displaying a form, I have done it many times before but this time it is not working: here is my code: helpform frm = new helpform(); frm.Show(); and come up with the following errors: Error 1 The type or namespace name 'helpform' could not be found (are you missing a using directive or an assembly reference ) Error 2 The type or namespace name 'helpform' could not be found (are you missing a using directive or an assembly reference ) Any Help I noticed that you have written helloform in small letters in Image1. C# is case sensitive, so you must write helpform in small letters in all places. In Image 2, you see that you have written it "HelpForm", it is not the same thing as ...Show All
