renemt's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Which one does DX copy: strings or ptrs
Many-many times DirectX takes pointers to strings, LPCSTRs. When a function call takes such a parameter, does it make a copy of the string itself (meaning that I can clean up the string pointed to by my pointer), or does the funtion only copy the pointer, meaning that I must keep the string alive as long as the COM-interface is not released Sometimes it is no question, for example, I'm sure I can clean up my string right after calling D3DX10CompileShaderFromFile, but what about for example ID3D10Device::CreateInputLayout, which takes an array of D3D10_INPUT_ELEMENT_DESCs, each element containing an LPCSTR. DirectX will sure need the input semantics (the strings) later on, so do I have to keep them Thx, Karoly ...Show All
Visual C++ Problem when call VC6 DLL in VS2005
I have a vs2005 project which calls a vc6 produced dll, and in that dll there are some classes which use CMap,CList classes.After calling functions in that dll, the vs2005 project crash when CMap class destructor is called.Anybody knows the reason If the vc6-compiled DLL is using any runtime library functions (like the C/C++ runtime or STL) then the configuration is not supported. What you're probably seeing is that a VC6 free/delete method is trying to delete a block of memory allocated by a VC8 malloc/new method--which is not supported. Each version of the runtime allocates and initializes header data (usually just before the address returned by the CRT allocation procedure) as well as values used to ...Show All
Visual Studio 2008 (Pre-release) STA error when creating scrollviewer in background thread?
Hi, I am trying to print a xaml file in background thread using PrintVisual. The code is like this 1) MainWIndow call the print routine using ThreadPool.QueueUserWorkItem 2) in the print routine - Load the xaml file - Create the UI using XamlReader.load - Now if I call ui.Measure( new Size ( double .PositiveInfinity, double .PositiveInfinity)); I get the following error if I am using ScrollViewer inside my xaml file. {"The calling thread must be STA, because many UI components require this."} The same code works fine if I remove the scrollviewer and just use a TextBlock. Since the UI element I created is in the same background thread, I don't know why this error happens Does ...Show All
Visual Studio Express Editions Encryption
I got a problem with the IO class.. i try to encrypt something but i keep get a critical error says request is not supported... what can i do thats code System.IO.File.Encrypt("D:\\Adobe\\Adobe Photoshop CS2\\Photoshop.exe"); tryed other files but stil All error messages including two first lines of string outputs.. Example from msdn (http://msdn2.microsoft.com/en-us/library/30sf3kce.aspx) File.Exists("c:\\data.txt"): True Enceypt c:\data.txt System.IO.IOException: Begaran stods inte. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.Encrypt(String path) at ConsoleApplication1.Program.AddEncryption(String FileName) in C:\Documents and Settings\J\Lokala ...Show All
Visual Studio Express Editions compiling a basic .cpp code file without saving entire project
this might be a stupid question but in visual c++ express why can't i just create a new .cpp file, enter stand-alone c++ code, save it and then have it compiled leaving me with a simple .cpp file and an .exe instead it appears to insist on my creating an entire project which automatically generates all sorts of useless sh*t that's irrelevent and unneccessary thanks in advance. Joker7353 wrote: why can't i just create a new .cpp file, enter stand-alone c++ code, save it and then have it compiled leaving me with a simple .cpp file and an .exe You can do that by running the compiler yourself from the command line. You will be foregoing the use of the debugger and coordination of compiler error ...Show All
Visual Basic using VB SDK with VB.NET
does someone know if i can use VB SDK with VB.NET maybe a plug in that will help me or i need to use only VB... thanks It appears that you do not want to add a reference as you would with com object but rather include the files in your project. You can do that using the solution explorer. Sorry, I do not have VS in front of me right now so I can't provide a step by step. Try right clicking on the solution and following the menu items. You should find it. ...Show All
Software Development for Windows Vista MSDTC, distributed applications and XA compatability
We have an application comprising of two discrete components (a .NET 1.1 COM+ component, and a legacy ODBC component), which operate on the same SQL Server data (same database rows) within the same distributed transaction. We use the ITransactionExport/Import interfaces to propagate the DTC transaction from the COM+ component to the legacy ODBC component. All works fine. This soluton deploys to Windows and we support SQL Server only. However, we have a requirement to retain the COM+ component, but to deploy the legacy ODBC component onto a Unix platform and to use a Unix RDBMS (Oracle). I envisage we will use an Oracle ADO.NET Data Provider to provide data access for the COM+ component and Oracle's UNIX RM proxy (OCI) for the legacy ...Show All
Visual Studio 2008 (Pre-release) How to put 2 ListBoxItem on same row?
Since everything is possible in WPF (well almost) this should be a pieece of cake. when you have a number of ListBoxItems in a ListBox, they’re listed one item per row. But what if my ListBox.Width = 300 and my ListBoxItem.Width = 100 then there’s some waste of space. Before I dig in to it I just want to know if the way to do it (if doable) is by overriding some methods that’s placing the itmes out so I can manually place them out, animate them etc.. Well, why don’t I use like a Stackpanel I need to use a control that inherits from ItemsControl so I can use ItemsSource to databind my object in xaml. Would be grateful for some hints in the right direction Have a nice day /erik You ...Show All
Visual Studio 2008 (Pre-release) Detecting MouseMove events over empty space in Viewport3d
I read in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=99785&SiteID=1 that mouse clicks over a Viewport3D are only detected when clicking over content in the Viewport3D. The suggested remedy was to put the mouse click handler on the page, which would get fired event if the user clicked on empty space in the Viewport3D. I assume the problem (and the remedy) should apply to MouseMove events. However, I couldn't get this to work. Here's the XAML structure of my application: <Page> <Grid> <DockPanel/> <Viewport3D> <Camera>, etc. </Viewport3D> </Grid> </Page> I tried putting handlers for MouseMove or PreviewMouseMove on the Page and on the Grid, but it di ...Show All
Visual Studio Trapping Ascii keypress events.
Hi, I want to handle Ascii key press events in my .Net 2003 plug in. I am able to trap arrow key press events but could not trap the same for ascii keys. There is only one linechange event in text editor, but what if one insert data in the same line.This will not raise any event. Is there any other way to do this. Kindly help me out please. Thanks and regards, Ruhina Parveen. How about write-protecting it Another better solution I can think of is that you provide a button that will magically generate the new file. If your users, as I guess, want to use it as a template, then it will be even easier for them just to click on a button. You can then do all kinds of nifty things not to have to recompile/reins ...Show All
Visual C# How easy is this in C#?
Sorry for the very general subject line. I've been working on a problem for some time right now that will have two separate applications passing information back and forth and preferably sharing objects. To date, I've been working on this problem using C++ and the WinAPI. However, the WinAPI and Visual Studio c++ 2005 don't really integrate very well. I've been taking a look at C# lately, and it seems like the language would support this effort pretty well through the use of marshalling (a new concept to me), and multi-threading. I would like to hear from some experienced C# programmers their opinion on how easy this would be to implement in C#. There is an example in "Programming C#" that seems like it would accomplish the type ...Show All
SQL Server Upload subscription report into other database
I have a subscription set up that delivers reports to email addresses. What I'd like to accomplish is not to have emailed the reports, but insert the report into a document management system that uses a MS SQL database. Basically I would like to be able to execute SQL statements when the reports are being delivered. I have found that when a subscription is set up, a background job is created that calls the stored procedure AddEvent. This stored procedure inserts a line in the table Event (in the ReportServer db). Now when the email is delivered, this inserted line is deleted again. What I'd like to know is if there are possibilities to change this procedure to add some code where I can insert a rendered report in another database. ...Show All
.NET Development device description
Hi everyone, I have a question regarding xml and .net framework. I am currently working on ubiquitious computing area and just wondering if their is a way, that, when you click a button on a device, it automatically generates the xml for that object dynamically. i.e.lets say i click a print button on my application and it automatically generates what are the necessary rules for printing (example: check if printer is on, if it is connected etc) and resources required for printing(i.e paper & printer) in an xml file after comparing from the device profile. cheers, I am me It seams that this is the continuation of question: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=683678&SiteID=1 &nb ...Show All
Visual Studio Team System VS SP1
Does anybody know if there is going to be an SP1 for TFS after the VS SP1 comes out TFS Source Control is killing us with all of it's buggy-ness. I swear TFS is such productivity suck,but it seems like it's got potential. We're hoping MS will fix some of this nonsense with a SP, but if it's not coming we'd like to cut our losses and move to SVN. Any service pack info from you MS insiders Also curious... in regards to the 'get latest on checkout' if you were working on code from a shelveset and needed to check out a file for edit would you always want the version on the server I'm curious how people see shelvesets working for them when they flip the flag for 'get latest on checkout' which invaria ...Show All
SQL Server How to match a Count Measure in Process Partition component in SSIS?
I have a facttable, and it point to a Partition. In Process Partition component in SSIS, it ask to match the columns of the facttable to the Partition's Measures. I try and found all the Measures need to be point, or it will cause a mistake. But the quesiton is , I have a Measure which counts the num of rows. What column of the facttable I need to point to it Thanks. I don't try all the conditions, but to current, it work as expected, regardless of which column i assign to the count measure. Could you report this to MS,and fix it text sp ...Show All
