stubs's Q&A profile
Visual Basic pinde programs of start menu
Does anyone know where xp stores the pined programs of start menu and how to get them thnx; I beleive that it is not possible to programtically access the pinned item list in the start menu, and that things were delibertly designed so that it was not possible to do so. See the following blog post by Ramond Chen for details: http://blogs.msdn.com/oldnewthing/archive/2003/09/03/54760.aspx ...Show All
Connected Services Framework Security options in csf
hi, Is the current security options available in csf only for authentication and authorisation Does it also have message encryption options Is digest the only option to interact with external services thanks CSF Supports WSE security policies. You can encrypt the messages using the security policies. Please refer to CSf Development Guide for details on how to use security policies in CSF ( http://msdn2.microsoft.com/en-us/library/aa439668.aspx ). If the external services are present in the same domain you can use Kerberos policies for encryption , if they are outside the domain, then you have to use certificates. ...Show All
Visual C# How to test for values in a DataRow
Hi all. One small problem....why does not this work for (int i = 0; i < datasetCustomer.Tables["Customer"].Rows.Count;i++) { DataRow dr = datasetCustomer.Tables["Customer"].Rows ; if (dr["customerNumber"] <= 0) { dr["customerNumber"] == GetNewCustomerNumber(); } } The problem is the if statement. Error says: "Error 1 Operator '<=' cannot be applied to operands of type 'object' and 'int'" Anyone Thanks Lars E Values in DataRows are of type "object"; if you want to treat them as another value type, you have to cast them: if((int)dr["CustomerNumber"] <= 0) You should probably also be checking that it's not null in that test, otherwise the (int) cast will throw an exception: ...Show All
SQL Server Migration to SQL Server 2k5
Hi all, I have script written in SQL Server 2000. When i tried to migrate to SQL Server 2005, it is working fine in the SQL Server 2005 installed in Windows 2003 Server . System tables(syscolumns, sysobjects etc)are created in "Database->Tables->SystemTable". But when i tried to run in SQL Server 2005 installed in Windows XP , I'm facing the following problems. 1."The object 'CK_SavedSear_LastL_4B422AD5' is dependent on column'LastLoadedTime' "ALTER TABLE DROP COLUMN LastLoadedTime failed because one or more objects access this column" 2.Moreover none of the tables had been created in "Database->Tables->SystemTable". In both XP and 2003 Server, While installing, i ha ...Show All
Software Development for Windows Vista Workflow Runtime (Beta 2) appears to lose rules file
I have a fairly complex state machine which has a few "ifthen" activities. All the rules are in the .rules file and can be seen by the designer, but when the program is run the runtime complains, saying none of the rules that I have input can be found, e.g.: Activity 'GIsStillInBreach' validation failed: Can not find the condition "ValuationIsBreaching". where ValuationIsBreaching is a simple != comparison. I have added a new comparison, deleted and re-added the if-then, recompiled several times and even shut down VS2005 in case it was an IDE problem. Each attempt seems to work fine in the designer, but not at runtime. Removing the condition completely generates the expected "condition is not set" err ...Show All
Commerce Server Documentation Update Link?
The following link was briefly alive on MSDN yesterday which purported to contain an October update of the CS 2007 documentation. http://www.microsoft.com/downloads/details.aspx FamilyID=d43352eb-4ccd-42f3-8db3-0362f94364f2&DisplayLang=en However the 'download' link did not function. Now the link itself seems to be MIA. As we are always anxious for CS documentation updates, especially ones that can update the help files within the product itself, it would be great to hear when this will be really available. Thanks guys. Commerce Server 2007 Documentation Update 1 is now available for download at http:// www.microsoft.com/downloads/details.aspx familyid=eb8a5fa5-8b21-4abf-aa84-15f85c6a ...Show All
Smart Device Development TextBox, KeyDown and Enter
Hi all, I have written a tiny application with a TextBox on a form, where the TextBox has a KeyDown event handler like this: private void textBox1_KeyDown( object sender, KeyEventArgs e) { if (e.KeyCode == Keys .Enter) { e.Handled = true ; MessageBox .Show( "You pressed Enter!" ); } else if (e.KeyCode == Keys .Escape) { e.Handled = true ; MessageBox .Show( "You pressed Esc!" ); } } When I run this program on a Windows Mobile 2003 device (a Psion Workabout Pro), it works just fine. However, when I run the same program on a Windows Mobile 5.0 device (an Intermec CK61) the Enter key doesn't work. Esc pops up the message, but Enter just beeps and nothing happ ...Show All
Software Development for Windows Vista ASP.NET and WWF
Hi, I need to build anything like this :-) Scenario: 1) The user clicks in a button and start the workflow. 2) The workflow executes an activity and stop waiting for a action user. 3) In any moment the user access a asp.net page and list all workflows pendent and approve and cancel the workflow. 4) The stoped workflow is notified and resume the flow. I'm thinking in use the mechanism to save and track workflows in database, but I don't have idea about how to do this communication between asp.net page and workflow already started. May I to do it using events Thanks in advance. Andre What build are you using, what sample have you tried and what are the build failures you are getting All the ASP.NET samples referr ...Show All
Windows Forms Regarding use of panel
Hi it seems panel and forms are same..what is the use of panel actualy when should we go for panel Thank you... They both inherit from ContainerControl so have identical behavior as far as containing controls goes. A Panel is useful if you want to contain controls in a child window. That gets handy when you want to move them, scroll them or show/hide them as a group. Look at Project + Properties; a set of buttons on the left, each button makes a different panel visible. ...Show All
Community Chat your computer is ready to compute
as many know when you don't have the latest CPU you'll have to wait when your computer is ready to compute. also many handicapped persons, which area doesn't matter, are waiting when their pc is ready to compute. all other persons watch the LED of their HD, when it goes out. and watch the mousepointer becomes to standstill. whatever, the case is, you'll have to WAIT..... why don't you make a neat little program that can be implemented in any MS OS, Vista included, that tells you by sound and vision: YOUR COMPUTER IS READY TO COMPUTE. the idea is seen on Startrek serials which were made by the fabulous Gene Roddenberry. the computer on board of the Enterprise told their crew members that "she" was "rea ...Show All
Visual Studio Express Editions Order Tables Ascending in DataSet
Hey there, I have a problem cause I don't know how to order tables ascending within a dataset, so I need to know how can I do that, I have for example these tablenames within a dataset in this order: "0050Colors" "0021Cars" "0120Symbols" "1008Field" "0215Country" that's the order in what the tables are added into the dataset, and I need them in the next order: "0021Cars" "0050Colors" "0120Symbols" "0215Country" "1008Field" So what would be the code, to order the tables in that way, please help, thanks!!!. Do the tables have to be in an alphabetical order in the da ...Show All
.NET Development Oracle client version for .Net 2.0
Hi all, For using .NET 2.0, is a 10g client required Is 9.2.0.7 oracle client sufficient for this Could you send me some documentation links giving the details.. Thanks a lot for your help, http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconusingadonetproviderstoaccessdata.asp .NET Framework Data Provider for Oracle For Oracle data sources. The .NET Framework Data Provider for Oracle supports Oracle client software version 8.1.7 and later. Note The .NET Framework Data Provider for Oracle is not included in the .NET Framework version 1.0. If you require the .NET Framework Data Provider for Oracle and are ...Show All
Visual Basic existing interface - needs a polymorphic conversion operator defining
I have an existing interface (called IRBase) that is implemented by 10 or so classes, but I need a conversion operator defining so that when a variable of type IRBase is passed to something requiring an int (or string, or double) it can be converted. I'd like to do: interface IRBase Shared Widening Operator CType ( ByVal d As IRBase) As Integer End Interface And dim b as IRBase = new RInt(27) dim i as integer i = b (I know this is a silly example, but its simple) I have found that interfaces cant define operator overloads. I could convert the interface to a base class that the others inherit, but this would be a significant code change and I'd rather not if I can avoid it. Any ideas ...Show All
SQL Server past and future date
How should I find the dates for 3 days past and 5 days future. Such as TodayDate-3 and TodayDate+5 base in the date only, discarding the time JIM.H. wrote: How should I find the dates for 3 days past and 5 days future. Such as TodayDate-3 and TodayDate+5 base in the date only, discarding the time SELECT convert ( varchar ( 15 ), DATEADD ( day , - 3 , GETDATE ()), 101 ) AS [3 Days Ago] , convert ( varchar ( 15 ), DATEADD ( day , 5 , GETDATE ()), 101 ) AS [5 days from now] Adamus ...Show All
Gadgets Reading binary files
Hello, I need to read out a binary file in my Gadget. In this forum, I asked before, how I can read out files in general. Now I've got the next problem The whole code for reading the file looks like this: var oFSO = new ActiveXObject('Scripting.FileSystemObject'); var fTmp = oFSO.OpenTextFile(filename, 1, false, 0); var content = fTmp.ReadAll(); fTmp.Close(); var byteString = ""; for(i = 0; i < content.length; i++) { byteString = byteString + hex(content.charCodeAt(i)); } ..................... function hex(a) { return Number(a).toString(16); } I need a String that contains the file in this form: "AABBCC66339953AB..." I need it for sending it to a XML RPC. But I'm not able to figure it out. It works in general. B ...Show All
