bkizzy's Q&A profile
Visual C++ devenv compile unit
Is there any reason why devenv could not accept a single compilation unit compile command (I would like to use a third part tool to issue not only a build command, but also individual file compilation.) Is there any way to compile a single file on the command line using the rules within the SLN No, it does not. You will haveto pass a project. The only tool that has a single file compilation option is by callingthe compiler driver itself, cl.exe. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C++ Should generate C4407 warning in VC++ 2005??
Consider the following code: #include <iostream> class CVA { public : }; class CVB : virtual public CVA { public : }; class CB0 { public : CB0() {} void TestFunc() { std::cout << _T( "In CB0::TestFunc" ) << std::endl; } }; class CB1 : public CB0 { public : CB1() {} void TestFunc() { std::cout << _T( "In CB1::TestFunc" ) << std::endl; } }; class CD : public CB1, public CVB { public : CD() {} void TestFunc() { std::cout << _T( ...Show All
Windows Forms DataGrid Locks Up When Scroll Bar Should be Shown
I am working with C# and .Net 1.1 (VS 2003). I have a DataGrid docked to fill on a dialog. I then dynamically populate the table that is the source for the DataGrid one element at a time. It seems like when the visible portion of the DataGrid fills up and a scroll bar or two should be displayed the dialog freezes. The dialog still processes some commands. I can scale it up or down but it just gets filled with white space. No other actions are available to the dialog or internal DataGrid. If I cover up the dialog then show it again it is still has stuff visible and is not totally white. So my question is: What can be done to prevent the dialog from freezing or locking up This is what I think is happening. You are receiving the me ...Show All
SQL Server problem with rank on freetexttable
Hello, I'm having a problem that I'm hoping one of the Sql Server guru's on this forum can help me with. This applies to SQL Server 2005. I'm working on an appliction that used the FTE index ranking feature. We're having a problem that all of the rank values start coming back as ZERO. If we rebuild the index for the effected table, the rank values start working, but eventually it stops working again. Recently, the rank values have been reverting to zero within a minute of the rebuild. For reference, below is the sql code that we are using to get our search results. select row_number () over ( order by RANK DESC ) as rowNumber , [KEY] , rank from freetexttable ( searchIndex , *, 'outlook' ) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Semi-Transparent Mesh
Hi, I am loading a mesh on my form and then rotation it about the y axis. However, my mesh seems to be semi-transparent, how do I fix this It's like you can see through the abdomin of the tiger model an see the fur and strips that are on the other side! I've linked to a screenshot but, it's hard to see unless the model is moving. Also, attached is my code. http://eggce.com/images/tiger.gif using System; using System.Drawing; using System.Windows.Forms; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; using Direct3D=Microsoft.DirectX.Direct3D; using System.IO; namespace MatricesTutorial { public class Matrices : Form { // Our global variables for this project Device device = null; // Our rendering device ...Show All
Visual C# Debugging system error
Hi All, I ran into a problem yesterday whereby I get the followig system error when I try to debug a basic "Hello world!" Windows application: "Error while trying to run project: Unable to strat debugging. The binding handle is invalid." When I first wrote the application it worked no problem. I also installed XNA development SDK but don't know if that broke anything. Funny enough I get a different error when I try to run the sample MySpacewarWin1 (but can't seem to even open this one now...). Running: XP pro on a IBM T41 with 512MB RAM, 1.6GHz Intel Pentium M... Is there a way of fixing this error Obviously I would prefer being able to debug... Thanks! Pano Th ...Show All
SQL Server Time Series only predicts one step
I have a relational table with daily sales for 364 days (52 week span) for 60 stores. I have created a Microsoft Time Series model using store as the case and the historical/actual line charts appear in the Charts viewer for each store. But only one prediction step is shown no matter how many prediction steps I select. I have tried this with an OLAP-based model and also tried a simple DMX query, all with the same result. Thank you in advance for any help with this. P Taylor Shuvro, The relational table has 3 fields: FiscalDate - smalldatetime example: 2/20/2004 12:00:00 AM Store - nvarchar(50) example: "5114 - Mall of America" Sales: int example: 29326 (these numbers are received as ...Show All
Visual Basic Vista ComboBox vs XP drop down
Anyone know why in Windows vista if i have a comboBox in in my program it looks differant in vista. AKA when i drop the combo box in windows xp it has a scroll bar to the side, but if i drop it in vista it just drops the entire length (how many rows i have put in the box) This could get very anoying if i had lots of items. Thanks I'd guess the behaviour is because these are standard windows controls for the OS, you consume the standard behaviour for the OS your running it on. Vista has newer versions of the controls and hence the difference in behaviour. I'd check the MaxDropdownItems property on thecombobox control to determine at which point the scrollbar would appear. I think this property sho ...Show All
Visual Basic for loop issues with concatenating variable with text box
I have 10 text boxes textbox1, textbox2 ...etc I want to modify them with a loop this code does not work Dim w as int For w = 1 To 10 Me.TextBox & w = someStringArray(w - 1) Next w it does noe like the &, I tried + and () and [] and nothing works. Any suggestions thank you. DMan1 wrote: DOes your textbox array already exist Is this VB6 or .NET In .Net you will have to create your own "control" collection/array/list to manage a group of controls! Hi, The array already exists and its a VB6 project. TIA ...Show All
Windows Forms SQL DataGridView Binding
Hello, This may be a really lame question...but I can't figure it out. I have a form with a DataGridView which has its DataSource set to a BindingSource which in turn has its DataSource set to a DataSet which is populated from MS SQL. I want the DataGridView to automatically show any changes made to the SQL table by other users and I've been unable to make it happen. What am I missing I'd post code by there isn't any. I've just dragged and dropped the components then made the selections in the Property window. I had used a timer that would get a new dataset manually and set the DGV's DataSource but this make for a bad user experience becuse the grid scrolls to home regardless of where the user is currently looking. Any ...Show All
Visual Studio Express Editions control windows forms
hi i want to use VB to browse to a website open the link that startes the download and then click on the save button. Is this even possible to do http://support.microsoft.com/kb/313068/ http://support.microsoft.com/kb/174923/ ...Show All
Visual C++ Overriding FindResource() and LoadResource()
I would like to override the Win32 APIs FindResource() and LoadResource() in my C++/MFC app, such that all calls to those APIs (including those buried in MFC) call my versions, and my versions can if they desire pass the call on to the standard versions. The only possible way I can think of doing this is to implement these APIs in my own dll, ensure the .lib for my dll is in the library search path ahead of kernel32.lib (where the standard implementations of these APIs live) and then when I want to call the standard implementations explicitly use LoadLibrary("kernel32.dll") and GetProcAddress(...) to get a pointer to the function. I'd rather not have to supply an extra dll just for this. Is there a better way Mike ...Show All
Visual Basic Big buffers for GZipStream
Hi, im using the following code to compress a file into a memorystream: Dim zStream As New MemoryStream, buf(fileSource.Length) As Byte Dim zipper As New GZipStream(zStream, CompressionMode.Compress, True) fileSource.Read(buf, 0, fileSource.Length) zipper.Write(buf, 0, buf.Length) The problem is, that if the file is about 10MB, then my application will utilize up to 10MB for the zStream, which is why I would like to split the operation up into chunks, so i could write to a file, as the operation goes on. I want to read i.e. 10K's of data from the file, compress it, copy the zStream to a storagebuffer, and clearing it while performing storing operations from the storagebuffer when it reaches i.e. 32K. Is this doa ...Show All
Windows Live Developer Forums Map events not firing in Firefox 2
I just upgraded to Firefox 2. Event though this is still a release candidate ( i know ), the map events are not firing on my app. The events in question are "oncontextmenu" and "onchangeview". These are the ones i use at the moment and so i don't know bout the other events. Will Firefox 2 be supported in the near future A lot of people are already switching, and I have to know what to expect (Question for the VE Team) Thank you. Thanks to Prodactor i think i solved the problem. It seems that the problem was caused by an exception on map.LoadMap because Firefox seems to not support SVG and VML. So a simple try catch resolves the problem. try{ map.LoadMap(new VELatLong(-34.92, 138.59) ...Show All
Visual Studio 2008 (Pre-release) NavigationWindow - Memory/Perf Advantages?
When navigating between pages what are the pros and cons of using navWindow.Navigate(...) vs. navWindow.Source vs. navWindow.Content. Are there signifcant memory/performance advantages with any particular method I read that when navigating the following events occur... -Page2.Initialized <-- Are the GUI objects reinstaniated -Page1.Unloaded <-- What happens to the GUI objects Do they still exist -Navigated -LoadCompleted -Page2.Loaded I have a follow-up question. Is Navigating to a Uri with the KeepAlive property set to true the same as Navigating to an Object ...Show All
