imj's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Rather noobish question to do with coordinates
Hello, I am working on an application and one of the tasks it needs to do is apply a form of gravity to the scene. Now, we all know that gravity pulls down and so on, but with the mesh, it seems y is not always the vertical axis. The mesh is rotatable, but I just cant think where to start looking or indeed what to search for in terms of finding theory or a tutorial to find which way is down (in vector form). I assume it is to do with the camera or view matrix, but I cant think what function to call etc etc and I'm totally lost. Not yet in a spiral of tears, but if anyone can think of what I am on about and point me towards a tutorial, or something similar, I would be very greatful as according to my app at the moment, gravity applies in s ...Show All
SQL Server BUG: UPDATE updates not listed fields
Hi Everybody, I am in this forum for a first time. Today, I think, I found a bug in SQL Server 2000. I tried it on SQL Server 2005 and it is alive yet. Before I explain exact the problem I have a stupid question. Is there any type of award if I have found a real bug. It is about a situation when I try to update some fields in a table and I get updated some other wrong fields. There aren't any triggers ot something else. Create a new table, insert one row, update some fields but other ones get changed too. Is there something known about this Thanks, Hristo. I am with Microsoft SQL Server 2000 - 8.00.194 On my version and other ones (without SP) BUG10 changes to 0. It seem that this is fixed i ...Show All
SQL Server Parameterized Expression
I am trying to write an expression based on a parameter for a text box. If I write it without the parameter it works fine, but when I add the parameter, the expression evaluates as just text. My dataset contains a field called "PeakSessions" I have a parameter called "chrt", type string, containing the value "PeakSessions". =Fields!PeakSessions.Value <= Works fine. Displays the PeakSession data. ="Fields!" & Parameters!chrt.Value & ".Value" This parameterized version evaluates to: Fields!PeakSessions.Value. So it seems the parameter resolved correctly, but my expression is being evaluated as text. What am I doing wrong SQL 2005 Reports Services, SP1, Standard Edit ...Show All
Visual C# USB conected printer
I need to print labels from a C# Windows form application. The printer is atached to a USB port and recognized by Windows when it is turned on. It expects to recieve serial data that complies with its control and data format. How can I output raw rext streams to a device conected to a USB port Thanks, George in .NET 2.0, using the SerialPorts class: http://msdn2.microsoft.com/en-us/library/system.io.ports.serialport.aspx there are also many examples on these forums using serialports, try a search and see what comes up for you ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Create Flash Light or Car Headlight effect...
Hi All, Where can I get information on creating a flash light/headlight lighting effect. When the light moves I would like it to light up objects in a scene. Thanks. http://www.riemers.net/eng/Tutorials/XNA/Csharp/series3.php ...Show All
Visual Studio 2008 (Pre-release) HelloWorld logging problem
Hi, Well, I was working on this very simple yet useful tutorial. http://wcf.netfx3.com/content/BuildingHelloWorld.aspx Then everything was going well till I reached the "Setting Up Logging" section. I followed the instruction even though SvcConfigEditor looked a bit different especially there's no Create button nor Logging tab.But I opened the app.config fille of the service and Under Diagnostic, I checked Default Message Logging, and under Message Logging I set to true both "LogEntireMessage" and LogMessagesAtTransportLevel". Saved the change and run the service and client .exe files, closed them and went back to the path of Log file which I selected under Diagnostic. But there's no .e2e file create ...Show All
SQL Server Initializing a Merge Subscription Without a Snapshot bugs
Hello guys, We have customers that are using web synchronization. Could you, please tell us when service pack for the bugs, discussed in thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=689428&SiteID=1 will be reliazed What replication participants should apply the service pack in a configuration where Subscriber (MS SQL 2005 Express) gets synchronized with Publisher/Diustributor (MS SQL 2005 Standard) Thanks. Alexander. Alexander, there is no service pack that address the problems mentioned in the thread. As mentioned in the thread, we are trying to encourage customers not to use No Sync menthods when they can. However if you need to use it and are encountering blocking ...Show All
SQL Server Error 401: Unauthorized
Hi all, I am using a reportViewer control in asp.net and using server reports. I've configured everything right and placed a button on the form which invokes the report on a server and when ever i click the button then i get the following message "The request failed with HTTP status 401: Unauthorized. " Then i tried accessing the report server from IE then it is asking me for credentials to access it. So what should i do to avoid this error and access my reports. Thanks in advance. ...Show All
Visual Studio Team System Work Item Access control based on Work Item Type?
We'd like to give our customers access to TFS for reading e.g. bug-information. Thus we would need a speciel security group that controls this access, e.g. a "Bug-readers"-group. However, what is needed is to define access to particular types of Work Items, namely only Work Items of type "Bug". We don't want our customers to be able to see Tasks or Requirements. How can an access control for Work Items be set up for specific Types or based on information in other properties of a Work Item regards, *Martin. Thanks, Jason. The Area-setting does the trick in my case. However, this reveals a difference in security access control for the Datawarehouse and the Work Item T ...Show All
Visual Basic Type Forwarding in vb.net 2005: TypeForwardedTo attribute
Hi all the people on this huge ball floating on space… I’m preparing for exam 70-536 and I’m trying to understand the TypeForwardedTo attribute, but it doesn’t work for me and I’m sure I’m missing something… First I created a vb class library with visual studio 2005 with this simple code: Imports System.windows.Forms Imports System.Runtime.CompilerServices Class LibraryClass Sub New () MessageBox.Show( "printed from first library" ) End Sub End Class (The Namespace for this project is called “ClassLibrary1”) Second, I created a simple windows form in vb with a method on the load event that initializes The class from the library; ...Show All
Visual Studio 2008 (Pre-release) Design Surface in CIDER
I was willing to know what makes up the Design Surface in Cider Is it a class derived from Canvas class or Panel class or something else Also, since there is no Winforms DesignSurface equivalent here, is there a way to customize the CIDER Design Surface in the current CTP's Thanks. Nir. Hi Mark, Actually I was thinking about ways to subclass the DesignSurface in CIDER. Is that possible (some of the customizations I had in mind were having a zoomable design surface or having a grid on the surface). Thanks. ...Show All
Visual Studio 2008 (Pre-release) Sizing content to Parent StackPanel
Hi, I would like to know if it is possible to make content inside a StackPanel to automatically size itself to the size of the StackPanel. This is possible in a Grid, but I do not know how exactly to implement this with a StackPanel. Thank you, Jaco Thanks, but that does not have the desired effect. Maybe if I showed some code... TextBlock txt = new TextBlock (); Rectangle rect = new Rectangle (); TextBox box = new TextBox(); box.Visibility = Visibility.Hidden; Canvas can = new Canvas (); StackPanel panel = new StackPanel (); txt.Text = "This text can be change, so the size of the stackpanel will be affected" ; // TextBlock always sizes the Sta ...Show All
Visual FoxPro A grid by a cursor
Please tell me, how can I build a grid (in a formular) by a cursor. Relate me the steps. I tried, but don't work. I set at RecordSource and RecordSourceType something, but... sorry. Thank you. public oForm oForm = createobject('myForm') oForm.Show() define class myForm as Form Datasession = 2 Add object myGrid as grid Procedure load select * from (_samples+'data\customer') into cursor crsMyCursor nofilter use in 'customer' endproc enddefine ...Show All
SQL Server Credentials in Reporting Services??
I have created several reports in SQL Server 2005 reporting services and I am viewing those reports in my C# application using a report viewer control. I want to pass the credentials for each report through my applications. I do not want to use any web service. Is it possible Any help will be appreciated!!! TIA Hi, I am facing the same problem. I used ReportDataSourceInfo then it gives error that DataSource doesnt support it. Error of rsdatasource So what should be the Connection Methods in Shared DataSource Nilesh ...Show All
Visual Studio Team System Want data from Source Control History Window
Hi All, I am developing an addin in which I need all the data from the source control history window, like user, ChangeSet, comments etc. Kindly let me know how to get these information programatically. I am using C# 2.0. The editor and VSS version is Visual Studio team Edition for Software Developers. Please help. The first place to start is the Team Foundation SDK on MSDN http://msdn2.microsoft.com/en-us/library/bb130146(VS.80).aspx here you will find all the object model reference and also samples and so on, specifically for Source control you have the following namepsaces, but I recommend you to start having a look to the SDK. Microsoft.TeamFoundation.VersionControl.Client Microsoft.Te ...Show All
