AndrejJst's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. VB 2005 Game Programming: Where to start
Topic says it all. Were can I get Basic to Intermediate help/tutorials/guide with DirectX and VB. I am looking to make a 2D game but need a starting point. John XNA examples will all be in C#, but there's nothing stopping you from programming with it using VB.NET. I did hear a rumor that if you wanted to make XBox360 games using the XNA framework that you would have to use C#, but that made no sense to me since they are all .NET languages and if the Xbox360 is fine with C#, there's no reason it wouldn't handle games written in VB.NET either. But for the PC, yep, you can definitely use VB.NET to program games using the XNA framework. Thank goodness for .NET. Oh, and for 2D development, definitely check out ...Show All
SQL Server how to control the distance between the two matrix? or (matirx and table )
hi everyone: the report show two tables two matrixs how can i control the distance between them I want to set the same distance between the table and matrix or (table and table ) Younger, You could possible place your tables and Matrix each inside of a rectangle and then maintain the distance between your rectangle should get you to your desired results. Ham ...Show All
Visual Studio Team System Cube not updating
Hi I am having major problems with my TFS cube and receive the follwoing error in my event log. I have deleted and recreated the TFSWarehouse in Analysis Services but this still has not resolved the error. I would be most greatful for some help as I have been going round in circles and it is driving me nuts. I am running the Workgroup edition of VSTS TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 20/09/2006 15:18:38 Machine: EALONDEV01 Application Domain: /LM/W3SVC/2/Root/Warehouse-1-128032386670867329 Assembly: Microsoft.TeamFo ...Show All
SQL Server Many different tables sharing a unique ID
Beginner's question: I have many unrelated tables, each with a unique "ID" column, but each ID must be unique in all tables. What's the best way to achieve this Thank you. MS SQL does not support "identity" fields across tables. Each table has their own list. The GUID is a unique id, and will be unique. Also, ID's are not guaranteed to be sequential. Which is what it sounds like you are looking for. Another way to do a global identity field is to seed the value with a number. Start the Person at 1, Bank at 1000, etc. This does cause a problem if the numbers overlap. ...Show All
Visual C++ read excel cell
hi there, i try to read a excel cell value. and i don't know how. i can open the excel file but after that.... maybe you can help me. i try to read the value and show it in an edit field. i am using visual studio c++ 6.0 ; excel 2003 i included all excel.h classes. here is what i tried so far. greetings daniel void CAutoProjektDlg::OnGetvalue() { // Commonly used OLE variants. COleVariant covTrue((short)TRUE), covFalse((short)FALSE), covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR); _Application app; Workbooks books; _Workbook book; Worksheets sheets; _Worksheet sheet; Range range; Font font; Range cols; COleVariant Data; int Value=0; long cell; long *pcell = &ce ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Compile Errors when trying to run Directx sample tutorials
Hey folks, I've just downloaded VC++ Express edition. Proceeded to install the platform SDK, then installed Directx 9 SDK, October 2006. I've installed the first sample tutorial, CreateDevice, and no matter what I do, I get error LNK2019's. I've added the include and lib paths to the project options as well. Any help would be greatly appreciated. Here's the errors: 1>------ Build started: Project: CreateDevice, Configuration: Debug Win32 ------ 1>Linking... 1>CreateDevice.obj : error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall MsgProc(struct HWND__ *,unsigned int,unsigned int,long)" ( MsgProc@@YGJPAUHWND__@@IIJ@Z) 1>CreateDevice.obj : error LNK2019: unresol ...Show All
.NET Development generics and static methods question
I'm learning generics and c#. Is there a way to call static methods in the T class so I can streamline this I have two static methods in T named GetItem and SaveItem that I would like to invoke by something like T.GetItem(astring) and T.SaveItem(t). Reading some of the other posts seems to indicate that a static method can not be used. Thanks for any recommendations. public class FrmUpdateManager <T> : Form { T t; // etc // would like to do something like T.GetItem(tb.Text) to eliminate the if clause // for each type I implement i f ( typeof (T) == typeof ( InsuranceCompany )) { object obj; obj = ( InsuranceCompany .GetItem(tb.Text)); t = (T)obj; displa ...Show All
Visual Basic VB code to convert xml file to .txt
Hi, I have a xml file that I generated with a SQL query. I need the info from that xml file converted to a .txt file. I can not export the sql information to plain text, because I need to modify the info into a certain way as well. The first thing I need to be able to do is to convert xml to .text and then I will get to converting in some format. Can someone please help me or point me to documentation or books to read. I really need to do this and would greatly appretiate the help. Thanks! XML files are plain text files with special tags for each row, and each field. Its almost equivalent to a database but in text format. There are ready made functions to read from xml files, if you are interested. But if you only want t ...Show All
SQL Server MDX help - calculated members make performance very poor
I have a cube in AS2000 where the fact table holds the figure I want to use as a cumulative amount by month, e.g. if £1000 is received in March 2006 and £500 in May 2006 then £1000 is held against March and April and £1500 against every month from then on. However, I need to use this figure on a movement basis and a cumulative basis so that the users can see the development by month, quarter etc. To this end I have developed several calculated measures - one which makes it into a movement, e.g.: Our Share EPI Conv, for which the MDX is IIF ( Not IsEmpty ([Measures].[Our Share EPI CONVbasecalc ]), ([Time].[EPI] .CurrentMember ,[Measures].[Our Share EPI CONVbasecalc ]) - ([Time].[EPI] .PrevMember , [Measures].[Ou ...Show All
.NET Development tableadapter update can't generat an update command
Hi every one, I develop a program using OLEb (MS-Access2003), but there are a problem when I use (Datasource configuration wizard) to add my database which contain 3 tables only one of them has the 4 commands(insert, select , delete and update) and the other have only (select and insert) commands and I want the update and delete Command in all table any one can help me PLZ Sorry, I forget to tell you that I use C# and IDE VS2005 If those tables are joined, the adatper can't do it. It can only generate commands for one table at a time, and each table needs to have a PK on it. And I hate be the bearer of bad news ...Show All
Visual Studio Team System TFS Project Creation Error
Hello, Every time I try and create a new team project. I get the following error: ********************************************** Error Insufficient permissions on the Windows SharePoint Services at WISHDEV to create a new site. Explanation The permissions granted your user name and ID on the Windows SharePoint Services at WISHDEV do not allow you create a new portal site. You must be granted specific root permission by the server administrator. User Action Contact the administrator for the Windows SharePoint Services at WISHDEV and ask that the permission “Administrator” be added to your user account. Warning TF30144: The New Team Project Wizard attempted to roll back all of the steps taken to this point but was unsucc ...Show All
Windows Forms Problem with my custom control crashing the Windows Forms Designer
If i add my control with this.controls.add(Mycontrol) in form_load i have no problems but if i add it from the toolbox, the designer crashes. Here is the code for my control: enum ScrollDirection { Up, Down }; public partial class ScrollingText : Control { private int _LineSpacing; private Timer _timer; Bitmap b; int yPos; ScrollDirection _direction; int _scrollAmount; bool _scrolling; public ScrollingText() { InitializeComponent(); _LineSpacing = 2; this .Text = "Testing Line #1" ; for ( int i = 0; i < 20; i++) this .Text += "\nTesting Line #" + (i + 2); this .Size = new Size (50, 50); _timer = new Ti ...Show All
Windows Forms MSGraph on a .NET Winform
Hello, Can I place the MSGraph control directly in a WinForms application If yes, would it be explain how to achieve this . Thanks lot. Thanks, Vivekanandan Yes. Right-click the toolbox, Choose Items, COM Components tab, check "Microsoft Chart Control". Beware that whomever uses your software needs to have the component installed and registered (c:\windows\system32\mschrt20.ocx). ...Show All
SQL Server Navigation on Matrix Subtotal
Here's a sample matrix: Men Women Total Full Professor 36 12 48 Assoc. Professor 16 9 25 Assistant Professor 11 14 25 Total 63 35 98 Now, it's easy enough to make the values clickable so that somebody can drill down to a report that shows detail about the people. I have also discovered how to turn off clickability on the totals. However, what I really want is for the totals to be clickable so that, for example, if I click on the 63, I see a report that shows all men. Likewise, If I click on the 48, I want to see a report that shows all Full Professors. What currently happens when the totals are clickable is that if I click on the 63, I get all men who ar ...Show All
Visual C# "new" event handlers
Given this declaration: Button myButton = new Button(); void myButton_Click( object sender, EventArgs e ) { MessageBox.Show("Click"); } What is difference between doing this: myButton.Click += myButton_Click; and doing this myButton.Click += new EventHandler( myButton_Click ); I've been doing it the simpler ( first ) way and I haven't had a problem (yet ), but I've noticed that most documentation I've read has it the other way, creating a new EventHandler. I'm not clear on what the effect of creating the new event handler is, and I am yet to discover what "The Bad Thing" is that's going to happen if i do i ...Show All
