Ilia's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. how to change the current stream input ( vertices )
In the graphicdevice, they exist the property device.Vertices which is a collection, so we can put a lot of kind of vertex buffer in it. Very nice but ... How to say that the current stream is not the Zero but an other because the function drawnprimitive use the current stream and in my case it s always device.Vertices[0]. So if we cannot change the current stream what is the goal of the collection Vertices If you know how to change the current stream to take for example device.Vertices , can you explain it to me. PS : sorry but i am french and my english is not really perfect. ;) Thx for your answer. Can you give me an adress ( or a little piece of code hlsl ) where i can fo ...Show All
Visual C++ behavior of itoa
Can anyone tell me how itoa behaves when the passed character buffer's size is lesser than the converted string. Since itoa doesnt have any error code returning mechanism, I was wondering what the behavior would be. Thanks, KarthikR I think it fills the buffer up to the size you specify with asterisks. Easy enough to test. Just make a big buffer and tell itoa its tiny. Too tiny for the number you are converting. Put a breakpoint on the line and go into debug mode. When it breaks, step over the itoa line then examine the buffer to see what showed up. ...Show All
SQL Server SSAS: Hiding all the measure groups in Perspectives
Having a few problems getting perspectives to work, set up a cube in which there are numerous measures and then numerous calculated measures. The cube design was meant to hide all the measure and just leave the calculated measures in the perspective. If you hide all the measure groups (leaving calculated measures), when you come to browse the cube, using the perspective, you end up seeing all the measures. It only hides the measures if you have at least one measure not hidden. Anyone know how I can stop this happening so I can hide all the measure groups and leave just the calculated ones Cheers Matt Believe some of the measures are meant to be viewable on different perspectives. Current ...Show All
Visual Studio Will Not Jump To Source Code for Referenced DLL When Dubugging Project
Using Visual Studio 2005. I have a simple project with two references added. Both references are to DLLs that I have written. They are in their own seperate projects. When debugging the main project the debugger will jump to the source code lines in one DLL but will not jump into the other DLL. Both projects appear to be set up the same and I am pointing to the DLLS in the bin folders under the projects. The "Enable Just My Code" is UNchecked in the Debug / Options / Debugging Node / General list. Anyone have any idea why I can't jump to the source code I never ran into this on VS 2003. Thanks, Nathan Jaynes Gates Corporation I don't have a Debug -> Windows -& ...Show All
Windows Forms How to know which item in ListBox is slected?
thak you You can use the ListBox.SelectedItem property to retrieve the selected item. This is null when no item was selected. Here is a little example: private void button1_Click( object sender, EventArgs e) { object selectedItem = listBox1.SelectedItem; if (selectedItem != null ) { MessageBox.Show( this , "The selected item was: " + selectedItem); } else { MessageBox.Show( this , "Please select an item."); } } ...Show All
Smart Device Development Active Sync, Outlook and Mobile 5.0 - Making them work!
After much trial and tribulation I figured out the problem in syncronizing my computer and smart phone running Outlook and Windows Mobile 5.0. I hope this helps someone else.... 1. Delete Norton Internet Security - COMPLETELY. This is not the first time Norton has foiled me, but it will be the last. I had other problems with Norton when networking, but left it on one of my computers, BAD decision. I now run Trend Micro Internet security and it works great. 2. Disable ALL firewalls EXCEPT windows and make sure it has an exception for Active Sync. 2. Delete all OLD versions on Active sync and download FREE Active Sync 4.2 beta. Thats what got me on track! Good luck. Active ...Show All
Visual Studio Example code and it's language
How do I place example code in a code file that is language specific. For example: public class MyTester() { <SUMMARY>Test Method</SUMMARY> <EXAMPLE> <PARA>C#</PARA> <CODE> MyTester tester = new MyTester(); test.Test(); </CODE> <PARA>VB</PARA> <CODE> Dim tester As MyTester = New MyTester() test.Test() </CODE> </EXAMPLE> public void Test() {} } I would like to be able to do this so that users of my documentation can filter on the language which they want to see. I have noticed that the MSDN site works this way which leds me to believe that it can be done. Can some one shed some light on how this is done. Thanks John Yo ...Show All
Visual Basic use FileSystemWatcher to look for 2 tyeps of files?
Riiiiiihgt! I've been on this a week, and I'm getting a bit sick. Can you set a FileSystemWatcher to look for "*.csv" & "*.zip" or do I need 2 FSWs to achieve this Please say no, or I'm going to convert to Delphi and start hating MS doesn't look like it, very impressive. The time I've had to fool about with FSW to get it to do something useful, it would have been easier and quicker to write my own from scratch. Who wrote FileSystemWatcher Was it MS, or a 3rd party bunch of monkeys ...Show All
.NET Development Interop COM: SOMETIMES, com object become System.__ComObject.
I have to interop with COM and transport the IUnknown pointer between managed and unmanaged code. I used to create the COM instance in managed code like: appDomain->CreateInstanceFromAndUnwrap to create Object and pass it IUnknown pointer to unmanaged Code. Later, I get the IUnknown pointer and try to get the object like: step1: Build a Variant using IUnknown pointer; step 2: Marshal:: GetObjectForNativeVariant. In the most time, the procedecure works well. :( The PROBLEM is the return value of GetObjectForNativeVariant sometimes become System.__ComObject. The PROBLEM is ramdom. :( And I can not point out the reason) I has tried Activitor::CreateInstance, it doesn't work well, too. ...Show All
Internet Explorer Development Disable/Hide IE7 Command Bar
hi, I just download and install IE7. Don't like the tab browsing thing and try to revert back to familar IE6 menu bar etc. Manage to get back classic menu on TOP of address bar (which IE7 never provide such option) after some google search. Tries to remove all icons in command bar. But after restart a new IE7, the defaults icons came and is quite annoying. No matter how many times I remove, they will still come back. Discover the command bar cannot "move" to be inline (at least) with address bar even toolsbar is unlocked. Also unable to find any solution to disable or hide it. Any one knows how to disable/hide the Command Bar Thank you. I just tried out by myself: 1. ...Show All
Visual Studio Team System CREATE VIEW Error!
Hi, Just installed VSTS - DB Pro and imported my sample database into Database Project. However i getting some errors in my Database View. I have a couple of view which actually point to the tables in different database. For example: I have a DatabaseA with Table1 I have a view in DatabaseB as below: CREATE VIEW dbo.MyRemoteView AS Select * from DatabaseA.dbo.Table1 I have no problem with the view creation in Sql server query analyzer and i actually can view the View from VStudio Server Explorer. However i getting error in VSTS-DB Project and the error message "Invalid object name 'DatabaseA.dbo.Table1'". Is it Database Project in VSTS-DB Pro currently not support "Cross-Database" View Any other settings i need to do ...Show All
Windows Forms How can I disable "Button.FlatAppearance.MouseOverBackColor" ?
I have a grid with buttons where each button will have one color if it is clicked and another color if it is not clicked, i.e. I want a toggle feature, which should be pretty simple, but I automatically get another mouseover behaviour which I do not want. Whenever I hover the mouse over one button, it gets a slightly different color. I can hardcode the property Button.FlatAppearance.MouseOverBackColor so that it always uses the same color as for example the "non-clicked" color, and then I do not get this mouseover color when I hover buttons that are not clicked, but then of course I will get that same color when I hover the clicked buttons, which I do not want... In other words, I just want to disable all mouseover "features ...Show All
SQL Server SelectedIndexChanged not being called
Hi I have a drop down list which gets populated from database but I want to add the default value as --Select---- Paarul wrote: Hi I have a drop down list which gets populated from database but I want to add the default value as --Select---- You have a drop down list where What are you doing Are you working in SSIS ...Show All
Smart Device Development TabControl Inheritance
I'm creating a really simple my own TabControl Inherting from the orignal one to just add an Indexer based on String not the integer. All works fine and gets compiled. Now after building the project when I drag that control from the Tool Box to my Form, I get an Exception in the Form Designer saying: "Failed to create component "MyTabControl"...............", with large Stack Trace. Can anybody tell me what's wrong with this Best Regards, Make sure that you have .xmta file in your control's project that includes DesktopCompatible attribute: <Class Name="SomeNamespace.CustomTabControl"> <DesktopCompatible>true</DesktopCompatible> </Class> ...Show All
.NET Development Marshalling on different channels.
I'm wondering if it's possible to choose the channels to use for marshalling an object Say I have 3 server channels registered, Tcp, Ipc and Http I have 2 objects, MySecretObject and MyNotSoSecretObject in the same application domain and I want to marshal both of them, for example using RemotingServices.Marshal. How would I specify that MySecretObject should be marshalled on the IpcChannel only I suppose I can specify protocol in the uri when marshaling too But what would I do if I wanted to marshal MyNotSoSecretObject using Http and Tcp, but not Ipc Ah ok;p I wondered if that was the case, "name" would be a better parameter name;p So I guess I can't even restrict an object to a si ...Show All
