rhansen's Q&A profile
Smart Device Development Receiving continuous mouse/key "up" events
My codebase is running under both the Windows Mobile 5.0 API and Win32. Under Win32, I correctly receive mouse & key down/up events via: WM_KEYDOWN WM_KEYUP WM_LBUTTONDOWN WM_LBUTTONUP ...in my window proc. For key events, I use the 30th MSB (0x40000000) to determine whether this is the "first" key down, and "first" key up event of it's kind as per the documentation: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wceui40/html/cerefWM_KEYDOWN.asp However, under WinCE this bit does not appear to be correctly set for WM_KEYUP which means I keep processing all of them as they each claim to be the "first" key up event. I have the same issue with WM_LBUTTONUP ...Show All
Smart Device Development Debugging WinCE 5 apps not working
I'm trying to debug a Compact Framework 2.0 app on a Windows CE 5 device from VS2005 sp1. I assumed this should just work out of the box. When I set a breakpoint in the CF app, deploy and start debug the breakpoint indicates it wont be hit. The little exclamation point icon on the breakpoint indicates 'the specified module has not been loaded'. Any idea what is causing this The app deploys and runs fine on the device but I cannot debug. I thought this was a no-brainer. After some more digging I seem to have uncovered the solution: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=929555&SiteID=1 The device I am using has NetCF 2.0 sp1 installed in ROM and I did not have it installed on my d ...Show All
SQL Server PrevMember Question
Hello, I am running into an issue where CurrentMember DOES NOT return all members at the lowest level. Here's my dimension Hierarchy --> [Week].[Week].[Week Name] I want to have it return the following when I select [Week].[Week Name].CurrentMember Week of 09/04/2006 Week of 09/11/2006 Week of 09/18/2006 But it is returning at the ALL level All Once I can return all members using CurrentMember, I should be able to use CurrentMember.PrevMember to return Total Revenue for the previous member, same as Lag(1). If anyone can shed some light on how to return all members at the lowest level using CurrentMember, I would truly appreciated! If there's an alternate way of NOT using CurrentMember, please feel free to let me kn ...Show All
Smart Device Development Regarding Backup & Restore
Hi, I am developing smart device applications using CF1.0 on VS 2003. I need your help. First look at the following directory structure: My Documents (folder) - Temp (folder) - AA.txt (file) - CCC (folder) - Documents (folder) - doc.txt - Pictures (folder) - Hai.txt (file) The question is "How to backup the above structure as a single file like my.bkp, and how to restore the backup file my.bkp programmatically ". Please send your suggestion or codes. Thanx M. GANESAN Hi You could use a ZIP compression library to create a archive ...Show All
Windows Forms cannot delete last row in datagridview
hi, i just cannot delete the last row of my grid. if norows =1 delete doesnt work! bug ...Show All
Visual C# Problem publishing an application that uses MS-Word
Hi, I have an application that I use to fill a .doc file. It works fine, and now I want to give it to my users, so I go to Build Menu --> Publish to create something I can give them. This process crashes and shows the message: The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference ) Why am I getting that message if the application runs fine I remember that in VB6 there where some options that allowed the programmer to include some extra files required for the application to run. Am I missing something like that in this C# application using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; us ...Show All
.NET Development Find all TraceSources
I am defining several TraceSource Objects throughout my application: TraceSource ts = new TraceSource("test1"); When configuring a config entry for each one of them they all trace just fine: <sources> <source name="test1" switchValue="All"> <listeners> <add name="myLogger" /> </listeners> </source> </sources> But is there a way to configure a listener to log every TraceSource (Please note that I am not talking about assigning a listener to several TraceSources (I know about SharedListeners), I really mean EVERY TraceSource.) The reason for this might be that you have several components and you don't know exactly which TraceSource ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GamePadXNA XInput Sample Program
Greetings! I've just posted my first XNA Game Studio Express program GamePadXNA on my web site: http://www.gnometech.com/products.shtml Click on the Microsoft XNA Game Studio Link and you'll be able to download the ZIP archive. Full source code is included. This program will display all states for up to four XInput controllers. These include all digital buttons, the DPad and thumbstick and trigger analog values. It will also indicate when a controller has been removed and reconnected. I've tested it with two controllers at once and it appears to work as expected. Thanks to Gary Kacmarcik for providing his bitmap font code. It saved oodles of time. If you run across any issues please let me know. Thanks! -Dave www.gnometec ...Show All
.NET Development Send Email from C# Executable
I know how to send an email message from a C# web program but how do you send an email message from a C# executable Thanks for any help you can provide. Mike hii what's the stmp and pass my email in hotmail but i donno what is the stmp and pass g0000d bye ...Show All
SQL Server NEED COMMENTS: Why SQL Server Allow so
this is not a question i need nice comments on this "Why did SQL Server can have same name of indexes on different tables, but Oracle do not" (i maen SQL Server allow same Index name, for any number of time on different tables, but Oracle dont allow to do so) my personal Opinion is , Oracel is Right.(if so then why SQL Server allow this) what about you Regards, Thanks. Gurpreet S. Gill hi thanks to all who send such a nice comments. i think this is a question of long debate, but i find two nice comments i) Indexes having scope only at table level(means, no table can have any relation with index which is on other table), so why to have unique name, for whole database. ii) Oracel having only ...Show All
Visual Basic sort datagridview
I notice automiatc sort of datagridview only allow sorting one column. I I have a table with columns viewname, code, sequence and values and want to sort by viewname, code and sequence, how do I go about it Do I have to create a virtual column and sort on that Oh, I want the datagridview automatically keeps database source updated. Apparently when I naively add an order by query to the datagridview, changes are longer propagated to the database source. ouch! The BindingSource component has a Sort property that can be set for complex sorting scenrios. Applying a sort should have no affect on your ability to update the underlying datasource... If it does, it implies that you aren't editing ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to do buffered input?
in the initial release of the GSE, the documentation tells how to retrieve the current state only of the keyboard and mouse. in my opinion and experience, buffered input is more convenient and accurate because it can capture any "input event" since the last call to update, regardless of the speed of the system. also, the documentation doesnt tell how to retrieve the distance travelled by the mouse since the last call to update, which is very important especially for FPSs, only how to retrieve the current mouse cursor position is documented. Another big problems for people wanting to use a mouse for camera controler is the in ...Show All
SQL Server how to call web service from within Script Component ?
Appreciate if anyone can show me the code to call a web service from Script Component I cannot use the Web Service Task. Because parameters to the webservice are from rows of data inside Data Flow Task. Thanks !! mf915 wrote: thanks ! but the book is not available from rationalpress.com until March :( Don't worry. You can get the beta preview version. It contains the same stuff: http://www.amazon.com/Rational-Scripting-Integration-Services-Preview/dp/1932577211/sr=1-2/qid=1171050141/ref=sr_1_2/102-7891523-4086513 ie=UTF8&s=books -Jamie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cube texture mapping
Here i would like to ask about the texture coordinate for the cube mapping. I know that cube mapping did not use the normal coordinate that we use for normal texture coordinate. But i'm getting problem in understanding how the cube texture coordinate works. Let me put example here. Below is the vertex and fvf declaration: struct CUSTOMVERTEX {FLOAT X, Y, Z, RHW; DWORD COLOR; FLOAT V, W, U;}; #define CUSTOMFVF (D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1 | D3DFVF_TEXCOORDSIZE3(0)) And this is my vertex array: CUSTOMVERTEX t_vert[] = { { 120.0f, 50.0f, 0.5f, 1.0f, D3DCOLOR_ARGB(255,255, 255, 255), 0,0, 1, }, { 520.0f, 50.0f, 0.5f, 1.0f, D3DCOLOR_ARGB(255,255, 255, 255), 1,0, 1, }, { 520.0f, 400.0f, 0.5f, 1.0f, D3DCOLOR ...Show All
SQL Server Msg 3710, Level 16, State 1, Line 1
Hello Folks, I am moving the model & Msdb databases to a different location and I have this error. Thanks Msg 3710, Level 16, State 1, Line 1 Cannot detach an opened database when the server is in minimally configured mode. What command are you using...the Alter DB stmt only works with TEMPDB...I thought I am getting " Cannot detach an opened database when the server is in minimally configured mode." as well. I set the trace flag -T3608 and I get the message when I exec sp_detach_db 'msdb' ...Show All
