Maartin's Q&A profile
Software Development for Windows Vista creating registry key in HKEY_LOCAL_MACHINE accessible by all
Hello, Basically I have an application (dll) that allows admins to configure a system wide configuration that is accessible (read-only) by normal users. The system wide configuration is stored in HKEY_LOCAL_MACHINE\Software. The code of course works on Windows 2000/XP but not on Vista because of, as I suspect, the fact that the information is stored in the virtual store under HKEY_CURRENT_USER. When the admin stores the new configuration and a normal user attempts to use the configuration (in a different security context) they receive a unknown registry key error as the information is, of course, not available. As I understand reading through the forum setting the "run-level" using a manifest file allows me to skip the virtualization and w ...Show All
SQL Server Procedure expects parameter which was not supplied...?
I have this SP definition and below that the code to execute it from .Net. But I'm getting this error: Procedure 'GetNewId' expects parameter '@Key', which was not supplied. Saw an solution on some site which said to set the value of the output param to NULL before calling it, but that didn't do anything. Anyone have any ideas why this may be happening Thanks in advance. CREATE PROC GetNewId(@TableName varchar(32), @Key bigint OUTPUT) AS Declare @NextKey bigint BEGIN TRAN SELECT @NextKey = NewID from ID where TableName = @TableName IF (SELECT @NextKey)IS NULL BEGIN INSERT INTO ID(NewID, TableName) VALUES(0, @TableName) END UPDATE ID SET NewID = NewID + 1 Where TableName = @TableName SELECT @NextKey = NewID from ID where TableName ...Show All
Visual Studio Team System IS VS 2005 premier partner editon mandatory
I already have VS 2005 professional edition do i need to install premier partner edition also. I already have microsoft .net compact framework 2.0 .net compact framework 1.0 sp3 developer .net framework 2.0 .net framework 2.0 SDk -ENU installed on my client. Thanks It's needed when you install Team Explorer. -- Lorenzo Barbieri MVP Visual Developer - Team System, MCT, MCPD EA Win & Web, MCITP DBA IT: http://www.geniodelmale.info EN: http://www.lorenzobarbieri.info I already have VS 2005 professional edition do i need to install premier partner edition also. ...Show All
Windows Forms NativeWindow WndProc and EnableVisualStyles
Hi all, I've been creating a custom tooltip control, and in it I need to tap into the WndProc of the tooltip window to capture TTN_NEEDTEXT notifications. I'm doing this with a NativeWindow derivation. I've been successful, and everything works fine EXCEPT some messages cause an infinite loop when I call base.WndProc(ref m); for the unhandled messages. The recursion causing messages seem to be only the messages that occur directly on the tooltip (like WM_MOUSEMOVE and WM_LBUTTONDOWN). This problem goes away if I don't EnableVisualStyles() for the application. Here's the implementation for my NativeWindow derived class' version of WndProc: protected override void WndProc(ref Message m) { bool handled = this.toolTip.WndProc( ...Show All
SQL Server ASP.NET cube administration?
Hi all! We would like to create an Intranet based cube administration tool. Power users should be able to process cubes and dimensions. This works and all the cubes, dimensions and even databases from the SSAS can be displayed in the web! ASP.NET@C# combined with Microsoft.AnalysisServices offer a lot of very good possibilities! But we still have a problem: How ist it possible to show some kind of progress bar (maybe in a self refreshing iframe or a new window ) When a cube/dimension is processed the user does not get ANY feedback (of course the webserver waits to finish the process() method. I tried to start a different thread an this even works! I want to show our powerusers at least some kind of progress (%, ev ...Show All
Visual Studio Team System Cvapipath.cpp error
I attempted to do what the last user on this thread suggested on there was no change the same CVApipath.cpp error exists. THe kicker is nothing has changed in the application. I just opened it from the other day and now it' cant get the latest. Following solution below did not work for me. Thank you for the links. I solved my problem by re-installing MDAC. Since I am running XP SP2, this was a little cumbersome... If anyone else has this issue here's the solution: locate the mdac.inf file in c:\windows\inf, right click and select install. When prompted for a location, point to either c:\windows\servicepackfiles\i386 or c:\i386. Everything works as expected now. Jason I need a little more informa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Input with Keyboard?
Has anyone else been able to figure this out I have been staring at the example code but keep getting lost in what it all does. Does anyone else understand it and can maybe break it down to a few lines of code for me to at least start from Thank you. Buddy Lindsey Slapped up a rubbish example on 3dbuzz (excuse the dodgy casting on the sprite movement, just mucking about): http://www.3dbuzz.com/vbforum/showthread.php t=137227&page=3#post1114875 ...Show All
Visual C# Error when using IAccessible in C#
hi i write program in c# that use MS Active Accessibility. i have some problem in this code. Code: ... [DllImport("oleacc.dll")] public static extern IntPtr AccessibleObjectFromPoint(Point pt, [Out, MarshalAs(UnmanagedType.Interface)] out IAccessible accObj, [Out] out object ChildID); ... IAccessible pacc; object childID = new object(); Point pt = new Point(e.X,e.Y); IntPtr result; result = AccessibleObjectFromPoint(pt, out pacc, out childID); if( result.ToString() != null) label1.Text = pacc.get_accName(childID); ... when i compiled it don't have error but when run it break program at last line and show this error "An unhandled exception of type 'System.NullReferenceException' occurred in GlobalHookDemo.exe Additional ...Show All
SQL Server Creating Total to-date query...
I am trying to create a query where the data is for a time period but there is one column that would show a Total-to-date. I've tried google and searching this forum but everyone talks about year-to-date or period-to-date but I don't want that. I would like to do : [from whenever data started being entered]-to-date I know I can hack this by doing an aggregate like so: WITH MEMBER [Timesheet].[Date].[TimeChargedTotal] AS 'Aggregate ( { [Timesheet].[Date].[Year].&[1900].&[1].&[1]:[Timesheet].[Date].[Year].&[2006].&[9].&[15] } )' Here I am betting on the fact that there is no data before 1-1-1900 which is a safe bet, but I'd prefer to do it the 'right' way if there is one. Thanks. I am not familiar ...Show All
Visual Studio One or more rows contain values violating non-null, unique, or foreign-key constraints
Hi. i was Trying To read report and i got this error through reportviewer I'm No sure of wats wrong. I tried Searching the net it seems to be the Dataset Prob. But im positive Dataset is working as im using VWD dataset to bind data. even had a preview Which get the data i want. So it means its working. Which then shows that its Reportviewer thats gibing me this error. Appreciate any help thx "An error has occurred during report processing. Exception has been thrown by the target of an invocation. Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. " I was having the same issue. Thank you Long Xue. I del ...Show All
Software Development for Windows Vista Using WINFX and WWF from Visual Studio Express
Is this possible Yes and no. You can use WF (they ask us not to use WWF anymore) - but you can't use the designer (which of course is one of the main reasons to use WF in the first place) - see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=215491&SiteID=1 ...Show All
.NET Development Obtaining unicode char from Hex string
Hi, I got Hex value as a string. I need to obtain the char representing the hex value contained in that string. How do I do that in .Net Eg: Dim hexVal As String = "0646" Dim theChar As char = get Char from hex string() 'Must return ------ Thanks Noorul I goofed on that first code block... so you are welcome to give me a good kicking for it, instead of DirectCast try this instead: Dim myChar As Char = Convert.ToChar(num) ...Show All
Visual Studio Team System Team Portal issues
The SharePoint project portal sites seem to be crashing quite frequently, especially when I try modifying pages on the site. Has there been a general consensus regarding this instability Personally, I've never heard any problems like you describe - and I've done some major customizations of the portal. When you say "crashing" what do you mean M. ...Show All
Visual Studio Express Editions How To Open Window In Internet Explorer When we click on link on any website
I am developing application which downloads file from internet. I want to know that how to open a window in internet explorer in any website when user clicks on any link. Thanks in advance Regards Ketan Hi, Ketan According to what you've said, I guess that what you mean is to dev an IE plug-in function. Plug-ins such as these may come in the form of basic Browser Helper Objects (BHOs). Here are BHO introduction and how to dev BHO in VS2005 Internet Explorer is just like any other Win32-based program with its own memory space to preserve. With Browser Helper Objects you can write components—specifically, in-process Component Object Model (COM) components—that Internet Explorer wil ...Show All
SQL Server UPDATE table with values from another table
I have this one big table containing 26 mil records that I have to update as follows: 1. Table 1 (tblA) – 26 mil records a. Column LNKana – stores last names as nvarchar in Japanese Katakana b. Column FNKana – stores first names as nvarchar in Japanese Katakana c. Column FName – needs to be updated with English equivalents of first names in Katakana d. Column LName – needs to be updated with English equivalents of last names in Katakana Two nonclustered indexes: ix_LNKana si ix_FNKana 2. Table 2 (tblB) – contains 60,000 records a. Column FNKana – stores first names as nvarchar in Jpanaese Katakana (unique values only) b. Column FNam ...Show All
