Stigern's Q&A profile
.NET Development Stepping Through Automatically generated code and JMC.
I have created a hyperthetical example of code which is the output of a CodeDom Graph. I have used the linepragma property in the codedom to create a mapping between and externalcode.txt and the generated code. This has been realised by the #ExternalSource statements. 01: Public Class Example 02: Public Sub New() 03: Dim a, b, c As String 04: 05: #ExternalSource("ExternalCode.txt",1) 06: a = "hello" 07: #End ExternalSource 08: 09: b = "World" 10: 11: #ExternalSource("ExternalCode.txt",2) 12: c = "Test" 13: #End ExternalSource 14: End Sub 15: End Class My question is how I can get mdbg to "Step" only over the lines of code that have a mapping to ExternalSo ...Show All
Visual C++ Howto Handle Mouse Messages
I'm reading a tutorial on VIsual C++, which keeps refering to a Class Wizard. I've Visual Studio 2005, but I cant find a Class Wizard anywhere. I want to handle WM_MOUSEMOVE message. According to the tutorial, I should select it from a list of messages in the Class Wizard. I tried adding a OnMouseMove() function in my c++ file, assuming that it will automatically get mapped to WM_MOUSEMOVE message, but that didnt happen. Could someone please help me out here. For messages we must create an entry in the message map so that Windows knows to call the override function. See Where Are ClassWizard and WizardBar in Visual C++ .NET to use the ClassWizard. ...Show All
SQL Server Using SQL2005 XML Column as a Report datasource
Hello all. I am trying to create a report based on XML stored in a table. The data is stored on a SQL 2005 server so I am using the XML data type for the column. Basically the xml looks like: <Changes version = "2.1"> <Change name = "ChangeType1"> <Change name="PaymentID" id = "someuniqueidentifer" displayid = "PaymentID" type = "Edit"> <Change name = "PaymentStatus" oldValue = "Release" newValue="Hold"/> </Change> </Change> <Person Name = "John Doe" Dob = '1/1/1975' /> <Account Type="Other" Accountid="38317830948734902-01" StartDate = &q ...Show All
Visual Studio Express Editions how can I just load form1 without show him from other form(form2)?
Hi, I have an application that take 6 second to load and then to appear on the screen (in the 6 second you can see the form but he look like stuck and after 6 second it is working properly). I want to do a progress bar while the application is loading. So I thought maybe to make another form(form2) with a progress bar and to load the first form (form1) while the progress bar fill in ( in form2). but I didn't find how can I just load form1 without show him I be glad to hear other ideas if you have Best Regards, Yaniv with : Me.Hide() Form2.ShowDialog() Me.Show() it is open the form2(progress bar) when the progress bar end he doesn't continue ...Show All
Visual C# Translating from vb
Hi, Does anyone know how I would go about converting the following code into C# Partial Class Login Inherits System.Web.UI.Page Protected Sub Login1_LoginError( ByVal sender As Object , ByVal e As System.EventArgs) Handles Login1.LoginError 'Set the parameters for InvalidCredentialsLogDataSource InvalidCredentialsLogDataSource.InsertParameters( "ApplicationName" ).DefaultValue = Membership.ApplicationName InvalidCredentialsLogDataSource.InsertParameters( "UserName" ).DefaultValue = Login1.UserName InvalidCredentialsLogDataSource.InsertParameters( "IPAddress" ).DefaultValue = Request.UserHostAddress 'The password is only supplied if the user enters an invalid usern ...Show All
Visual Studio 2008 (Pre-release) How to install the certificate on client's system?
Hi all, i am about to deploy an application developed in wpf+wcf with full trust. I have published the application on my server and when i try to browse it, it gives an error stating "Trust not granted". i have my company issued certificate but the issue is, i want to add the certificate automatically to the client's system so that it appears as the "Trusted Publisher" instead of letting the client to manually add it. I have read the messages posted previously in the forums but did not find the one which could help me out. If anyone have the solution or an idea so as to how to solve it, kindly help me. I'm assuming you're trying to run an XBAP as full trust. This involves install ...Show All
Windows Live Developer Forums Insert my Map
I have the map of my city. Using the Virtual Earth Map Control, how I do the insert of the map in my site I see only maps of countries and states, I want insert my map. Thanks ! oh-oh, i completely misunderstood you, sorry, well there are 2 ways i know of: 1. use the mapcruncher from microsoft to create your own tiles and the mapcruncher javascript classes to create a new layer over the default one http://research.microsoft.com/mapcruncher/tutorial/ 2. just setup your own tile server, that returns your custom tiles when your city is in view, and returns the default map tiles (from the original tile server) if your custom tiles are not available. ...Show All
Visual Studio 2008 (Pre-release) Polygon.Points Binding TwoWay
So, I have a class that has a PointCollection, that is used to store some polygon geometry. I have a DataTemplate that I am using to display the polygon data, and am databinding its Points collection to my object's Pointcollection. This works well for displaying the polygon the first time, but if I change any of the points in the object's PointCollection, then the polygon is not updated with the new shape information. The weird part, is that if I just set the Points value of the polygon to the object's points property, it works as expected. I was able to create a custom shape to get around this problem, but I was wondering if this is a bug. Here are the important bits. By the way, I am running RC1. <DataTemplate DataType="{x:Type ...Show All
Visual Studio 2008 (Pre-release) Service and WCF
Hello Everyone, I asked a similar type of question before and I want to be completely sure as this is little confusing to me. I have a customer which wants to use the .NET 3.0 framework and WCF and everything should run as a service on Windows Terminal Services. I'm wondering what type of project should be made and how to use WCF there. Any examples, articles really appreciated. Thanks, Harsimrat Yes, everything should run inside a terminal services session. To accomplish that task is there any special way to setup a project or normal Windows Services Project in VS 2005 will do that for me. Secondly, I want to generate proxies using svcutil.exe of all my implementations in WCF, in tha ...Show All
Visual Studio Team System Enumerate TFS Areas using ICommonStructureService interface?
How can I programatically list the feature areas from "Areas and Iterations" in TFS I am led to believe that this may be accomplished with the common services structure service, using the GetNodesXML(string uri), however I'm at a loss guessing what to pass for a uri. Thank you. p.s. I've tried passing the project uri vstfs:///Classification/TeamProject/09b66296-8c33-4aa7-9a8e-3e6acc2dce8f but that results in an "Malformed Artifact" ArgumentException. I've also tried without the vstsfs:// protocol, and I've tried giving it just \MyProjectName and /MyProjectName, and many variations therein... Here is some sample code that might help. Here is a rough sample to get root area/it ...Show All
SQL Server Expression-based Data Source + subscription = No-go?
Set up reports to use expression-based data sources and everything works fine as far as executing and viewing the reports. The ConnectionString expression includes the credentials, and the "No credentials required" option is selected. Unfortunately, am getting this when trying to create a subscription for same report. WTF eportingServicesService!processing!3!12/20/2006-12:20:07:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'XXXData'., ; Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'XXXData'. ---> System.InvalidOperationException: The ConnectionString property h ...Show All
Visual Studio 2008 (Pre-release) Validation of inbound data with WCF
Hello, I have run across an interesting problem with validating inbound data and (in this case) using WCF. I have a data object which has two integers, latitude and longitude which i am expecting as part of a call. In this case, the value that the integers initialize to, 0, is also a valid coordinate in terms of latitude and longitude, so my valiations on the server side can not test for 0 as an invalid value. What i had done on the business object validation is compare the incoming data against int.MinValue which works great for unit testing the local business process (which is what the service is calling when it receives a request) because i can assign that value to the member variables of the local business entity when those member v ...Show All
Visual Studio 2008 (Pre-release) Security Pain (Vista basicHttpbinding)
I am struggling to get my server running with the basicHttp binding over https on Vista (it is a self hosted server). The server starts up and doesn't complain but the client exceptions when I try to start it up: "An error occurred while making the HTTP request to https://192.168.1.64:8081/Server/G2SServer . This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server." My first question is whether configuring http.sys is required for an application running with the basicHttp binding (this help page implies it is only necessary for WSHttpBinding ms-help://MS.MSSDK.1033/MS.NE ...Show All
Visual C++ File Handling in C++
I am pretty new to C++ I need to update a .dat file using C++ code. can anyone share the code for the following Query I have a .dat file its first line reads "Version=005" i have to overwrite 005 to 006. Hi, The following code snippet will help you.It will exactly replace the 11 th characther to '6'(from '5').If u need whole string replacement , let me know, i'll be there to help u always. The code is: ----------------- #include <iostream> #include <fstream> using namespace std; #define szInputFileName "c:\\temp.txt" //replace this with ur file name. int _tmain( int argc, _TCHAR* argv[]) { ifstream inputfile; inputfile. ...Show All
Visual Basic i want to change this code for entering all file names contain in a folder and store in Excel column "A1".
i want detailed answer with example code.thanks.. '--------------------------------------------------- moreover i want to use this to get file names Dim file As New FileInfo(path) file.Name '----------------------------------------------------------- Public Sub ExcelFileCreation( ByVal path As String ) mStrPath = path mArrList = New ArrayList objxl = New Excel.Application If Not File.Exists(mStrPath) Then Try mObjExcel = New Excel.Application ObjWB = mObjExcel.Workbooks.Add mObjWSheet = ObjWB.Worksheets.Add Catch ex As Exception MessageBox.Show(ex.ToString) End Try If mObjWSheet.Range("A1").Value = "" Then mObjWSheet.Range("A1").Value ...Show All
