Leebo31's Q&A profile
Visual C++ Warning if variablename in function differs from implementation
Hi I have searched in the compiler warning list, msdn and a lot of other forums, but i couldn't find any warning for this. Is there such warning, or can i get it in another way It would be nice if the compiler raises a warning for this, just to keep my code clean. example: headerfile: class myClass { int myFunction(int a, int b); } cpp file: int myClass::myFunction(int c, int d) { return c+d; } Some would argue that named variables in function declarations break encapsulation, others would say that it helps build an understanding of the interface (and thus has nothing to do with the encapsulation). I'm with the latter ...Show All
Visual Studio 2008 (Pre-release) Using Styles in WPF
Hi I using a Tabcontrol and binding the items dynamically to a List of strings. I have written two different Styles in my Application Resource, Is it possible for me to use the first Style for the first two TabItem in the control and the Second style for the rest of the tabs that are created in the control. hi Iam tring to directly bind the "ItemSource" property of the Tabcontrol to a list of String so how to set the style's of the items...... Could you help me out with a code snippet Regards Ragu ...Show All
.NET Development Web Service must call a Console App located in the same directory (Simple)
I have a small problem, when I am calling the Console Application from the Web Service it is not bringing it up, it is located in the same directory. Is this possible and please can you tell me how to do it. I think it is simple. This what i got so far. Process prcCompare = new Process (); prcCompare.StartInfo.FileName = HttpContext .Current.Request.PhysicalApplicationPath + "idb\\MappingProc.exe" ; prcCompare.Start(); Thank-you very much for your help ahead of time . Looks like the Console Application is running under the user and the web service is running under the ASPNET or IUSER. Is there any way I can switch the user when I call the process. Thank-You Nikhil very much f ...Show All
.NET Development !!!!!!!!!!!!!! .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3)
Hi all I have got a very big problem !! I have a Windows Service Application (Multithreaded) which runs since about 6 month very fine. It is developed in C# VS 2005. Now, I guess after some Windows Updates, the service does not work at all !! After starting it, it stops after about 10 seconds. It does not stop always at the same time, sometimes 10 sec. sometimes 30 sec. In the EventViewer I got messages like: ".NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3)" I have the same problem on Windows XP and Windows Server 2003. What is wrong What do I have to do to fix the problem I also already tried to uninstall Security Updates (Framework) and I installed VS SP1. Thanks very very much ...Show All
Visual Studio GDI+ Image control
Hi, Can I draw a bitmap with GDI+ and the use as a field of my object to put it into the report. Something like this... private Bitmap bmp; bmp = new Bitmap(100, 100); Graphics g = Graphics.FromImage(bmp); g.FillRectangle(Brushes.Red, new Rectangle(0, 0, 10, 10)); g.FillRectangle(Brushes.Blue, new Rectangle(10, 0, 10, 10)); g.FillRectangle(Brushes.Green, new Rectangle(0, 10, 10, 10)); public Bitmap Imagen { get{return bmp;} } and then use Imagen property in the rdlc file in a Image control with Fields!Imagen.value and setting the MIMEType to bmp I tried but it doesn’t work. Any idea thanks Hi piccolo, Would you mind to share your experienc ...Show All
Visual Studio Express Editions Help In Coding
I had the following code, how do i actually pass the value from the select statement to the Contactlbl.Text Thanks Protected Sub GoBtn_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles GoBtn.Click Dim objConn As New SqlConnection Dim objCmd As New SqlCommand Dim Value As String = EventCmb.SelectedItem.ToString() objConn.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename='C:\Documents and Settings\HP\My Documents\Visual Studio 2005\WebSites\FYP2\App_Data\Event.mdf';Integrated Security=True;Connect Timeout=30;User Instance=True" objCmd.Connection = objConn objCmd.CommandType = CommandType.Text objCmd.CommandText = "SELECT EventTel FROM ...Show All
Visual Studio Express Editions only take text between two points
i want to only take the text between the >text in here< <OPTION value=i1100161>chris - 0411532348<OPTION value=i978461> i want to take the text of "chris - 0411523248" and nothing else. How can i do this. Assuming the string contains only one > before the desired text and one < following the desired text, you could do this: Dim word, myword As String, start, finish As Integer word = i1100161>chris - 0411532348<OPTION value start = word.IndexOf(">") + 1 finish = word.IndexOf("<") myword = word.SubString(start, finish - start) ...Show All
Software Development for Windows Vista VISTA compatibility with MS Office Outlook
Hi, Do anyone have idea which versions of MS Office Outlook (2000, XP, 2003 ... ) are supported by Windows VISTA Not able to find a compiled list from any of the microsoft site. Thanks, Hello adil_ikram, I also was unable to find an official list of Office products that will install on Vista however, according to the built in shim database Vista has shims for Office versions back to version 4.3. The list totals Office versions: 4.3, 95, 97, 2000, XP, 2003 and of course Office 2007. Also I would suggest posting your question in the TechNet Vista Application forums located here http://forums.microsoft.com/TechNet/ShowForum.aspx ForumID=722&SiteID=17 as the MSDN forums are geared more towards d ...Show All
Visual Studio Express Editions How to create a string from a field of the selected row
Ok, I have a super simple form that works, but not how I want it to... My form has 1 combobox, 1 label, and 1 button. I have a datasource, tableadapter, and a bindingsource. The database has 3 fields in 1 table. ID, Name, URL ID is not displayed on the form, the combobox is binded to Name, and the label is binded to URL. on btn1 click call shell("internetexplorer path " & label1.text, 1) All works well and good. However, I dont want to have to show the URL... now, the ghetto work around is to make the label1 font color the same as the form back ground color, and that works... but, I'd like to know the 'right' way to do it. I need to know how to dim url as string = url colum of the selected row basicly. ...Show All
Windows Forms DefaultValuesNeeded Event not Firing
Good morning, I am trying to default vaues for a couple of columns on my grid. I have tried a couple of approaches but cannot seem to get this event to fire. I am letting Visual Studio do the majority of the work so in the designer you have: this.broadcastRightsDataGridView.DefaultValuesNeeded += new System.Windows.Forms.DataGridViewRowEventHandler(this.broadcastRightsDataGridView_DefaultValuesNeeded); And then this: private void broadcastRightsDataGridView_DefaultValuesNeeded( object sender, DataGridViewRowEventArgs e) { MessageBox .Show( "defaultvaluesneeded entered" ); } Yes, I have tried debugger to see if the method gets hit but this is a hold over from my old green screen days. Anyway, the ...Show All
SQL Server SQL 2005 Reporting multi-select parameter question
I am trying to create reports that are similar to ASP.net datagrids and use several parameters of which some are multi-select parameters. I do see how to use multi-select parameters in the reports from SQL 2005, but I would like the values of the multi-select parameters to vary based on who is logged in. For an example we have users who can look at our clients from their location, but I do not want them to be able to select or see clients from other locations even though that should be a parameter. I am not sure if this is best to do as an SQL 2005 report which creates the .rdl file or a Visual Studio project with a report which has the .rdlc file. I think the Visual Studio .rdlc file would allow me to control the connection, SQL quer ...Show All
Game Technologies: DirectX, XNA, XACT, etc. WOW!! Difference between running the EXE and from within GSE
I've just been playing round writing my sprite class. I already had what was effectively a parallax star field using textures that were 151x68 (some old rockets from when I did Dexters Lab on the GBA) using a custom class but I wanted to try my new generic classes. Each rocket was scaled by speed value to push the slower ones into the distance and each one was tinted to make the distant ones darker. So that's scaling and colour transformations at the same time. The whole lot was sorted by speed to make sure the faster ones appeared on top. Nothing fancy but it was doing quite a bit of donkey work. I decided to start pushing the code to see just how many it would move. From within the GSE, at 200 it was jerky and not very pleasant. I ...Show All
Visual C++ Adding a window within a window.
Hi all, I have created a window(without title bar) class with image manipulating functionalities. Just I want to show this window as part of another window, that is with in a window just like controls. I know to display as a separate window. But I just want to show as part of parent window, like a control. I hope my question is clear. I am using Visual Studio 2005. :) Purusothaman A Thank you viorel. But I am not yet clear. Is it simply enough to pass parent window as parameter and specify WS_CHILD style to a class derived from CWnd/CDialog Will this embed my CWnd/CDialog derived class's object into another window Can u show me a small example (pseudo)code snippet Sorry for asking more. Because I alrea ...Show All
SQL Server Full-Text Crawl Error in logs
Hello I get tons of errors of this type. Are the error-code (x14b) documented I've checked a couple of rows but don't find what could be wrong. I'm running sql 2005 with sp1, noise-word files are empty, index has many columns which are in different languages. Thanks for any support Extract from log 2006-12-20 22:52:51.53 spid20s Error '0xc000014b' occurred during full-text index population for table or indexed view '[shab001].[dbo].[TSH_SHABDATA]' (table or indexed view ID '917578307', database ID '5'), full-text key value 0x00000000001E7E42. Attempt will be made to reindex it. 2006-12-20 22:52:51.53 spid20s The component 'MSFTE.DLL' reported error while indexing. Component path 'C:\Programme\Microsoft SQL Server\MS ...Show All
SQL Server OLEDB Destination Error in SSIS Package not returning error column/desc
I have a SSIS package that reads data from a dump table, runs a custom script that takes date data and converts it to the correct format or nulls and formats amt fields to currency, then inserts it to a new table. The new table redirects insert errors. This process worked fine until about 3 weeks ago. I am processing just under 6 million rows, with 460,000 or so insert errors that did give error column and code. Now, I am getting 1.5 million errors. and nothing has changed, to my knowledge. I receive the following information. Error Code -1071607685 Error Column 0 Error Desc No status is available. The only thing I can find for the above error code is DTS_E_OLEDBDESTINATIONADAPTERSTATIC_UNAVAILABLE To add to the confus ...Show All
