AlphaGhost's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. texture coords fromMesh.Intersect
I've been looking all over and i cant seem to find an example. I have a mesh displayed (a simple plane) and I want to get the texture coords of the point clicked. ie if they click in the upper corner i want something like 0,0 and if they click the bottom corner i want something like 1024,1024. currently im using Mesh.Intersect to determine if the plane is selectected. is there any way to get/derive the texture coords from IntersectInformation The eventual goal is to read that pixel's alpha channel.. Thanx.. I'm not ...Show All
.NET Development Using returned value from SqlDataSource1
I, a newbie, can't seem to figure this out or find the answer on forums. Any help you could offer me is appreciated. VS2005, C#, Web forms. What I'm doing is writing the login name and password to Profile.Login & Profile.Password from the text boxes on a login screen only if there is such a combo. I also want to write the person's UserID but can't get it out of the SqlDataSource1. I have an SqlDataSource1 that returns a distinct integer value (134 for example). I can display this value in a grid view, details view, and so on by linking the datasource to the grid view. The query works but... I want to be able to write the returned valu ...Show All
Visual Basic Why is FileLogTraceListener under Microsoft.VisualBasic namespace?
Hi! Microsoft.VisualBasic.Logging.FileLogTraceListener provides great functionality to write stuff in log files. It supports date specific files, file-in-use handling, size maintenance etc. Combining it with <system.diagnostics><sources> section of app.config, the administrator can add several listeners to write the entries written by the application, like Windows Event Log, XML files etc. Does anybody know why it is under the Microsoft.VisualBasic namespace I know that a C# developer can add the reference and use it, but it would be good to know the reason that this feature is primarily intended for VB projects. Hi, File ...Show All
SQL Server Updating data source schemas for cubes
I have built a data source view and a cube. The datawarehouse is in the design phase and the management is not yet sure about the desired facts. So that I have and I have to do a (small) redesign of the database from time to time add/delete columns for the underlying tables. Since now, I'm always recreating the cube, which is a little time consuming. Is it somehow possible to update the data source view and the cube in VS to the current table schemes I can replace the tables in VS, but the scheme will stay the same. No additional columns are recoginzed ... Try replacing the table with a named query, saving ...Show All
SQL Server calculated sum
I have a dataset that returns a measure and a bunch of dimensions. What I need to be able to do is calculate a sum of this measure based on one dimension. ie.. Sum(measure) where dimension = "Top". Any ideas on how to accomplish this. Not sure if this solution will work for you, but you can add a Calculated Field to the Data Set, say: "FilteredQty", defined as (assuming Quantity is an integer): CInt(iif(Fields!Country.Value = "USA", Fields!Quantity.Value, 0)) Then in your report you can use this expression: Sum(Fields!FilteredQty.Value), wich should return 4 rather than 10 To make it dynamic, "USA" can be re ...Show All
Visual Studio VSS 2005 and Visual Studio 2005 Professional Edition
Is Visual Source Safe 2005 included in Visual Studio 2005 Professional Edition I haven't been able to find information on this anywhere. We are worried that we may have to purchase Visual Studio 2005 Professional Edition and also purchase Visual Source Safe 2005. Previously, we only had to purchase Visual Studio .NET 2003 Enterprise Architect which included Visual Source Safe 6. Any information will help. Thanks. Sorry, according with http://msdn.microsoft.com/vstudio/products/subscriptions/chart/ it seems that VSS2005 can only be downloaded if you h ...Show All
Visual Studio 2008 (Pre-release) Button List?
Hello, I'm planning on making a palette toolbar, ie. a toolbar of several buttons where only one can be selected. Could anyone make any suggestions as to the best way to go about this Should it be a list of radiobuttons with their style altered to resemble toolbar buttons, or is there another way Any feedback would be great. Cheers, Andrew It would seem like a ListBox would be the way to go, using its default behaviour only 1 item is selected, and you can alter the appearances using a Trigger. There should be plenty of samples out there of this being done, but if you don't have any you can ch ...Show All
.NET Development Remoting Configuration in VS2005
Hi there, I'm trying to configure the remoting services and channels of an application using the app.config file in VS2005. It keeps giving me an error telling me that it... Could not find schema information for the element 'application' as well an error for every other child element under the <system.runtime.remoting> element. Here is the start of the configuration.... < configuration > <!-- Configiration of the Remoting system --> < system.runtime.remoting > < application > < channels > < channel ref = " tcp " port = " 6565 " & ...Show All
Visual Studio Team System Unknown Error (28002) when installing TFS App Tier
I'm attempting to install the application tier of TFS (Beta 3 Dec CTP) on a Win2k3 SP1 box. My SQL Server box is also Win2k SP1 (SQL 2005) and I'm running into an unknown error every time I try to install. Here is the section in my error log which is stating the error: MSI (s) (E0:58) [13:58:49:918]: Executing op: CustomActionSchedule(Action=CA_QuietExec,ActionType=25601,Source=BinaryData,Target=**********,CustomActionData=**********) MSI (s) (E0:C0) [13:58:49:928]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI3FF.tmp, Entrypoint: QuietExec 12/30/05 13:58:50 DDSet_Status: LANGID: 1033 12/30/05 13:58:50 DDSet_Ent ...Show All
Visual Basic SQL Full datetime evaluation
Hi, I have a datetime field in a sql table. What is the best way to run a query that compares datetime I have tried 'WHERE fielddate > getdate()' however this only seems to go to date level and does not appear to evaluate the time I need precision in seconds.... I wish sql supported ticks!!!! Thanks, Matt. USE tempdb SET NOCOUNT ON CREATE TABLE #Tmp ( DateTimeCol DATETIME ) INSERT #Tmp VALUES ( '2008-01-10 12:03:48.660' ) INSERT #Tmp VALUES ( '2008-01-09 01:03:48.660' ) INSERT #Tmp VALUES ( '2008-01-09 12:03:48.660' ) INSERT #Tmp VALUES ( '2 ...Show All
SQL Server Parallel activations with GET CONV GROUP
Hey guys. I'll try to keep this as short as possible. Was testing out some thresholds with a simple service broker application and ran into something interesting that I'm trying to find a workaround to. I setup a simple service on a single instance, and am transmitting messages to/from the same instance. I assigned a procedure to be activated on the queue, with a max of 20 parallel activations. The procedure originally was reading messages off the queue by following a process with major steps outlined here: Start loop until no more messages to process Call get conv. group with 3000 timeout into variable x If group retrieved ...Show All
Visual Studio Express Editions Using information from a database??
Hi, I have just started an application that will need access to a database( in this case an Access database). I'm very new to Vb and access for that matter, Before I really get started I was wondering a couple of things. 1. I have added a field from my database to my form which in this case displays names, is it possible to use what ever value is in the textbox in your program code. i.e i have added another textbox(not connected to my database) and would like it to output certain words depending on the name displayed in the text box from the database.. Is this possible 2. My ultimate aim for my application is for the user to be able to dec ...Show All
Visual Basic Making a Database
Hi i was wondering if there are any tutorials around on creating databases in vb6 and vb.net Yes, there are tons of them. However, do you want to create the actual database, or do you just want to connect to it ADOX will create .mdb files, and if you have a SQL database installed, you can use ADO.NET to run the SQL that creates a database. You should probably search the web for a question like this, www.codeproject.com would be one place that certainly has tutorials on this stuff, although not in VB6. VB6 is pretty much dead, if you're learning, I would not bother with it. ...Show All
Visual C# Dynamic Binding
I have learned a bout an exciting feature in FORTH that is : you can add new names to the Dictionary"symbol table" with their bindings at run time, what will happen if we add such a feature to the OO programming like c#, will it contradict with Object Oriented. Please i need explanation for the answer, i.e if not possible, why . also if possible i need the positives and negatives for adding such feature, i will be glad if you give me resources to read, to put me in the picture. Hey Wesam. Adding named procedures/methods at runtime by no means conflicts with OO. It does however conflict with static typing, because a compiler the ...Show All
Visual Basic Determining computer from username
Is it possible to find out someones computer name by using the username as a search parameter So that you could find every machine that a user is logged onto. Im guessing it must be possible as net sends to usernames arrive at a computer, but i have no idea how to do it!! Any ideas tell the average user to right click my computer and select the computer name tab. . . but if they are a moron and can't find 'My Computer' or dont know their left clicks fom their right clicks. . . start -> run > cmd /k hostname [enter] and for the imbeciles who can't discern the comma ...Show All
