Ram&#243&#59;n T&#233&#59;bar's Q&A profile
Windows Forms Adding custom form to installation
Hi I would like to add custom form to installation proccess. The user should point me to directory where data will be stored. So I need textbox and button which will give the possibility to choose directory. There is no such a form available in user interface dialog. E. It is not an application folder. It is folder where data that will be created for user will be kept. There is no dialog defined where I could use button for chosin directory. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How does Vector3.Transform work?
I have the following matrix 1 0 0 0 0 -1 0 0 0 0 -1 0 0 1 0 1 and transform a zero vector by that. There is a transformation in the matrix, but I can't figure out how the math is done. Shouldn't this just be a 4x4 matrix multiplied by a 4x1 matrix For the fourth component of the vector, I tried just using 1. But when I multiplied them together by hand, I get a 0 vector. What am I missing Thanks. -Nick So turns out if I change it to public void SetGlobalMatrix(Matrix parent) { Matrix quat = Matrix.CreateFromQuaternion(m_orientation); m_globalTransformation = m_translation * parent; Matrix temp = quat * m_globalTransformation; foreach (Bone bone in m_children) { bone.SetGlobalMatrix(temp); ...Show All
Smart Device Development Multi-Language support in C#
Hi, I have developed SmartDeviceApplication output of which is an .exe in C#.I want that exe to support multiple language.can anyone help me in this regard to how to do it.Wheather i need to add a new resx or do i have to create a dll I want to support basically both chinese and english depending on the user requirment. Hi sunil_sg, That's a very good steps u did, now.. the way u choosed to use is the first i talked about, now to see the output of your work, u need to set the Language Regional Settings of your Device/Emulator to Chinese(Simplified), once u did this and opened the application, it should display the localized form to the new changes u did in the UI. You can't change the cul ...Show All
Visual C# NullReferenceException
System.NullReferenceException: Object reference not set to an instance of an object. at article.article.addarticle() ASPX file: void add(Object Sender, EventArgs E) { if (butimage.PostedFile != null) { strTemp = DateTime.Now.ToString(); strTemp = strTemp.Replace(":",""); strTemp = strTemp.Replace(" ",""); strTemp = strTemp.Replace("-",""); strImage = "D:/c/upload/" + Session["name"].ToString() + strTemp + ".jpg"; butimage.PostedFile.SaveAs(strImage); } article art = new article(); string temp_subject; temp_subject = Server.HtmlEncode(subject.Text); temp_subject = temp_subject.Replace("'","`"); art.subject = ...Show All
.NET Development how to check if ExecuteScalar returns null (datetime) value?
Here's what I want to do ( please pardon the formatting ) public static DateTime CustomerLastCallbackDate(string custID) { if (custID != null) { string sql = "SELECT LastCallbackDate" + " FROM Customer" + " Where CustID = @CustID" ; SqlCommand cmd = new SqlCommand(sql, dbSession.CN); cmd.Parameters.Add("@CustID", SqlDbType.VarChar).Value = custID; dbSession.CN.Open(); object result = cmd.ExecuteScalar(); dbSession.CN.Close(); if (result == null ) { return DateTime.MinValue; } else { return (DateTime)result; } }} My problem is that if the value from the database is null, the check for "result == null" doesn't work right ( I don't know why ) and processing goes to the retu ...Show All
SQL Server How do I use a variable to specify the column name in a select statement?
How do I use a variable to specify the column name in a select statement declare @columnName <type> set @columnName='ID' select @columnName from Table1 You can't do that directly. You have to create a dynamic sql statement using a var and execute the statement. declare @sql nvarchar(1000) set @sql = 'SELECT ' + @columnName + ' FROM Table1' EXEC(@sql) ...Show All
Windows Forms Extended WebBrowser newwindow event problem
Hi everybody, First i would like to thank everybody from the previous post on the new microsoft webbrowser navigating and newwindow event extension. but i seem to have encountered a snag. i have a new web browser that implements tabbed browsing and all is well until it encounters this kind of link " <a href='#' onclick=window.open...".It just behaves us if nothing has happenned. curiously if i create a new webbrowser it works fine.So anybody please help. thank you all here is the code for the newwindow handle private void wb_BeforeNewWindow( object sender, BrowserExtendedNavigatingEventArgs e) { if (( bool )tb.Tag) // code handling new tab and browser { newTabWindow( "" ); } ...Show All
Visual C# Settings file -v- app.config ?
This might be a dumb question, but what is the difference between a Settings.settings file and app.config When should I use one over the other The help file tells me how to use each one, but doesn't seem to explain why to use each one in preference to the other. It seems daft to me to store config data in two separate files - more hassles at install time updating multiple files rather than just one. Basically, App.config is an “older” mechanism to define and read simple key/value combinations. MySettings is a newer version of this mechanism which allows you to do the same, but also allows the developer to define and update objects and their properties. Also using a nifty interface, during designtim ...Show All
Visual C++ set<String> in Visual C++ .NET
How do you use a set of Strings If I say set<String> *st; String *s = S"FOO"; st->insert(*s); I get an "illegal use of managed type" message. thanks If you need would use the System::String class in a collection then I would use one of the collections from System::Collections or System::Collections::Generic . ...Show All
Visual Studio Team System SQL Server Version(s) Support
It appears that for CTP6 only the Enterprise and Developer editions of SQL Server 2005 are supported. The Standard edition is not supported. When DB Pro is released, will it support the Standard Edition as well Thanks - Amos. Yesterday I was at a MS Event and seen this product. I had my credit card ready and willing to buy it right then and there. But with it only supporting Ent and Dev version now I am not so sure. I have 40 production sql servers in house and only a few are Enterprise, rest are all standard. I would like to suggest that you strongly consider supporting the standard edition of SQl 2005. IF you cant I think you get ready to explain why, ...Show All
SQL Server The merge process was unable to deliver the snapshot to users having host_name length 10 and partition_id bigger than 999
Hi, We are performing merge replication between SQL Server 2005 and SQL Server Mobile with more than 1100 handheld, and recently we have following problem with user name(which is used as host_name in merge repl.) having length 10 chars and partition_id bigger than 999. Error Code: 80004005 Message : Minor Err.: 29006 Source : Microsoft SQL Server 2005 Mobile Edition 20070116-121908 Error Code: 80045017 Message : The merge process was unable to deliver the snapshot to the Subscriber. If using Web synchronization, the merge process may have been unable to create or write to the message file. When troubleshooting, restart the synchronization with verbose history logging and specify an output file to which to write. Here is th ...Show All
Visual Studio Tools for Office How to do a "ReleaseHandle" before Outlook Shutdown event fires ?
Hi, I develop an Outlook 2003 addin with VS2005 + VSTO. I need to exchange messages between Outlook and an other application using SendMessage and WM_COPYDATA. To do this, I use AssignHandle in my communication object. Presently, when Outlook is closed by the user, it crashes because I release the handle when the Shutdown events is fired ! I 've seen in that thread ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=489519&SiteID=1 ) "How to get IWin32Window for Show/ShowDialog in Excel" that the release handle must be done before the addin is unloaded but ... there is no OnBeforeShutDown event ! You understand well. The "Shutdown" event that I refer to is the shutdown method on the addin (I ne ...Show All
Software Development for Windows Vista I didnt recieve my email yet.
Hi, I did not recieve my RC1 Download e-mail and I participated in the Beta 2 Program. Is this due to high numbers or an error im afraid these are the incorrect forums. The best place to ask your technical issue is over at the appropriate communities: www.microsoft.com/communities Thanks! ...Show All
SQL Server Unable To Connect To Informix 2000 from SQL
I've been trying to connect to an Informix 2000 Server thru SQL but have been unsuccessful. I can connect to the same server using Access or Excel though. I use Openlink drivers to connect to this server using Access/Excel. Please Help, how will I be able to connect using SQL Server.. ...Show All
Smart Device Development pocket pc & bluetooth programing
hi i am C# develper i am interesting in pocket & bluetooth programing can any one tell me how to start thanks i have a samsung i750 running windows mobile 2003 SE pocket pc , i am using vs2005 . There is Microsoft shared source BT wrapper here: http://msdn.microsoft.com/embedded/usewinemb/ce/sharedsrccode/west/default.aspx There is also some helpful discussion here: http://channel9.msdn.com/wiki/default.aspx/Channel9.BluetoothDevelopment ...Show All
