Carlos Adriano Portes's Q&A profile
Visual C++ Simple dialog based app not working
I'm thinking about moving from Visual Studio 6 to VS 2005. I've installed VS 2005 Beta 2. I've created a simple dialog based app, added a edit control with a variable, and added OnBnClickedOk function. In the OnBnClickedOk function I added the following code: void CTestAppDlg::OnBnClickedOk() { UpdateData( TRUE ); AfxMessageBox( m_strMessText ); //OnOK(); } When I run the app the message box is empty. Any ideas what I'm doing wrong Thanks for the help, Brian I have just tried it on July CTP and it added this text. I guess, I am not sure wh ...Show All
Visual C# importing C# dll into C++.net ???
Hello, I've been developing a FEM library and it is written in C++. I want to develop a new UI for it so thought of creating it in C#. Can i create the UI in C# and still use the code in C++.net Question is can i use the C# lib in C++.net and not vice-versa. Please let me know. Thanks. Hey, My understanding is, that the the CLR will compile everything into MSIL, to there should be no problem interchanging classes and .dll into each other. I use it occasionaly for VB.NET and C# ...Show All
SQL Server How to use Fields or ReportItems value in charts
Hi, all. I am doing a financial report needs to show last 10 yrs history data. The end year is the last year of the current year. How can I set the minumum and maximun with Year(Now) fucntion for the x-axis, to represent the years Is there any way to use Fields value for the chart minumum and maximun Yes this is possible in RS 2005 (but not in RS 2000). Axis settings such as min/max/crossat/major interval/minor interval can be expression-based. Just type in the expression as e.g. =Year(Now) -- Robert ...Show All
.NET Development Compare time
Hi, Im having a lil question. Im trying to compare 2 times with eachother. One time is in an xml file. The other one is the time at this current moment. If the time is older than 1 month, it should remove a whole table from the xml file. This is the code i produced so far: static void Main(string[] args) { try { DataSet xmlFile = new DataSet(); xmlFile.ReadXml("test.xml"); foreach (DataRow dateRow in xmlFile.Tables[0].Rows) { string Date = dateRow["Date"].ToString(); DataRow[] tempXmlFileRows = xmlFile.Tables[0].Select("Date = " + Date); ...Show All
Visual Studio Team System Too many versions of VS2005
I like the idea behind Team System, but I must say that I find all these different versions of Visual Studio to be extremely annoying. I work for a small company, where I may very well end up doing both architect, developer and tester work. My VS2005 Team Edition for Developers is capable of doing most of the work, but it does not contain the architect tools and some of the test tools. Buying the Universal version of Visual Studio Team Edition containing all the tools is way to expensive just to be able to do web-test and some architectural diagrams. The result is that I'll just do without them. If Microsoft want developers to serio ...Show All
Visual Studio target to copy files before it builds
I have a xml file in some directory, How can I copy the another file with the same name in the same directory before it builds. I know hot to do the copying part, but which target should i use to set it before it builds <target = beforeGet> Thank you I'd use BeforeBuild. More info on this is available at our blog: http://blogs.msdn.com/msbuild/archive/2005/10/12/480212.aspx . Neil ...Show All
Visual Studio Update - TestCase/Lab Download Available - FastTrack: MSHelp2 VS2005 Integration
Hi Friends, As an addition to the FastTrack: MSHelp2 VS2005 Integration paper, I built a simple Test Case/Lab H1 (.chm) package to use for practice purposes. The web page contents of the Lab package are the same as in the paper, but in .chm format. It's located at the same URL as the paper: http://helpware.net/mshelp2/frank/help2.htm There are two zipped downloads available: the .chm standalone file: link = Download CHM Version the TestCase/Lab folder: link = Download CHM Version with help source The "Download CHM Version with help source" folder includes the .chm, .hhp, .hhc, .hhk files, 2 x .css external styl ...Show All
Visual C# How To: get all the buttons from a form
Hi, i'm trying to get all the buttons from my form in some sort of collection, array, ... Is it possible to get a certain type of control out of your form Greetz You can iterate over all controls on the form and lookup of they match a specific type. Control[] textboxes = GetAllControlsOfType( typeof ( TextBox ) ); public Control[] GetAllControlsOfType( Type type ) { ArrayList buffer = new ArrayList(); foreach ( Control control in Controls ) { if ( type.Equals( control.GetType())) { buffer.Add( control ); } } return (Control[])buffer.ToArray( typeof (Control) ); } ...Show All
.NET Development Question about Reflection
Hi there, I'm searchin for a possibility to code the following scenario: My project includes a JScript-Sourcefile (The main project is a Windows Forms app written in C#). I'd like to dynamically compile the JS-File, execute it and can ideally referencing objects from my project. Question to you experts: Is this possible Can you point me to any good links, which contains ideally coding samples Thanks in advance Reiner Hi... excuse me if I missunderstood you. My knowledge in JScript isn't the best either. But, does exist a compiler for JScript code As far as I can remember, script languages ...Show All
Visual Studio Express Editions Creating my own navigation buttons
How can one create simple buttons to perform navigation, add, and delete on a database I COULD use the BindingNavigator but, for reasons too detailed to bother with here, I do no want to. Thanks for any help hi, you can add, delete records from your database directly , by your dataset , or by your bindingsource absolute beginner video series have a very good examples on how to do that ...Show All
Visual Basic Enumerate class properties?
Hi I simply want to display the values of all my properties in my class without having to reference each one. Is this possible without adding all my properties to a collection i.e. can I do something like for each p as property in myclass debug.print(p.value) next property Thanks in advance Jon You can get information about object in .NET using Reflection. For example, put the following code in the click event of a button on a form Dim properties() As System.Reflection.PropertyInfo Dim prop As System.Reflection.PropertyInfo properties = Me .GetType().GetProperties(Reflection.Bindi ...Show All
Visual Studio 2008 (Pre-release) How to pass parameters to Web Browser Application?
Hi, Is it possible to to pass parameters to web browser application Something like: http://localhost/Test.wba ClientId=12345 Thanks Yes it is possible. Within the web browser application, you can use System.Deployment.Application.ApplicationDeployment.CurrentDeployment.ActivationUri to get to the Uri and pull the request parameters from it. Regards, Ashish Shetty Program Manager, Windows Presentation Foundation http://nerddawg.blogspot.com ...Show All
Windows Forms RichTextBox Length
Hi! I'm currently programming a text editor that needs to display very large files... The one that I'm testing with is a log file that's about 55 MB. The StreamReader can read the entire file just fine, but I can't seem to get the entire text to enter into the RichTextBox. Here's the code I'm using: Dim openstream As New FileStream(filepath, FileMode.Open) Dim opensr As New StreamReader(openstream, True) Dim NewWin As New frmNoteWin NewWin.rtbText.Text = opensr.ReadToEnd opensr.Close() opensr = Nothing openstream.Close() openstream = Nothing It doesn't even come close to loading ...Show All
Visual Studio Team System DoNotDeclareVisibleInstanceFields
Hello, I'm using FxCop 1.35 and I have a question to the above-named rule: FxCop suggests using a private or internal declaration for a member variable and providing a public or protected property to access ist value from the outside world. I don't understand why internal is more encouraged as protected because in my understanding internal is "weaker" because it it accessable from the whole assembly whereas protected is only accessable by the same class or derived types. Or do I miss something here Well the derived type can be implemented in any assembly, so it can be code that you don't control. With inter ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Different results between REF and HAL devyce
Hi! When executing my pixel shader, results are ok. But when I execute with my recent new grpahic card Quadro FX 3400/4400 results are rubbish. Exactly what happens is that! In my pixel shader I have these four operations Output.weights.x = (1-frac2.x)*(1-frac2.y);\n" // 1 float output Output.weights.y = frac2.x*(1-frac2.y); // 1 float output Output.weights.z = (1-frac2.x)*frac2.y; //1float output Output.weights.w = frac2.x*frac2.y; // 1float output Using Devyce_REF results are for example 0.5625 0.1875 0.1875 0.0625 that its exactly what i'm waiting for, but using my grpahic card the results are quite differents : 0.56175613 0.19117355 0. ...Show All
