ronlahav's Q&A profile
Internet Explorer Development Point where the panel of exploration begins.
Hello From a BHO, and respect to the iExplorer Window, How can I get the exact point (top, left) where the panel of exploration begins Thanks Deza Right panel of the Internet Explorer; the panel where the page (html) is displayed. How can I access this panel I don’t speak about the HTML Document. I want to access it as a Windows Control (as possible). Specifically, I want to know the Top and Left properties. I think that neither ShDocVw nor MsHtml have interfaces for that. Maybe it is possible through the HWND of the Explorer, but I don’t know. For this last, maybe I need to ask in other forum. Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Demos Released
Hi All, I've just started a new series of XNA demos on my website. So far I have 3 demos: XNA Per-Pixel Lighting Demo, XNA Normal Mapping Demo, and XNA Parallax Normal Mapping Demo. I haven't included any pre built executables with the demos, so you'll have to build them yourself from the source provided with each demo. The demos target the Windows platform, but should run with little or no modifications for the Xbox 360. I chose to only target Windows to reduce the complexity of the source code. The per-pixel lighting demo implements per-pixel Blinn-Phong lighting (including specular lighting). The normal mapping demo implements tangent-space normal mapping. The demo also shows you how to calculate the tangent space basis vectors ...Show All
SQL Server 'Space Available' question
We are upgrading tables, stored procedures and views in a sql server database. One of the enhancements involves clearing almost all of the records in the database. The database contains healthcare claim data. The Deletes removed the claims and cleared tables with aggregated data. Prior to the upgrade teh database reported a 'Size' of 52 gigs with about 14 gigs of 'Space Available'. Post upgrade the database reports a 'Size' of 48 gigs with about 38 gigs of 'Space Available'. We're hoping to get the database to 'give back' some of the 38 gigs of space it is holding. In order to accomplish this we have tried: 1) the maintence utility that 'gets back' space -- 1 or 2 gigs impact. 2) reindex and run space utility -- no impact. Other Constra ...Show All
Windows Forms Catch a click outside the form
The form has no focus (in fact it doesn't get focus). The form has to know if a click happens outside the form. I'm developing a drop-down/pull-down button with a custom dialog-box as the drop object. I got all things figured out except for this one. Maybe you can investigate the Hooking of mouse messages. But it may not work if the messages are not sent to your app, that is, if you form can not get messages because of no focus, I'm not sure how to work out it. ...Show All
.NET Development Reading streaming data from SerialPort
Hi, I new to C#, but i need to developed data collection GUI for my company and im playing with the SerialPort class. My problem is that i cannot read anything from it. This is my setup. Using 1 computer, i have various pairs of VIRTUAL Serial Ports, those pairs create a loopback. Lets say i open one instance of HyperTerminal with Com 4 and another with COM5, whatever i type appers in the other so the loopback works. My GUI is very simple now, 2 comboBoxes, 2 textboxs, and 2 buttons. User picks the send and the receive port in the comboboxes ( 4 and 5 ). Textbox 1 has string to be sent and textbox2 SHOULD receive the same string. buttons are Send ( to send textbox1 string, and READ to read the buffer f ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Suggestion for stock Vertex structs
I notice that the framework provides a few stock vertex structures like VertexPositionColor etc. This is cool but it would be great if these could inherit from an interface which provides a mechanism to get the SizeInBytes and Element information abstractly. These structs currently provide this information as static properties but this is no good if you are are trying to write a generic function that can deal with a number of different types of vertex structures seamlessly. My suggestion is that in future something like an IVertexInfo is provided that lets you deal with these concrete vertex structures abstractly. Perhaps something like this. interface IVertexInfo { VertexElement [] Elemen ...Show All
Visual C++ How to start a console application hidden?
Hello, I have some scheduled tasks on my computer that are executed through a PHP interpreter. PHP is invoked through a helper .bat file which always opens a console window in the middle of my screen. This is very annoying while working on the computer, especially over VNC where screen updates always take a little longer. I've tried to write a small Win32 main() application that just spawns the new process detached and then quits again, after the WinMain() function couldn't give me the command line arguments in a reasonable way (argc/argv) to pass them to an execv/spwanv function. But this has no effect, the new console process (a .bat file) is started but not only that redirection into a file works only in some of the cases, it also ...Show All
Visual Studio 2008 (Pre-release) Terminology Question
What's the official name for: (a) a query that binds to the Enumerable operators (b) a query that binds to the Queryable operators This is for writing a book. I'm looking for something simple (one or two words) that captures the difference in their architectures. Note that (a) includes LINQ to XML queries. Thanks Joe ...Show All
Windows Forms hide rows in datagridview
I try to hide rows in datagridview : datagridview1.Rows[0].Visible = false; but i ve got an error in currencymanager, i ve found samples but anyone helps me well... hope someone can provide a good code sample about this. Joseph Some code like this would do the filtering: this .dataGridView1.DataSource = ds.Tables[0].DefaultView.RowFilter = "id = 1"; ...Show All
Visual C++ ShowWindow() FAIL (return FALSE)
I don't understand why ShowWindow() return a false value. I'm new of Win32, some1 can help me My code bottom (main.cpp) #include "Game.h" INT WINAPI WinMain ( HINSTANCE hInst , HINSTANCE , LPSTR , INT nCmdShow ) { Game game ; HRESULT hResult ; hResult = game . InitWindow ( hInst , nCmdShow , TEXT ( "Tutorial 01: Init Window" ), 800 , 600 , false ); if ( FAILED ( hResult ) ) { DXTrace ( __FILE__ , __LINE__ , hResult , DXGetErrorDescription ( hResult ), TRUE ); return 1 ; } if ( FAILED ( game . Run ()) ) return 1 ; return 0 ; } Application (Game.cpp) #include "Game.h" LRESULT CALLBACK MsgProc ( HWND hWnd , ...Show All
Windows Forms When is GetStandardValues called?
The following code implements a simple derived control with a public property called "MyProp". This property has a drop-down list with valid values: using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.ComponentModel; using System.Collections; namespace DefaultValuesTest2 { public class MyTypeConv : TypeConverter { public override bool GetStandardValuesSupported( ITypeDescriptorContext context) { return true ; } public override bool GetStandardValuesExclusive( ITypeDescriptorContext context) { return true ; } public override StandardValuesCollection GetStandardValues( ITypeDescriptorCon ...Show All
Windows Forms DataBinding - enforce read
I got an edit dialog which has a tab control with multiple pages. On each page of the tab control are input elements like text boxes. Validation of the inputs should occur when the dialog is confirmed with the OK button, e.g. check for mandatory values. All input controls on the dialog are databound to an underlying class instance. The problem is that the databinding only seems to become active when the control becomes visible. So if the user opens the dialog, changes something on the first page and confirms the dialog, validation errors occur for the pages of the tab control he has not visited - mandatory values are supposed to be missing. The validation triggered by ValidateChildren triggered the validation of all the controls on the ...Show All
Software Development for Windows Vista An error occurred while attempting to create the directory C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Item Templates
I keep getting an access error when these 2 installs try to create a folder saying "An error occurred while attempting to create the directory C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Item Templates" and it's driving me nuts. I have never had trouble installing .NET products. during the install for these: Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP Visual Studio 2005 Extensions for .NET Framework 3.0 (Windows Workflow Foundation) Hi, I have couple questions for you. Is your machine 64 bit or 32 bit Because it may be trying to create the directory in the wrong place if its x64. Are you using Vista If you are using vista you have to be logged in as admi ...Show All
SQL Server Trying to Connect to SQL 2005 reporting through SQL 2005 Management Studio
Hi All, I am having problems with SQL 2005 Reporting services! Everytime I try and access it through SQL 2005 management studio.(See link to screen shot!) I have tried everything I can think of! New to this! Many Thanks Jonno Screen Shot ...Show All
SQL Server SQL stored procs
can anyone help me out.... i need to compare a date that was retrieved from the database and the system date then it must be coded in the stored procs of the database.. help!!!! Hi, perhaps you may have a look on the Date function available in SQL Server. Time can be added through the function DATEADD, days can be e.g. added with DATEADD(dd,1,GETDATE()) --adds one days, you can also substract days from the days by using negative figures. HTH, Jens SUessmeyer. --- http://www.sqlserver2005.de --- ...Show All
