MattGsy's Q&A profile
Visual C++ filling and writing multidimensional vectors
Hello, I have 3d image data ("pixelData") that I read into a dynamic array (size "countPix"). This data is then loaded into a 3d vector so that I can easily rotate the data. I have included the code below which does seem to do the job. However, it is really long winded with loads of loops. Could someone tell me how to make this code work faster Thanks in advance. //images upside down so sort em ... Uint16 *pixelsort; pixelsort = new Uint16 [countPix]; //multi dims dinnae work so use vectors to reverse vector< vector< vector<Uint16> > > my3Ddata; //generate a 3d space of the correct size my3Ddata.resize(irows); for(int i=0;i<irows;i++){ my3Ddata .resize(icolumns); } for(int i=0; ...Show All
Game Technologies: DirectX, XNA, XACT, etc. tiled background texture
Hello there, I'm wondering if it's possible to draw the 2D background of my game with a texture that repeats. If this isn't clear think of the background of Arknoid where the background is simply a rectangular texture that's repeated over and over to cover the background. Thanks, Barranger You could just draw your background texture over and over again until you covered all the area that you needed to cover. I don't think there is anything built into XNA to do this for you. ...Show All
SQL Server Disable Paging
Hi Is there any way I can disable paging and show all record on one page Regards Amit ...Show All
Visual Studio Express Editions Making a working form out of Visual Basic Express
Hi, I was wondering if there was someone who knows how to make a simple application using the checkboxes in Visual Basic Express what is the code to store the info on those and what is the codes to go with two buttons, one to clear the info / cancel and the other to send the checkbox marking info in an automatic text email. I just got through with lesson 2: Getting Started: Beginners Guide to Visual Basic Express. Thanks! I'm not sure what I'm doing here's my current code Public Class Form1 imports System.Web.Mail Private Sub Label4_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub Private Sub Label1_Click( ByVal sender As System.Object, ByVal e As Sy ...Show All
Visual Basic question about testing if my form is still open in my MDI form
I have an MDI. I open a form, then when the user clicks Accept, I do: myForm.Close Then in my MDI parent form I need to check if the form is still open in which case I should do nothing. And if It s closed, I should create it and show it agin. so here is what I do: To open the form from MDI I call: myChildForm.Show() To close, I do in Accept_click event of myChildForm I call: me.close in MDI parent form, to check if the child form is open I do: If myMdiChildForm Is Nothing then Instantiate new instance and show it End if The problem: Ny code doesn t execute the code: Instantiate new instance and show it like if it doesn consider that myChildForm IS Nothing after I close it . Any Idea pls Thanks That ...Show All
Visual FoxPro BUG: Microsoft Visual Fox Pro ODBC Driver (6.1.8630.1)
The bug is: driver doesn't support autoincrement fields: while trying to use any table, contains autoincrement fileld, the exception "Not a table." is thrown. It is not a bug. ODBC driver is documented not to support versions later than VFP6 (and won't be updated - latest was MDAC2.5 or 2.6). Use VFPOLEDB driver instead. ...Show All
Windows Forms Master/Detail issue in DataGridView using DataGridViewComboBoxColumn
Hello everyone, In the last few days I was trying to create a DataGridView that shows data from two tables related with a foreign key constraint. The DataGridView should have 2 columns. The first one, called 'Name' is a bounded column that gets data from the first table and the second column is an unbounded one of DataGridViewComboBoxColumn type that shows 'details' from the second table. This is a classic example of, lets say, region-city data binding. The DataGridView is formed by a number of regions (each region represents one row in the grid) and for each region a combo box shows the cities from that region... I've tried the examples from MSDN and even the given examples, but with no success... The error I get is: &q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't deploy to Xbox 360 from GSE
All Apologies but this is a repeat post from 31-Jan buried inside another thread that appears to have died. I can't push code to my Xbox 360 from GSE. This issue has been reported by other people and their problems boil down to either having entered the 25-digit code incorrectly or, in one case, that their router didn't properly support UPnP. I've regenerated, accepted and reconfigured the key *many* times, making sure I don't have any 0's, 1's, 5's or 8's in the generated key to avoid confusion. I understand this is a one-time key so I'm not reusing an old key. I am most definitely getting the key right and choosing accept, not cancel. I have downloaded and installed Windows Media Connect (I'm running Windows ...Show All
Visual C# Is it possible to "synchronize" 2 clients?
I have absolutely no idea where to post this, so just tell me if I did it wrong. After going through half the internet...okay that's an overstatement, but you get the point. I couldn't find the answer to this...maybe odd ...question. Okay so here's the problem. what I want to do is have 1 server (ASP.NET) and two client browsers. These two clients need to display the same page. And then (for the sake of an example) this page would have like a button or something. Would it be possible to have it so that if you click that button on client A it would also happen on client B I need to know in the first place if it is even possible. If not, just say so and I'm already happy :) If it is, I need some basic info on how to go ab ...Show All
Visual Studio Express Editions pressing enter once you have entered a web address
Hi, Im making a internet browser in vb.net 2005 express edition, What i want it to do is once the user has added the website address in the address bar that they then can, press enter key on the keyboard what is the code to make it work well you would implement the keydown event for the textbox. When they press enter then navigate the browser! so something like this: private sub Textbox1_KeyDown(byval sender as object, byval e as KeyEventArgs) handles Textbox1.KeyDown if e.Keys = Keys.Enter or e.Keys = Keys.Return then Me.theWebBrowserControl.Navigate(Me.Textbox1.Text) end if end sub ...Show All
SQL Server Scripting Task and VBA Macros
How do I run Office macros by using Automation from the Scripting Task in SQL Server Integrated Services As for the errors I get the program doesn’t recognize CreateObject, and oBooks.Open which I belive is because I don’t have the right library referenced. ...Show All
Visual Studio Express Editions VC# and Word XP
After I've installed VC# Express 2005, every time I start up Word XP it asks me to install some feature related to VC# 2005, and asks for the path to "vcssetup.msi", but there's no such file neither on the VC# CD nor the Office XP CD. Anyone who knows what this is about Rich Well I just tried to do a repair on the Office package, and that fixed it. Thanks very much! Rich ...Show All
SQL Server Report Builder
I am attempting to create a report using the report builder. I can see the button for the report builder on my report server but nothing happens when you click it. I also attempted to go directly to the url but once again nothing. Finally, I attempted to run the application directly from the file structure and in doing so there I got the following errors. Could not find file 'reportbuilder.chm.deploy'. I created a junk text file with the same file name and attemted to run the app again and this time I got a error that said: Could not find file 'reportbuilder.exe.deploy'. After that I created another junk text file and named it the same as that. This is part of the errors that I recieved. This doesn't suprise me based on the hack I di ...Show All
SQL Server Merge Replication error while applying Snapshot
Hi, i am getting the below error while applying running the Synchronization agent for the Subscriber. I have created replication topology with one central server and one subscriber. Here central server has windows server 2003 and subscriber has windows XP. Both are having SQL server 2005. After creating the merge subscriber, i am runnnig the Synchronization agent manually for the first time. While running that i am getting below error. Anybody aware of this error. 2006-06-24 00:26:00.175 Applying the snapshot to the Subscriber 2006-06-24 00:26:02.722 The schema script 'D_NUM_7.sch' could not be propagated to the subscriber. 2006-06-24 00:26:02.784 Category:NULL Source: Merge Replication Provider Number: -2147201001 Message: The schem ...Show All
SQL Server Need example -- SQLCMD -y
Hi, Please can any one let me know jhow to use -y option with SQLCMD. Hi : If I don't want to output in console, I want to set this value to a variable, How can I do Any help would be much appreciated! ...Show All
