MarkSPA's Q&A profile
Software Development for Windows Vista Tablet PC Input Panel fails to recognize any writing after calling SetInputScopes API
Hi, I found that a call of SetInputScopes API with certain parameter makes Tablet PC Input Panel bad state; it fails to recognize any writing and never recover except closing and re-opening the panel. OS: Windows Vista Ultimate Edition RTM Build Language: Japanese Prosessor: x86 Here is a reproduce procedure. Open the Tablet PC Input Panel. Call SetInputScopes API with passing Japanese character (such as " ") into ppszPhraseList . Select "英 語" (which means "English words") on the panel. Write something. Then the Tablet PC Input Panel never recognize on any window and in any mode. I tried SetInputScopes2 and IEnumString but the result is same. Will phrase list support non-English language in fu ...Show All
Software Development for Windows Vista Shared User Data Location
What is Microsoft's recommended folder location for sharing files among users (so all have the ability to create, modify, and save files) There seems to be two possible places: * CommonAppData => C:\Program Data\[company]\[App Name]\ * Public=> C:\Users\Public\ The problem with [CommonAppData] is that it is a hidden folder so it is not a user-friendly path. The files that will be stored are intended to be browsed, opened, and saved, by all users. Also, does it break Vista's guidelines to have a shared folder with full control granted to everyone in the C:\ProgramData folder [Public] seems like a good place but I haven't found much documentation on its intended use. Also, using Install Shield, [Public] is not a defined location, so ...Show All
.NET Development ignore/remove Namespace URI
I have a xml file with NameSpace on the root node let say xmlns="http://www.mysite.com/" i.e. < xml version="1.0" > <customers xmlns="http://www.mysite.com/"> <customer job > .... I am loading this into xmldocument whaty I want's is to ignore or remove NameSpaceURI from the Xmldocument It is making some problem in the parsing of the docuement What Can I do I am working on .netframework 1.1 For the example given, the namespace just gets in the way - adding the namespace manager, passing it to all the queries, and worst of all, having to stick it in front of every single component in the XPath query. I know the XML purists will bristle at this, but it's easier to just ignore it. Just ...Show All
Visual Studio how do I specify additional search path for musbuild for building projects
By default, msbuild goes on searching for missing dlls in paths as shown below, how do I specify my custom paths for dlls (per project ), here's what msbuild spits while searching for dlls: [3432:DEBUG] For SearchPath "{TargetFrameworkDirectory}". [3432:DEBUG] Considered "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Practices.EnterpriseLibra ry.Logging.Sinks.Database.exe", but it didn't exist. [3432:DEBUG] Considered "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Practices.EnterpriseLibra ry.Logging.Sinks.Database.dll", but it didn't exist. Thank you! - Gurpiar. Visual Studio allows you to specify custom / ...Show All
Software Development for Windows Vista some question for custom composite activity
hi all. i have a custom composite activity . and i was got a error message below in run time by invoking CloseActivity method. “CompositeActivity cannot transition to 'Closed' status when there are active chi ld activity.” to my understand , CompositeActivity will set the all child activity Execution status to Initialized , but ,in my composite ,have some decision activity , so the some worlflow leaf activity will never be executed at all. so there is always one more activities which ExecutingStatus is not Closed. so CloseAcitivity CompositeActivity will got above error message. Is there anybody can give me some idea thanks in advance. Matt I had got the answer. I run the activity in new context ...Show All
Visual Studio Express Editions Custom shaped buttons
I've made a form that has a custom shape and now I'm wondering if I wanted say a round button, do I have to do the same thing or is there a proper vb way Thx for that talldude i got the oval shape button thing showing, I didnt get the heart one working though, but is there a more simple way, like can't I use an image and transparency to get a custom shaped button ...Show All
Visual Studio SKU011.CAB solution
Go into Registry Editor (Start, Run, "regedit"). Go to HKEY_LOCAL_MACHINE, Software, Microsoft, Office, 11.0, Delivery. There should be only 1 directory under Delivery, which is your DownloadCode (mine was 90000409-6000-11D3-8CFE-0150048383C9). Select that directory. On the right side of the screen, right-click on CDCache. Change the value to 0. honestly works with out a hitch. Can't thank you enough, Inkhand, for the solution to the SKU011.CAB messages. Worked first time just as you described. I think I "caught" this ailment when I simply went to the MS Office update site about a month ago and downloaded the latest update. Either that, or the Norton Registry cleaner that ran about that time might have ca ...Show All
Visual Basic COM Exception Error - Booking System Logon
Hey Everybody, I'm creating a booking system for my A-Level Computing class using Visual Basic Express 2005 and SQL Server and at the moment im having some trouble with allowing the user to logon to the system. To do this i have created a logon screen and am running a query when the user clicks the OK button after putting in their username and password. This query checks their username and password aswell as their access level against a table in my database and returns either a "1" value for there is a record or a "0" value if there is not. Depending on the outcome the user is either declined access or is allowed access to the next form. This Is The Code: Private Sub OK_Click(ByVal sender ...Show All
Smart Device Development genasm error message when adding DesignTimeAttributes.xmta to my project
This is weird. I have a Smart Device C# library that builds perfectly. When I add a DesignTimeAttributes.xmta to it and rebuild it I got the following error message: genasm.exe(1) : error There was an error finalizing type . Type 'MyNameSpace.MyClass, MyLibrary, Version=9.2.0.0, Culture=neutral, PublicKeyToken=null' was loaded in the ReflectionOnly context but the AssemblyBuilder was not created as AssemblyBuilderAccess.ReflectionOnly. My Namespace is MyNameSpace. My library is called MyLibrary. I have tried to reproduce it on a small project and I can't. I will keep trying to see if I can narrow it down. Thanks in advance for helping. I have one particularly painful case where it would be great to be able to use generics. I'v ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rectangle collision detection help
Hi, I'm learning how to use collision detection in sprites, and I've decided to use Rectangles. Basically, I program the game to make a rectangle around each of the 2 sprites and, when I move the sprites via keyboard input, it moves the box with them.( Now, I'm doing this to test collision detection. Heres the bit of code that doesn't work: if(Sprite1box.Right == Sprite2box.Left) { Sprite1pos.X += 5; Sprite1box.X += 5; } (Where Sprite1box = The rectangle aroudn the first sprite, Sprite2box = the rectangle around the 2nd sprite, and Sprite1pos is the vector of the 1st sprite) This doesn't work - the sprite just moves right through the second sprite. Now, I figured I must've done something wrong ...Show All
.NET Development Subtracting from a DateTime variable
Hi, I have a DateTime variable and I want to set it exactly as a month previous to today's date. The members Day, Month and Year are read only, so I can not make any subtract operation directly on them. Does anybody know how I can do it Thank you in advance. I'm a little curious as to how you (the OP) would want it to handle, say: "31st March 2006 less one month" Because 31st Feb 2006 isn't going to fly... ...Show All
Windows Forms Does winform runs on Single Thread or Multiple Threads
1) I have a form on which one button is there. I wrote some code in the button click event ( suppose Long Running job ) I clicked twice on the form button, then what happens is any seperate thread created or two seperate threads are created if so, which on executes first 2) is windows form runs on single thread or not I need more clarification on these , becoz i didn't get information about this on net Windows form is single thread, therefore it's not thread-safe. Generally speaking, you can't access the control from a different thread. As to your first question, if your job is really long runnig and you don't use another thread, then i'm afraid the form will just hang there, looks like doing nothing becaus ...Show All
SQL Server Dimension Hierarchy members processed incorrectly
I have an interesting problem with Analysis Services that I was able to resolve (sort of), but I would appreciate some feedback to see if this is known behavior, a bug, or if I'm just setting up my dimension incorrectly. Basically, the intermediate members of a hierarchy are showing up incorrectly in my date dimension. For example, when I browse the dimension, I'll end up with a tree that looks like this: All CY - CY 1998 - Qtr 1 CY 1998 - January 1998 - Jan 1, 1998 - Jan 2, 1998 - etc. - ..... - ..... - CY 2005 - Qtr 1 CY 1998 - January 1998 - Jan 1, 2005 - Jan 2, 2005 - etc. As you can see, the years are correct and the lowest element (date) is correct, but the names of the intermediate elem ...Show All
Visual Studio 2008 (Pre-release) Binding a FlowDocument to a FlowDocumentReader
I am trying to make an RSS reader in Xaml using the new RSS API. I've got the basics all done, except for displaying the HTML inside of each post. I am using the HtmlToXaml samples to convert the Html to a Xaml FlowDocument. What I don't seem to be able to figure out from the docs and Google is how to bind the in memory FlowDocument to my FlowDocumentReader. Below is the relevant Xaml: <DataTemplate x:Key="FeedListTemplate"> <Grid Margin="10" Width="Auto"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> </Grid.R ...Show All
SQL Server ASP.Net Server Setup Exception (reqsql.exe)
I was attampting to add application services to a remote server to my ASP database and received and exception. Setup failed. Exception: An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 8152 and the SqlException message is: String or binary data would be truncated. ---------------------------------------- Details of failure ---------------------------------------- SQL Server: Database: [consecdevdb] SQL file loaded: InstallCommon.sql Commands failed: CREATE TABLE #aspnet_Permissions ( Owner sysname, Object sysname, Grantee sysname, Grantor sysname, ProtectType char(10), [Action] varchar(20), [Column] sysname ) INSERT INTO #aspnet_Permissions EXE ...Show All
