Gil Fefer's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. getting the position of vertices in a mesh
Hello everybody. I am trying to get the position of vertices in a mesh. That seems to work fine except that the data I get doesn't make sense. To me. I use a lock on the mesh.VertexBuffer (both versions... an array and a graphics stream with same results) and use the returned array or graphics stream to look for vertices that have a Position "of interest". The only issue is that some "Positions" have coordinates in scientific format which doesn't make sense since the mesh renders nice. Some code (used on ball.x shipped with the SDK. I have tried other meshes and the only one that has "n ...Show All
SQL Server SqlServerSelection.AttachDatabase
hello, the method SqlServerSelection has 2 Parameters 1. the database, that will be attached 2. a stringcollection public void AttachDatabase ( string name, StringCollection files) can you give me an example, how i fill the stringcollection fg Robert Here is a sample how to attach a database: Server svr = new Server (); StringCollection sc = new StringCollection (); sc.Add( @"c:\test.mdf" ); svr.AttachDatabase( "test" , sc); ...Show All
Visual Studio Express Editions displaying different Time besides local time
Hi I am a newbie to VB 2005 Express actually am a newbie period to vb . The problem that I am having is trying to display local time & another time ie: say london uk. on another clock side by side. On a form Any idea's on how to this is tnx Eze sorry about that was not paying attention as to where i was posting newbies who don't pay attention to where they post Oh well mea culpa ! ...Show All
Windows Forms robust listview in vb.net
Howdy, I'm using vb.net 2003 and haven't upgraded to .net 2.0. I'm trying to implement a complex listview with capabilites like grouping, icons, etc. (see the xpListView at http://dnn.steepvalley.net/Default.aspx tabid=65 ) My problem is that this free component is a little buggy and I'm having problems with it. I've read that there is a new listview control from MS Is this in 2005 Do I need to run 2.0 to get it to work Can I get this control somewhere and run it in 2003 If so, do I have to install the 2.0 framework Thanks for any advice! -rune The .Net 2.0 ListView does support gr ...Show All
.NET Development Route add with C#
Hi, i need to add a persistent route to route table of os with c# and controlling if it's present, simply like command: "route -p add xxx.xxx.xxx.xxx mask 255.255.0.0 xxx.xxx.xxx.xxx". How i can add a persistent route with c# Thanx and if i want retrieve if persistent route has been added.. i need to work with substring of result of print instruction do not exist a namespace/class for this actions ...Show All
Visual Studio I need to report this debugging error - please help.
I've discovered a nasty debugger bug. Who can I report this to Here are the steps I took to create the error: I am debugging a classic ASP page by attaching VS to a process (dllhost.exe). I have an ASP page called __WOV_Functions. 1) Attach VS to dllhost.exe. 2) Place a breakpoint on line 6 (see the jpg in the link below). 3) A duplicate tab called __wov_functions (all lowercase) appears with the breakpoint at line 6. 4) On the __wov_functions page (all lowercase), I click on lines 7-13 to add breakpoints to them, but they show up in the breakpoint window as all of them being on line 6 (see jpg again). Needless to say, the ...Show All
.NET Development Data changes not being saved to the .mdf file
I am working in Visual C# Express Edition, and I am using the Update() method of a TableAdapter. I am using the following C# code to update the database: try { this .Validate(); this.statsDataSetBindingSource.EndEdit(); this .runsTableAdapter.Update( this .statsDataSet.Runs); MessageBox .Show( "Update successful" ); } catch (System. Exception ex) { MessageBox .Show(ex.Message); } I have tried the following two work arounds: ...Show All
Visual Basic what about "can't change combobox height vb.net 2005'
In vb.net 2003 it was possible change the height of controls like textbox (with multline set to false) and combobox, now in vb.net 2005 I can't. there is a way to change that Hi David I don't want change the Height of the Items in the Dropdown Box! I will change the Height of the control! See Link to sample above. Horst ...Show All
Visual Basic Return the line number where an exception has occurred.
I am looking for a method to return the line number of the code where an exception has occurred so I can include it in my alert message. Does anyone have an example that would help identify the location of the exception. Any help would be greatly appreciated. In a debug build where you have debug symbols the exception's stack trace should automatically include that information. I wouldn't recommend displaying exception messages to an end user. ...Show All
Visual C# How to prevent a form from being activated/gaining focus.
I'm working on a project where I want to be able to click on a form but not have the form keep focus. Although not what I'm working on at the moment but the Windows On Screen Keyboard is a good example. The OSK when clicked on doesn't take focus, but keeps the focus on the control that had the focus before. It does this but still is able to proccess an onclick event and send the keystroke over to the control that has focus. I'm needing to do something similar. I've tried overriding the onActivate method but it seems by then the form has already taken focus. Any help is appreciated. You might be able to do s ...Show All
SQL Server Proxies in NT4 domain
I am unfortunately in an NT4 domain. I am trying to use proxies for jobs but its failing with the following errors SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: 10.55.250.67] followed by Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: 10.55.250.67] I assume this is a Kerberos issue with the NT4 domain. Is that true I've seen a recent post with the same error in the SQL Server Data Access forum: SSPI handshake failed with error code 0x8009030c while establishi.. ...Show All
Visual C# Good examples for indexer?
Hi! I am preparing a short presentation on indexers, but I really don't get when to use them. It seems to me that normal accessors and mutators do the job fine. What advantage does an indexer have over an accessor /mutator (For that matter, what advantage has a property over an accessor /mutator ) What is a good example, e.g. of a business usage What sort of class has "array-like access" besides one that encapsulates an array--like most of the examples I've seen It seems very alien to me to think of a class as an array! If the class is defining a new type of data structure, then perhaps an indexer makes sense Than ...Show All
Visual Studio 2008 (Pre-release) wsDualHttpBinding , IsOneWay and ConcurrencyMode.Reentrant
Hi I can't understand which is the motive to this interface doesn't work origining a deadlock: [ ServiceContract (CallbackContract= typeof ( IObserver ))] [ServiceContract(CallbackContract=typeof(IObserver))] interface IElement { [OperationContract] void Subscribe(); [OperationContract] void Unsubscribe(); } interface IObserver { [OperationContract] void Action(); } I know that If I use the behavior attribute [ ServiceBehavior (ConcurrencyMode = ConcurrencyMode .Reentrant)] in my service class all works fine but I don't understand why Any clue Thanks in advance Javier ...Show All
Microsoft ISV Community Center Forums Disable "Unprotect Document" in Tools Menu Item
Is it possible to disable "Unprotect Document" in Tools Menu Item in MS Word using VBA We are accessing and modifying documents in Java using JACOB. If the document is protected we are unprotecting the document and doing modifications. But if the document is protected using a password there is no way we can provide the password programatically as each document could have different passwords. So if it is possible to disable the "Unprotect Document" menu using VBA then the menu can be disabled and the document protected without password. This way the document can be accessed and modified only programatically and not by the ...Show All
Visual C++ error C2143: syntax error : missing ';' before '^'
<Amitoj@discussions.microsoft.com> wrote in message news:c34e795e-45b4-4682-884e-b4cf9e47f5de@discussions.microsoft.com > I am writing a VC++ .NET + DirectX9 App using VS 2005 Beta 2. > > I am getting following error - > 1>c:\dojo2\mc++dx.net\mc++dx.net\StingRay3D.h(19) : error C2143: > syntax error : missing ';' before '^' > 1>c:\dojo2\mc++dx.net\mc++dx.net\StingRay3D.h(19) : error C4430: > missing type specifier - int assumed. Note: C++ does not support > default-int > 1>c:\dojo2\mc++dx.net\mc++dx.net\StingRay3D.h(19) : error C4430: > missing type s ...Show All
