Travis Penno's Q&A profile
.NET Development Trace.Writeline skipped
Hi I'm creating a web-service and am trying to trace to a listener using Trace.Writeline. However, the trace is not being written to and using the debugger, I see its because the Trace.Writeline() line is being skipped. However, if I change it to Debug.Writeline, it gets written. Can anyone help as to why Trace.Writeline is being 'compiled out' Thanks How do I set this ....I'm used to WinForms where I can set it in the project's property pages. There appears to be no such option 'Build' property page for the web-service ...Show All
Visual C++ Re-engineering
Hello, I haven't been able to find any information on what kind of (mainly legacy C and C++ code) re-engineering support exists in Visual Studio 2005. Is there any and if there is, where can I find more information on it I mean features like (1) creating diagrams and architecture documentation according to dependencies (function calls, macro calls, class hierarchies/associations, include file hierarchies, directory structure, ...) in existing code, (2) manually adding new groupings in these diagrams (e.g. grouping some functions together in the diagram for visualizing possible new module structures), (3) generating and brows ...Show All
SQL Server Capturing and reporting execution errors
We have a report subscription that emails an excel file every morning at 11am. For the past two mornings the subscription fails due to one of the parameters being null. This was caused by another programmer changing a stored procedure used in the report. What I'd like to know is how can I capture and report that the report failed to be produced. I have loaded the Execution Log sample reports and the relevant DTS package to load the logs is run every 5 mins. However, this error does not show up in the reports. The entries in the Report Server log file are as follows, ReportingServicesService!dbpolling!25a4!17/08/2005-11:00:12:: EventPol ...Show All
Visual C++ resources and dll's
Hi I have a windows component written in c and I am loading a custom mouse cursor like mouse_cursor = (HCURSOR) LoadImage(GetModuleHandle(0), MAKEINTRESOURCE(IDC_ZOOM_CURSOR), IMAGE_CURSOR, 0, 0, LR_DEFAULTSIZE); SetCursor(mouse_cursor); This works fine when I compile the control and a function to test the control into a executable. However when I compile the control as a separate dll and try to test that the cursor doesn't load. The error is 1812 "The specified image file did not contain a resource section.". I assume the problem is GetModuleHandle(0) is not the handle to the dll but the executable. ...Show All
Visual Studio Express Editions Random Letters
How do I get a Random Letter I think I need to first get a Random number, then have the number = a Letter i.e A=1, B=2 etc but how do I do this This might help: Dim str As String = "" Dim i, n As Integer Dim c As Char Dim rand As New Random For i = 0 To 9 ' Length of string required n = rand.Next(65, 65 + 26) ' A thru Z c = System.Convert.ToChar(n) str = str + c Next MessageBox.Show(str) It's perhaps not the best way of achieving this, but it works... HTH ...Show All
Visual C++ Different results by recompiling
Alright, i've got the following opensource code witch is a part of Luigi Auriemma's GSList. There is one function i'm intereseted in, however, if i recompile it in VC8 and approach it with the same input as for the original function, the output is different.The function is totally written in C, so i had to make a few changes, however there arent any crusial once. The code can be found here: http://polity.magnoon.nl/TEMP/Validate.rtf I hope someone can show me the problem, and how to fix it. it would really help me out. It goes about the function: unsigned char *gsseckey( unsigned char *dst, unsigned char *src, unsigned ...Show All
Windows Forms MDI Parent/Child Problem
Hay guys. I kind of new to this whole thing, and I was wondering if someone could help me with this problem: I've got a MDI Parent with a menu. When you ckick on one of the menu items, this code runs: Dim Form as new Form1 Form.MDIParent = me Form.show() Now: is there any way to create a new form (Form2) from form1 and still make it an mdi Child. Basically: 'This code is in a button Dim Form as new Form2 Form.MDIParent = Form.show() I tried this code: Dim Form as new Form2 Dim MDIForm as MDIMainForm Form.MDIParent = MDIForm Form.show() but that does'nt work, it does'nt show the form ( ) Is this direction, or is this completely wrong Is ...Show All
.NET Development Is Typed DataSet is better option than DataSet in a large Enterprise application
hi there, Me and My team is currently in a process of desigining an enterprise application. Basically it is a web based nTier application. At this time I have to take decision which option is better "DataSet or Typed Dataset". I know both have there own pros and cons. I also already studied many articles like http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnbda/html/BOAGag.asp . So from you i just wants to know which option is better for Enterprise level application and why Regards, Farukh. once again thanks to all well i think that it gives all benifits as you people said like type checking on compile ...Show All
SQL Server Why can't add a specific Group as a login to SQL Server 2005
Hi, I am trying to add "Remote Desktop Users" as a login group to SQL Server 2005 (i.e. so they can log into management studio). I get a "Not Found Error" (see below). But it is of course found, because I selected it :-) What is going on here I see the "Administrators" group and various SQL Server groupls added automatically there, so there must be a way, right I know I can add each user in the group individually, but that seems overkill when I can just use the group in which they are contained. Here is the error I get: TITLE: Microsoft SQL Server Management Studio ------------------------------ C ...Show All
Smart Device Development Split screen in native
Is it possible to split the PPC screen so that an application can be running on 3/4 of the screen, while a custom tool bar remains visible either above or below it I need this badly; I hope it's possible... Thanks, Pete M Hi, Right now there isn't any MFC class support for split screen in VS2005. I think you will need to handle this issue in your code by managing the window objects. Thanks ...Show All
.NET Development WSE 3.0 & WS-Addressing
I'm trying to add soap header elements (To, From , MessageID,...) to messeage, but i don't know how. Could someone please tell me how to add these elelments in C# <soap:Header> <wsa:Action>http://tempuri.org/sayHello</wsa:Action> <wsa:MessageID>uuid:4925dfcf-30dc-4393-b9da-d373c24bad0d</wsa:MessageID> <wsa:ReplyTo> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address> </wsa:ReplyTo> <wsa:To>http://localhost/wsetest/service1.asmx</wsa:To> </soap:Header> Please help! Thanks. Jerry ...Show All
SQL Server how to do this select query???
I have a table that looks something like this: CREATE TABLE Oval_Import ( IdNum INT NOT NULL PRIMARY KEY, DOB datetime NOT NULL, . . . . . ) I'm trying to select all the records from the table (notice the DOB date field returns only the date part), but I ran into problems displaying the rest of the fields after the DOB. I tried a select query like this but it returned every column 'again' after the DOB: select IdNum, convert(varchar,DOB,111), * from Oval_Import; I don't want to explicitly select each individual column after that either because there are very many after t ...Show All
Visual Studio It is possible to write my own source control plugin?
I am just wondering if it is possible to write my own source control plugin for VS. For example, It would be very nice if we have a source control plugin that bridges VS and the popular CVS or Subversion. Are the source control plugin interfaces open to developers Be sure to let us all know when you're done - we'd love to try it out. There are already a few available, by the way, but (with the exception of the commercial version, which I haven't tried), all of them are pretty poor. Have a look at http://subversion.tigris.org/links.htm for details... ...Show All
Visual Studio VSTestHost.exe
When attempting to run a basic test where I scroll around yahoo, when selecting run I keep getting a VSTestHost.exe error. I ran the debug and it came up with this access violation. EHAccessViolation Has anyone else come across this during a test run If you have please contact me since I am very new to using the MSDN tools. Thanks Robert Seiler MGM-Mirage rseiler@mgmmirage.com Hi Robert, Can you provide more information about this, such as -Are you running on an RTM version of VSTS -I assume you were recording on a Web Test when you saw this error -Anything else you were doing before this ...Show All
Windows Forms edit xml configuration file
Hello, I have code that reads a XML configuration file into a DataSet/DataTable using the XmlDocument class. I then bind a Windows Forms Datagrid to the DataTable to display the property/value pairs. Works like a charm. However, no matter what I do the DataGrid does not allow edits. I was hoping to edit the values in the DataGrid and then write  ...Show All
