kawano1h's Q&A profile
Windows Forms Shell Extension Context Menu in C# strange error.
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer. Here is the problem. If i select one file and use the standard OPEN context menu all is well, but if i select two or more files and use the standard OPEN context menu it seems to want to run through the code for MY created menu. Here is the code in question: int IContextMenu.QueryContextMenu(uint hmenu,uint iMenu, int idCmdFirst,int idCmdLast,uint uFlags) { // The first id to use (should be 1) int id = 1; if ((uFlags & 0xf) == 0 || (uFlags & (uint)CMF.CMF_EXPLORE) != 0) { // Create a new Menu Item to add to the context menu MENUITEMINFO mii = new MENUITEMINFO(); mii.cbSize = 48; mii.fMas ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Absolute and relative mouse movement
Usually when dealing with mouse input you want the data from the mouse in two forms, one is absolute that you might use to draw a cursor or know which part of the window/screen a user has clicked on, and the other is relative where you are only interested in how much the mouse has moved. Currently, the MouseState only seems to report the mouse movement in the absolute form. This means anyone using the mouse to control, for example, a first person camera would find their movement limited by the size of their window/screen. I have tried playing around with the Mouse.IsCaptured property but it doesn't seem to make much difference, quite possibly because I don't know how to use it. Am I correct in thinking that getting relative mouse input dat ...Show All
Game Technologies: DirectX, XNA, XACT, etc. problem with directx viewer
i have downloaded and installed the directx 10 sdk febrary 2007, but now my models in the directx viewer are send me this error: SAS: error X3539: ps_1_x is not supported in this version of the compiler memory(114,32): ID3DXEffectCompiler::CompileEffect: There was an error compiling expression ID3DXEffectCompiler: Compilation failed SAS: Could not load effect 'Resource:#103' Failed to load default material at mesh: 牟摥慟牲浥 material:1 with the october 2006 directx sdk, the meshes were show fine, but today y have update the sdk and now the directx viewer don't work, somebody can tell me how i can fix it i understand now the issue, but my video card support shader models 3.0 and i 'm working with 3dma ...Show All
Visual Studio Express Editions Change a window position
I am a beginner and I was wondering how I could make a form/window look like its sliding accross the screen. I have set up the timer and that, I just need something like: Me.location = (x + 1, (middle of screen)) Thanks Nathan "make a form/window look like its sliding accross the screen" "now how do I get it to move one pixel or many pixels to the right (or left" Answer: Me.Location = New Point(Me.Location.X() + 35, (Screen.PrimaryScreen.Bounds.Height - Me.Height) \ 2) Yeah, Right We obviously wasted our time. How about not wasting it any further in future ...Show All
Visual Studio Express Editions Help with class templates
help, I have a small project to try programming templates classes, BUT IT WILL NOT LINK. The linker complains of unresolved externals. Can anyone see what the problem is; I am darned if I can spot it. Thanks, Pat Pope the main program is :- #include "cBinTree.h" int _tmain( int argc, _TCHAR* argv[]) { cBinTree<cDataItem>* binTree = new cBinTree<cDataItem>; <<< PROBLEM HERE } *************************************************************************************************** AND BinTree is :- pragma once #include "cDataItem.h" #include "cBinTreeNode.h" #include "console.h" template < class T> class cBinT ...Show All
Windows Forms Progress Bar - ListBox
Yeah, I fugured that out when I translated it into C++...I had noticed that it didn't actually add the event handler. Anyway, there is only one more problem, the cpu usage isn't very acurate compared to that of the Task Managers. I have a label that I use to show the % of the CPU Usage using your method, but It ALWAYS either stays at 0% or 100% while the progress bar jumps around like crazy.... This is what I am using to show the label: this ->label1->Text = "CPU Usage: " + Convert::ToString(( int )CPU->NextValue()) + "%" ; I have tried using other processor timers but nothing seems to make a difference. The one you provided works like a charm on the progressbar, but then again the label doe ...Show All
Windows Forms DataGridViewComboBoxCell first item selected by default
my datagridview has a DataGridViewComboBoxCell in the column with index 4, well this combobox is bound with different data for each row, but when dataridview is shown I want the DataGridViewComboBoxCell to do something like this: comboBox.selectedItem[0] = true; in order to show the first value selected by default, how can i do this Regards Joseph ...Show All
.NET Development Help with the syntax for LIKE query
Hi, Just got a quick question regarding syntax for SQL. im trying to search two tables using 2 variables called searchtype and searchterm in the following query objCmd = new OleDbCommand ( "SELECT asset.*, pcdata.*" + "FROM asset INNER JOIN pcdata ON asset.pcsn=pcdata.pcsn WHERE '*@searchtype*' LIKE '*@searchterm*'" , objConn); objCmd.Parameters.Add( "@searchtype" , txtSearch.Text); objCmd.Parameters.Add( "@searchterm" , ddltype.SelectedItem.Value); objConn.Open(); objRdr = objCmd.ExecuteReader(); dgCallBack.DataSource = objRdr; dgCallBack.DataBind(); objRdr.Close(); objConn.Close(); I cant at the moment get the query to return any values. Im pretty sure the error is in the statement as I want the va ...Show All
Visual Studio Team System Missing references..
Good afternoon, I have a .sln with three projects, two are C# and one is VB. I have migrated the code from VSS and converted from .NET 1.1 & VS2003 to .NET 2.0 & VS2005 with Team Foundation. I open the .sln and all three projects seem to load without issue, however my references for the VB project are missing and I'm unable to add them. Has anyone run into this issue and found a resolution Thank you! I can build the .sln without issue using VS2003 and .NET 1.1 - when I open the .sln using VS2005 and attempt to build it the needed projects load, however the references for one project are not present. I can right-click on the project and go through the 'Add Reference' procedure, ...Show All
SQL Server Setting up Client PC to access remote SQL Server
Hi, I am a VB6 programmer and I'm really new to SQL Express, I have always used ACCESS because it was so easy to deploy. I've now written a VB6 program which uses SQL Express and I want to know how to deploy it. Basically my PC will host the SQL database as it has SQL Express loaded onto it. I now want to install my EXE onto other Client's PC and have them read/write to the database on my machine. Besides the EXE program, what software do I need to load onto the Client's PC so they can access my SQLExpress database... (eg: Net Framework, SQLExpress, etc). Also, if my machine is called ABC123, in my connectionstring do I just put in ABC123\sqlexpress as the datasource.. . Will this be enough for the other PCs to connect to mine ...Show All
Visual Studio Express Editions Didn't get expected dll file, why?
I am new to VC express. I just created a dll project and hope as a result, it can produce iNote.dll file in debug dir. But even though build succeeds, dll file never shows up. I can only see some intermediate files: iNote.dll.embed.manifest iNote.dll.embed.manifest.res iNote.dll.intermediate.manifest How can I get the dll file 1) Press alt+F7 (or goto project->properties menu) 2) On the left select "Configuration properties" then "General" 3) On the right click the drop down box for "Output Directory" 4) Select "Edit" from the drop down list 5) Click the "Macros" button 6) Scroll down to the bottom and examine the "TargetPath" e ...Show All
Visual C++ differnces between kernel mode and user mode debugging
Hi I hope this is right forum to ask this. I want to learn debugging internals.I am beginner.They say that Ollydbg is user mode debugger but Windbg is kernel mode debugger.What are the differnces between kernel mode and user mode debugging and debuggers. What information do i also get by kernel mode debuggers Thanks See the following Wikipedia Article http://en.wikipedia.org/wiki/Kernel_mode ...Show All
Visual Studio Express Editions ??? making sense out of log files - I need some help
OK here goes it, it's my first post and I'll start with 2 questions, sorry... these are the log files I have: Sep. 07,2006 08:08:13 ***** Start Sequencer Control Window Ver.1.49-7.5 Aug. 19, 2005 ***** Sep. 07,2006 08:08:13 USE TEMP. - VOLT. TABLE=1 , USE VOLT. OF HEAD INFO.=1 Sep. 07,2006 08:08:13 HEAD VOLTAGE No.1= 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 Sep. 07,2006 08:08:13 HEAD VOLTAGE No.2= 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 Sep. 07,2006 08:08:13 Head,Axis = FFFFC Sep. 07,2006 08:08:13 FIX data 40 400 10 255 0 40 Cartridge=1 600dpi FIFO=1 ----- Sep. 07,2006 08:20:08 [MAIN]switch ON Sep. 07,2006 08:20:40 Unit 1 - 1 4 00100100 00652985N264 00A773 Sep. 07,2006 08:20:40 Unit 1 - 2 4 00010010 00632862N262 00A717 Sep. 07,200 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA -> Net. Framework 3.0 ???
Well...after I defeatet the f***ing error with the "Invalid Search Path" (just remove 3 Environment variables, the VS2005 Professional Deinstallation routine did not delete :-( ) the whole thing seems to work properly. I allready know, that with the Beta of XNA it's impossible to create a game, that will run on another machine without VC# and XNA Beta so my question is: On what kinda way the XNA Framework will be published in the future to give normal users (without VC# and XNA Beta) the option of playing XNA Games Will there be a special XNA Framework, the user has to download before he can play the games, or will it be implemented in the next NET. Framework Release That should be a supporte ...Show All
.NET Development How to use GC effectively?
Hi! How to use GC effectively Regards MMCool Hi, GC has been optimized for most of the applications and so you dont need to touch it.. but if your are facing some memory issues you can go thorugh GC methods which can give you some handle on it. .NET 2.0 has introduced some new GC methods specifically for cases where a small managed object wraps large unmanaged objects. http://DotNetWithMe.blogspot.com vikas goyal ...Show All
