Ravin_'s Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. MDX 2.0 FrameHierarchy problem...
Hello everyone, I'm playing around with MDX 2.0 and while converting my code from MDX 1.1, I suddenly got an error while trying to load a FrameHierarchy from an .x-file. I've adjusted the code according to the changes in the api and the code compiles just fine, but when it tries to call the Mesh.LoadHierarchy method, it gives me a DirectXException. The ExceptionHelper doesn't really live up to it's name in this case as it offered me no further understanding and I can't find any information on the internet either. Does anyone know if I have to change something in the code to adjust to MDX 2.0 or if there's some kind of bug with this method si ...Show All
Windows Forms Thread communication
I am trying to solve a minor curiousity and despite reading several threading sources i simply do not -understand- how to do it. I have a class A. Class A is created when the MainForm is created. Fine. Class A also contains a public event OnData delegate to pass data from class A to the mainform. This also works fine. I get thread synchronization problems when introducing a thread to do my data reading. I introduced into class A a void ReadMyData, a threaded function. This function, whenever it detects data, should call the OnData delegate event. I can perfectly understand why why calling OnData from the ReadMyData goes wrong: my created thr ...Show All
Windows Forms ListView Drag and Drop
Hi i have bben tryin gto do drag and drop form one listview to another . I have been able to get this far and it works fine. ListView1 MouseDown Event -------------------------- If e.Button = MouseButtons.Left Then Dim myListView As ListView = CType(sender, ListView) If ListView1.Items.Count > 0 ...Show All
Windows Forms ParseException on manifest when installing ClickOnce App
I get a ParseException on the manifest when installing ClickOnce App. I can access the manifest just fine with a browser. I have searched the forums and not found asolution to this. Any help is much appreciated. Thanks, Rich PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50 ...Show All
Visual Studio Filling a Property value from a task
I would like to define a Property that a task fills, that then can then be used in the Post Build Event, does anyone know how I can do this So far I've been able to return the value from the Task and display it using the Message Task but when I then reference that Property from my PostBuildEvent, it is always empty. Any ideas Thanks, Jim At the expense of sounding silly, you are creating the property before it is accessed in the PostbuildEvent target, right It might be helpful, if you post the project file. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .x Model and duplicated vertices issue
I can see that in a .x template template VertexDuplicationIndices { <b8d65549-d7c9-4995-89cf-53a9a8b031e3> DWORD nIndices; DWORD nOriginalVertices; array DWORD indices[nIndices]; } There is a duplication of vertices. I believe this was done during the export when faces sharing a vertex duplicates that vertex. Am I right to say that My main problem is how can I get pointers or references back to the original vertices Can anyone help I was looking on the net, but information on this subject is sparse, I found some good ebooks though. From what I’ve understoo ...Show All
Visual C++ Adding new funtionality to existing activex control
I have added a new interface in a library to provide new functionality. The syntax is library { ... previous code... [uuid(..), hidden] dispinterface mynewinterface properties: method: [id(1)] void MyNewMethod(void); } coclass { dispinterface mynewinterface } }; I use this method and it works fine. But now I want to a make a check whether the funcionality exists or not and that is possible i guess by checking whether the interface i.e. mynewinterface exists or not. How can I do it Any help. I am using VS. NET Best Regards If you're adding to a control ...Show All
Visual C++ Is it possible to modify resources in x64 file?
If yes, how I really need to know this. Start here: http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/windowsuserinterface/resources/introductiontoresources/resourcereference/resourcefunctions/endupdateresource.asp frame=true Ronald Laeremans Visual C++ team ...Show All
Visual C++ ada conversion help
I'm currently working on a program developed in Ada, that is being rewritten in C++. I've run into a few stumbling blocks so far and hope someone here can help out. 1. Our Ada code uses multiple subtypes with explicit ranges specified. So far it doesn't appear that C++ supports any type of range limits. At least the typedef statement doesn't. Is there anyway to do this without using a templated class 2. Multithreading. Ada does it very simply with the task structure. C++ doesn't seem to have any equivalent structure. What is the method for multithreading in C++ 3. Is there a way to manipulate a struct so as to control the location ...Show All
Visual Studio Team System WorkItem programmatic migration query
I'm working on a set of migration apps at the moment to move issues from our existing issue tracking system into VSTS Work Items. To maintain tracking information, there are various bits of information I'd really like to copy over such as "CreatedBy" and "CreatedDate" but these are ReadOnly fields in the WorkItem class. I know I could create yet more custom fields to hold this information, but then I end up in a situation where existing issues look different from new issues in my ongoing set of Work Items. Is there any way that I'm missing that I could force these values to accept my input during this import I've toyed with the i ...Show All
SQL Server Snapshot agent can not connect to distributor
I'm trying to set up merge replication between SqlServer 2000 and SqlMobile 2005. When I create the publication, I select merge replication for SqlServer CE. When I view the status of the snapshot agent, the error message is "the process could not connect to Distributor. The step failed". I've verified both SqlServer and SqlServer Agent are running under the same domain account (with admin access to the server). This domain account has full access to the snapshot shared folder. I've also run "exec sp_helpserver", which gives me the server name for both the name and network_name fields where id=0. I'm able to success ...Show All
Visual Studio Express Editions Stop remote process
I need to stop Outlook running on a remote computer in the network. I know how to stop Outlook when it is running on the local system (code at the end) I am aware that the help file for the Process class says "local" for start and stop: "Provides access to local and remote processes and enables you to start and stop local system processes" However, this is becoming for me a pressing need and there should be a solution. Thanks, Antonio Dim processes() As Process = Process.GetProcesses For Each proc As Process In processes If proc.Id > 4 Then If proc.MainM ...Show All
Visual Studio Express Editions Formatting Conversion from Double to String...
How do you get the conversion to show a particular number of decimal places For example: double x = 100; textBox1->Text = System::Convert::ToString(x); This method will display "100" in the textbox but I would like it to display "100.00" in the textbox. Any suggestions I don't know how to do it with an IFormatProvider, but I do know how to do it with String::Format ( http://msdn2.microsoft.com/en-us/library/fht0f5be.aspx ): textBox1->Text = String::Format("{0:N}", x); Note that the above line will also append thousand separators for large numbers (eg. 1,000,000). Please take a look at the link ...Show All
Smart Device Development limited number of connections to SQLMobile?
Using System.Data.SqlClient is there a limit to the number of connections an application can have to a SQLMobile dB If you have a look at the url below, it says "A device can only have a small number of connections to an instance of SQL Server at any time" Does this mean 2, or 8 or what Should a app try to use only 1 connection throughout, or can we get away with 2-3 Is this the same on WM5.0/PPP2003 Any advice in this area much appreciated! http://msdn.microsoft.com/library/default.asp url=/library/en-us/sqlce/htm/_lce_sqlclient_705.asp p.s. I'm not interested in connection pooling! You can ...Show All
Visual Studio Team System Disabling page caching
I am using VSTS to run load tests on a web site. To test it i would like to disable page caching . Is there any way to do this in VSTS. Thanks in advance ! By default top level pages are not cached but dependent links such as images or css files are cached. This simulates browser behavior. Are your top level requests being cached ...Show All
