Osmose1000's Q&A profile
.NET Development Variables may NOT be used within this expression (in template match)
I'm getting teh above error with the following error indication: /user/options/option[@name=-->$varMenuName<--]//option The following (from http://www.dpawson.co.uk ) seems to indicate this should be possible: I dont suppose the MS DOM is based on the Saxon processor Consider the example below where a top-level variable (the only variables that can be referenced in template match expressions), parameterized from the command line, is used to match only those elements named by the operator invoking the stylesheet. Note that while variables cannot be used as a node test in a location step, they can be used in a predicate. Interestingly, Saxon gives an error on this stylesheet that works fine with XT. I think Saxon ...Show All
SQL Server Show attribute of parent member in parent-child hierarchy ?
If i take the AdwentureWorks cube, and selects the emplyees hierarchy as a row field in the browser, the parent shown will be Ken J. Sanchez. Is it possible to see the phonenumber of that parent and only that If i pull in the phone attribute right to the emplyees hierarchy i'll se all the phonenumbers of all the childs of Ken J. Sanchez... Yes, Just add "parent email" to the DimEmployee source in the data source view. Here is an example of the query to do this in Adventure Works DW: SELECT e . EmployeeKey , e . ParentEmployeeKey , e . Phone , p . Phone AS ParentPhone FROM DimEmployee e LEFT OUTER JOIN DimEmployee p ON e . ParentEmployeeKey = p . E ...Show All
Visual Studio Express Editions Ejecting removable media and activating a program from an outside operation
Hi everyone, I was wondering if there's any way you can eject removable media (i.e. CD/DVD drives) at the click of a button in a program, like in windows explorer. And to activate a feature because of an outside operation (i.e. the opening of another program). Thnx in advance Works great- when i click the button the cd tray ejects. But then the application hangs itself an VB highlights mciSendString( "set CDAudio door open" , 0, 0, 0) and i get this error: A call to PInvoke function <My Programs name>.MainForm::mciSendString' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PIn ...Show All
Software Development for Windows Vista TrackingDataItem table does not populate
I created the TrackPoints as follows and saved to the TrackingProfile Table. I did not see any entry in the TrackingDataItem Table. I am expecting the property “body” will be stored in the tracking DataBase. Do I have to include any other services/Extra code I have added SqlWorkflowPersistenceService and SqlTrackingService to my workflowRuntime. Thanks much in advance. < xml version="1.0" encoding="utf-16" standalone="yes" > <TrackingProfile xmlns="http://schemas.microsoft.com/winfx/2006/workflow/trackingprofile" version="1.0.0"> <TrackPoints> <ActivityTrackPoint> <MatchingLocations> ...Show All
SQL Server Need desperate help on a storedProc
Hi, I'm a PHP Programmer but I need help making a storedProc. basically, if I have orders and want to output the intials of the order taker I need help on that storedProc. So I got the IDClientID select idRessCreatedBy from TBL_quotation where idClient = IDclient now i got the IDresscreatedby and I need to do a substring(firstname,1,1) + substring(lastname,1,1) from tbl_ress where IDresscreatedby = IDresscreatedby Can anyone help me with this storedProc I would very much apreciate it Sorry. That line was from template. I changed the end of this sp for the Return part. You can call this stored procedure from your code(php page) with the value for your @IDclient parameter. --start of t ...Show All
Visual C# Windows xp styles in windows forms
How can I use windows xp styles in a windows form application in studio .net [ STAThread ] static void Main () { Application .EnableVisualStyles(); Application .SetCompatibleTextRenderingDefault( false ); Application .Run( new Form1 ()); } ...Show All
Visual Studio 2008 (Pre-release) How to make a window half-transparent?
Why the flowing codes is invalid for WPF window window.opacity is also How to make a window half-transparent Help me! [DllImport("User32", CharSet = CharSet.Auto)] // API call to get the current window layout private static extern int GetWindowLong(IntPtr hWnd, int Index); [DllImport("User32", CharSet = CharSet.Auto)] // API call to set the window layout private static extern int SetWindowLong(IntPtr hWnd, int Index, int Value); [DllImport("User32", CharSet = CharSet.Auto)] // API call to make the window transpairent private static extern int SetLayeredWindowAttributes(IntPtr hWnd, int clrKey, Byte bAlpha, int dwFlags); priv ...Show All
SQL Server Master Key creation
The syntax to create a Database master key is: CREATE MASTER KEY ENCRYPTION BY PASSWORD = ' password ' Why is the password required I would have preferred that the "BY PASSWORD" clause was optional and let sql generate the master key itself. That way there are no passwords -- anywhere -- that can be used against the data. As I'm forced to type in a password, I am edging toward the world of "key management", where I don't want to go. Barkingdog It is necessary, so that it is possible to detach the database and move it to a different SQL Server instance, or just so that you can back it up and then be able to restore it at a later time when the service master key might h ...Show All
Visual Studio Team System importing groups in AD server 2003
hey there peoples.... i was just wondering if you know, if there is a way of importing user groups in to AD (server 2003) . i.e. from spread sheets thanks Hi darioj, This is the Team Foundation Server forum. You should check with the windows newsgroups for info on AD questions. I believe there is a group dedicated to AD questions. http://www.microsoft.com/technet/community/newsgroups/serveros/win2003.mspx -Matt ...Show All
Visual Basic VisualBasic.Collection vs VBA.Collection
Hi. I have ported a good chunk of my project from VB6 to VB2005. There is a VB6 COM DLL that I will not be porting over any time soon. I have a custom list class with an Add method that accepts a Collection (of strings). The list class can accept data from the COM DLL as well as Collections created within the project. Example; Dim Col as Collection Set Col = New Collection Col.Add("String1") Col.Add("String2") Call MyList.Add(Col) As well; Dim Col as Collection Set Col = DBEngine.GetListFromDatabase '//Where DBEngine is the COM DLL Call MyList.Add(Col) The problem though, is that now, under VB2k5, COM DLL's return a VBA.Collection Type, and the normal collection type is VisualBa ...Show All
.NET Development Invoking a private method
Its possible to invoke a private static method of any type using reflection as if its public. Then what's the relevence of the private access specifier here. Is it a facility to promote/support any specific cause Can anyone explain why it is possible or is it a bug Static methods of a type can't access instance members/methods but if you still want to access them and maintain encapsulation also .. u can declare them both private and static. http://DotNetWithMe.blogspot.com Vikas ...Show All
Visual Basic LPVOID datatype. What would appropriate vb.net argument be for this ?
What about lpData as the argument ---- ( [out] Pointer to a buffer that receives the file-version information. ) Would that be MarshalAs(UnmanagedType.LPStr)> ByRef szFilename as String ) Private Declare Function GetFileVersionInfo Lib "version.dll" Alias "GetFileVersionInfoA" ( ByVal lptstrFilename As String , ByVal dwHandle As Integer , ByVal dwLen As Integer , ByRef lpData As Any ) As Integer Public Declare Function foo Lib "foo.dll"(< MarshalAs(UnmanagedType.LPStr)> ByRef szFilename as String ) As Integer Thank you so much, -greg I mean ' MarshalAs(UnmanagedType.LPStr)> ByRef lpData as String ) ' ...Show All
SQL Server Confusion over SQL 2005 Standard CPU Support
I'm a little confused over the maximum CPU count supported by SQL 2005 Standard Edition (this particular edition supports four CPUs). Does the figure refer to four physical CPUs regardless of whether they are dual-cored or hyperthreaded, or does the figure refer to the number of logical CPUs available to the OS Let me cut to the chase - if I purchase a server containing four dual-core CPUs and install SQL Server 2005 Standard, will SQL Server see the eight CPUs and utilise a maximum of four of these, or will it be able to use all eight (because there are actually only four physical CPUs) Thanks, Chris. Hi Glen, the compare-features url above just says number of CPU's 4 for Standard SQL2005 Edition (includes support ...Show All
Visual Studio Express Editions Accessing an array from another form [RESOLVED]
Hi! I'm trying to access an array from a different form. How can this be done The array is declared as public in the first form. I presume you need to reference the first form in the second but I can't seem to do that, when I add "#include "Form1.h"" I get errors! EDIT: Just found out the solution at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=308327&SiteID=1 by aaronexodus If you read this, thanks Glad to here you have solved the problem. In the future, you can follow up a new post and mark it as answered so this thread can be closed. Doing this can make this thread much likely to appear in the search result of someone looking for a answer, and less likely to appear in the se ...Show All
Visual Studio Formating TextControls in ReportViewer
In my rdlc file I have a city textbox and a state textbox....when i add the data fields to it i get my city to come up when i view the report and also my state but the problem is the spacing between the two is too much....And it does not seem to auto adjust to the length of the text is there some way i can do this using the report viewer..... Some City Some State I need it to be Some City Some State but the way the textboxes are set up is kinda strange....any help Does it have to be two text boxes If you want the state to be right next to the city like that I suggest only having one text box with a modified expression to contain both fields. To do this just look at the expression in the "Some St ...Show All
