2162's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Best coding practises with ContentManager and GraphicsDeviceManager ?
I hope someone can give me a decent explanation of this as it's something which I would of thought is pretty essential to writing anything in GSE but makes no mention of it in the documentation. I'm trying to understand the best way for any game elements to access the main games graphics and device, these need to be written in a way that I can give this routine to someone else and they work without the other person having to hard code aynthing in the code I give them. I believe there may of been a more obvious way to do this in beta 1 but I picked things up from beta 2 so some of the examples and documentation is referencing things which have since been taking out. My main confusion comes from the differences in the Windows Game and Spacew ...Show All
Software Development for Windows Vista Link Error occurs utilizing WDK sample asyncnotify
Hi all, I have been trying to use WDK sample (build 6000: WinDDK\6000\src\print\asyncnotify), however visual studio produces link error at: 1>asyncnotify.obj : error LNK2019: unresolved external symbol "long 1>__stdcall RouterCreatePrintAsyncNotificationChannel(wchar_t const 1>*,struct _GUID *,enum PrintAsyncNotifyUserFilter,enum 1>PrintAsyncNotifyConversationStyle,struct IPrintAsyncNotifyCallback 1>*,struct IPrintAsyncNotifyChannel * *)" 1>( RouterCreatePrintAsyncNotificationChannel@@YGJPB_WPAU_GUID@@W4PrintA 1>syncNotifyUserFilter@@W4PrintAsyncNotifyConversationStyle@@PAUIPrintAs 1>yncNotifyCallback@@PAPAUIPrintAsyncNotifyChannel@@@Z) referenced in 1>function " ...Show All
Visual Studio Tools for Office VSTO 2005 SE Deployment Problem
Hi, I am creating a Excel 2007 VSTO COM Add-In using VSTO 2005 SE . It runs perfectly fine when I build it and run the in development computer having VS 2005 . However, when I try to install the setup.exe or .msi file for the same addin in the client machine or Virtual PC having the following configuration: 1. VSTO Runtime 2. Office 2007 3. .NET 2.0 Framework it does not seems to load . I also did caspol settings to make it Fully Trusted . I get the following error " Not Loaded. A runtime error occurred during the loading of the COM Add-in ." Can someone please help me on this Thanks in advance 1. I make load behavior as 3 2. set VSTO_SUPPRESSDISPLAYALERTS=0 3. Launch excel.exe from cm ...Show All
Visual Studio Team System Do I understand VSTestHost and devenv correctly?
Hi, I have a question about the different processes under process counters in load tests (for example, Process -> Virtual Bytes). Do I understand correctly that devenv process reflects resources used by Visual Studio and that VSTestHost process reflects resources used by the application being tested Thank you. Yes, devenv.exe is the Visual Studio process. VsTestHost.exe is the process that is driving the load test -- generating the load -- when you run the load test "local" (without a controller and agents). If you run the load test with a controller and agents, then vstesthost.exe is not started and the load test is driven by the processes on the agents. To monitor the resour ...Show All
.NET Development Opening and Closing Conneciton for a loop
Hi , I am using the System.Data.Common.DBCommand to insert values into a table in a loop with each loop generating a SQL statement and inserting values into the table. The scenario is something like this. This is the code DbCommand insertCommand=null; ICollection rowCollection = (ICollection)entity.Rows; ICollection columnCollection; IEnumerator rowEnum = rowCollection.GetEnumerator(); IEnumerator col_enum ; DataColumn dc = null; StringBuilder insertRowSQL = new StringBuilder(); int iRow = 0; while (rowEnum.MoveNext()) { insertRowSQL = new StringBuilder(); insertRowSQL.Append("INSERT INTO " + entityName + " VALUES (") ...Show All
Visual Studio Team System Publishing unit test results without TFS
Hi, I want to publish some unit test results to a system testing team without the use of TFS. I've recently moved over from a java project were all junit test results were published to system test in a junit report. This is idea for my organisation. Here the system test team are totally separated from development so TFS is not an option, and they will only accept code into system test if similar junit style unit test reports can be provided ! I really don't want to have to use NAnt and NUnit2Report, so am hoping there’s another option... I think it's just a matter of creating the right XSLT for what you want. I'm also looking for a starter template. If I find/roll one I'll post it back here. ...Show All
Visual Studio Jump to report expression (conditional navigation)
It is possible to enable a navigation link (Jump to report) based on an expression I need to: 1) Disable the jump to link when the value of the textbox is 0 2) Disable the link when exported to excel / pdf (local report urls are botched in excel, but still clickable) #1: Yes, the drillthrough report name can be an expression. For example, =iif(Me.Value = 0, Nothing, "DrillthroughReportName") Note: if the expression evaluates to Nothing, no drillthrough link is shown. Btw, Me.Value is a shortcut to refer to the current textboxes value. #2: No that's currently not possible. -- Robert ...Show All
SQL Server MDX to get member names?
I want to get a list of member name for an attribute, without accessing the fact table, for speed. I can write a statement like "select {Measures.SalesAmount} on columns, {CostCenter.Members} on rows from MyCube", which will give me a list of Cost Centers going down. Is there a way to get this same list, but without accessing the fact table, with the hopes that the query will execute faster Thanks for any assistance, Ernie Assume the CostCenter attribute belongs to the dimension [CCDim] select CostCenter.members on rows from [$CCDim] ...Show All
Visual C++ Problem working with #imported excel type library
I am writing a Win32 program that interfaces with various office applications. So far I have successfully written code for Outlook and Word and am trying to do the same for Excel. I am using Office 2003 Professional. I am #importing the XL5EN32.OLB and that appears to work fine (I am also importing the mso.dll). I get the Excel namespace but when I try to create an instance of the application object using: HRESULT hr; try { hr = pExcelApp.CreateInstance( __uuidof(Excel::Application) ); if(FAILED(hr)) return false; } where pExcelApp is declared as: Excel::ApplicationPtr pExcelApp; I get hr = -2147221164 which equates to "Class not registered" This same basic format has worked for obtaining ...Show All
Visual C++ unsigned char* to bstr problems
Hi guys, I've got a real problem passing a value stored in a unsigned char* to VB as a BSTR Mytest messagebox correctly displays the expected string value of "Hello World", however the value returned to my VB app shows " ". Does anyone have any ideas where I'm going wrong I'm thinking it may be a unicode issue int __stdcall mytest(BSTR *comment) { unsigned char *comment_text; mygetcomment(&comment_text) ::MessageBox(NULL,(const char *)comment_text,"in C++",0); *comment = SysAllocString((const unsigned short *)comment_text); } You just can't cast an unsigned char* to an unsigned short* and expect things to work - you need to convert i ...Show All
Visual Basic number of rows in a dataset
How do I find number of rows in a dataset I am using Visual Studio 2005 ignore my first response to my question. I finally realized all I had to do was substitue my variable name for the "MessageBox.Show" and it works perfectly. thanks again for your response. ...Show All
Visual Studio 2008 (Pre-release) Controling RichTextBox elements' position
I want to build a kind of equation editor. To do this, I need to be able to control the elements' position to have things like a division, where the operation (division) stands between the 2 operands (which are on top and on below the division separator line). Is it possible to have this type of control on the RichTextBox's elements I tried with a Transform but the caret does not respect this transformations. Ofcourse, at the same time, I want to keep the natural caret behavior. Thanks. If you look at the sample page, Valentin's controls work within a run...they probably extend Run. So basically you want to create a toolbar that allows a user to dynamically create those Runs. It would work in RichTextEditor because ...Show All
Windows Forms drawing problem
I want to setup a picturebox control to redraw every 1/2 sec or so how do I do this what im doing is I have 16 different pictures showing 16 different angles of rotation and want to get this pic to rotate thanks Yes it is true, First you should set the interval of the timer in milisecond then start it in form_load or constructor Then you should create an event for timer1 private string [] pics; private int index = 0; private void Form1_Load( object sender, EventArgs e) { timer1.Interval = 500; timer1.Start(); } private void timer1_Tick( object sender, EventArgs e) { pictureBox1.ImageLocation = pics[index]; index++; } ...Show All
Windows Live Developer Forums newby question
Hi just a few basic questions. Can this control be used with vs.net 2003 or 2005 web applications Can this control import in shape files What is the cost of the control and or what software does it come with Thanks Paul. Hi thanks for the information. I am not sure if you are familiar with the Dundas Map Control but just wondering how this might compare The Dundas map control may have more features as it is a true .net control when added in as a reference. ...Show All
Visual Basic vbCrLf
Whats wrong with the following code please ListBox1.Items.Add( "Principle Interest Balance" & vbCrLf) It displays the string in between"" just fine but after that there are two open boxes Principle INterest Balance^^ Mitch I am adding to listbox to display small table of data, 3 columns numerous rows... with the following code ListBox1.Items.Add(i & AmountPaidToPrinciple & MonthlyInterest & MonthlyInterest) I need to get more space between each item(i.e AmountPaidToPrinciple etc) how do I do that oh yes figured out i dont need CrLf!!!!! but I need to make spacing Mitch ...Show All
