Esenthel's Q&A profile
Visual C# How do I stop running a function?
Hello, I need to know how I can stop running a function in the middle of running it. I cannot give any real coding examples but, I can get a structural example and show what I mean. private void TestFunc(string a, string b) { while(a != b) { try { // Code that should run like normal. } catch(Exception ex) { // If the code gets here I should stop the entire function right away! (TestFunc) } } } If the code gets to the catch I have to stop executing the function right away and run another function (which is handled elsewhere). This is a very newbie question but, I've not had to do this yet. Thanks for any help. Quilnux Quilnux wrote: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Issues rendering a triangle
I understand this is beta and the docs aren't complete, but the docs are very limited. I'm attempting to render a triangle to the screen and am failing. I was hoping for basic code as was provided with MDX. Currently I get a cornflower blue screen but nothing is rendered. I've attempted taking the vertex declaration out of a using clause, and that did nothing. Any ideas I figure I must be missing some setting somewhere. Here's my draw function: protected override void Draw() { // Make sure we have a valid device if (!graphics.EnsureDevice()) return; VertexPositionColor[] triangle = new VertexPositionColor[3]; triangle[0] = new VertexPositionColor(new Vector3(-1.0f, 0.0f, 5.0 ...Show All
Software Development for Windows Vista Compatibility settings not working after uninstall / reinstall
Our application launches other executables that require elevated permissions to run. These other executables were sometimes failing to launch the first time the application was run and succeeding after that, and sometimes failing to launch no matter how many times we tried. We implemented a workaround of setting the registry key HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\[app path] to ELEVATECREATEPROCESS. This worked great - our programs would now launch correctly and ask for elevated permissions as expected. However, if we uninstall the application and then reinstall it, the workaround no longer works. We are removing the registry key that we created when uninstalling and creating it again when installing. If ...Show All
Visual Studio 2008 (Pre-release) DateTime to Int64
user error and mismatch datatype in the database... thanks. Have the tracking columns all ready in place on all tables and will update accordingly... so awesome... i was totally hoping that was the answer and not any additional code changes! You guys did a great job on this one man... keep up the great work! :) Oh yeah... thank you again very much for the walk through... I really appreciate it. Bill ...Show All
.NET Development Remoting sponsor's Renewal() method just stops being called at some point of time. Reason?!
Overall description of the problem. I have a strange problem with .NET remoting. I use .NET remoting to support plugins in one single application which are independent of one another. This architecture was insprired by the following article: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dncscol/html/csharp05162002.asp So I use what I would call "in-memory remoting", I mean I have one process (one exe at runtime) but several AppDomains in it. One of them is my client app domain (I also call it my main AppDomain). Let's denote it by AppDomain M. This is where my UI components (windows forms) live for example. On the other side I have several client AppDomains - A1, A2, A3. In those domains I insta ...Show All
Internet Explorer Development An page element behave like a frame.
Hello is there any way to make a page looks like using frames but it is coded in the same page I am trying to write one HTML page that behave like a page containing two frames, top and bottom. I want to keep everything in one page, and when the bottom frame scrolls, the top stay the same. Thank you. Hello, thank you for the help. But I am having problem with target and goto target. When I click iii2, I couldn't see " A few lines to scroll 3 ". It has been covered by the header. How do I fix that Is it possible to write a script to adjust the possition based on the height of the header Thank you very much. <body> <a name = "Hello1" ></a> <div class= " ...Show All
Visual Studio 2008 (Pre-release) Returning an array of custom data types, array always empty
Ok, I'm really about to lose it with this problem. It's such a simple concept but some how I can't get it to work. I have a service that returns a List(of somecustomobject) and I can see that the list does have items in the service but when it actually returns to the client, there are 0 elements! I created a simple service/client to see if I could figure out the problem. It has to be something simple! Here's my test service code... <ServiceContract()> Public Interface IService1 <OperationContract()> Function MyOperation6() As List(Of ComplexString) End Interface Public Class Service1 Implements IService1 Public Function myoperation6() As List(Of ComplexString) Implements IService1.MyOperation6 Dim x As New List(Of ComplexS ...Show All
SQL Server Sql express 2005 conflicts with my 2k instance
Hello, i have both server instances installed on same machine, 1st is sql 2k enterprise and 2nd is sqlExpress 2005. all was working fine till today, i renamed a catalog in the express2005 instance. the reason for this renaming was a duplicate catalog name in the 2k and in the 2005 so when i backup my dbs one is overwriting the other because of the same file name. after this rename i started to get some errors in the application so i decided to rename it back to its original name and relocate the backup destination to other folder. now the situation in that i cant login any more to the 2005 server, when i login to serv\sqlexpress2005 (via manager or via odbc) i see always the 2k server. i tried to login to an ...Show All
SQL Server Rows in Pages
Hi everyone, I have a simple question about Rows in Pages for you. In my opinion, rows are the storage of the data in databases. I would like to ask that there are any important properties of Rows which I am not aware. Thanks Hmm, joeydj , I have some doubts about your MS tutorial. First y, I did not know that there is a specific type for texts and images. I supposed that texts and images are required more than one pages generally since their size generally involves this. So would you please explain this to me Thanks ...Show All
SQL Server Ordering columns in data flow (simple?)
Hello, I am new to SSIS. I am trying to write a simple package to export data from some SQL 2005 tables and into a flat file. In my data flow, I am using the OLE-DB data source and then the flat file destination. This all works fine except that I cant get the package to write the columns out in the order I want. Even when I drive the OLE-DB source by a query, they columns are getting written to the flat file in a different order than I want. How is SSIS determining what order to write the columns in and, more importantly, how can I change it to do it in the order I want Please help if you can. As mentioned I am new to SSIS so please give clear+simple answers. Thanks Mgale1 Hi Phil, You are correct - ...Show All
.NET Development Calling C# webservice from Visual C++ 6 using SOAP
Iam trying to call a C# DotNet 2003 webservice from Visual C++ 6 app (used win32 console, mfc, atl_mfc dll) using Soap toolkit 3. The webservice takes a String input parameter and returns a String. The input parameter I pass through C++ is always recieved as NULL in C# webservice while the output is working fine and it is returned back in C++. I have even tried with wsp wizard using atl_mfc dll and vb GUI but input always failed. It didn't give any error either. It will give an error when I output, input parameter as it is without appending to a string, then it will say Invalid pointer error in C++ app. Plz anybody can help in this regard. A bundle of thanks. My C# webservice code is as, it is a simple ASP.NET web service generated thro ...Show All
Software Development for Windows Vista unable to connect to remote graph
I could not find anywhere in the docs how to use connect to remote graph feature of GraphEdit. how do I do this Funny, I did a search for "Connect to remote graph" on the ms site and it popped right up: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directshow/htm/loadingagraphfromanexternalprocess.asp ...Show All
SQL Server who can tell me the function of CDbl
lately, i have always see other workmates's code about MDX, i find there is a sentence below: IIF(IsEmpty([Measures].[C11696]/[Measures].[C11695]), null,( IIF([Measures].[C11695] = 0,0,CDbl( [Measures].[C11696]/[Measures].[C11695])))) ' and i try to find the details of CDbl on online help, but i can't get. Who can tell me and where i can find details about CDbl thks very much It looks as though it is accessing the VB function cdbl, which will cast the results of [Measures].[C11696]/[Measures].[C11695] to a double. Try this link for more info: http://www.informit.com/articles/article.asp p=29418&seqNum=6&rl=1 However, I'm not 100% sure that the cdbl is needed, as I thought tha ...Show All
.NET Development reflection - CustomAttributeBuilder
Hi, I am looking for a way to create a CustomAttributeBuilder of the same type and with the same values as a CustomAttribute that has been accessed via reflection (i.e. someMember.GetCustomAttributes()). I can't find a way of getting all the info i need to do this. For example, if i use the constructor: CustomAttributeBuilder (ConstructorInfo, Object[], PropertyInfo[], Object[]) I can populate the arrays for the last two arguments as follows: Type attributeType = customAttribute.GetType(); List<PropertyInfo> newProperties = new List<PropertyInfo>(); List<object> newPropertyValues = new List<object>(); foreach (PropertyInfo p in attributeType.GetProperties()) { if (p.CanWrite) { newProperties.Add(p); newPr ...Show All
Visual Studio New to ReportView - How to Feed DataTable into Report
I am trying to use the ReportViewer in VS 2005. It seems from research that I can use a DataTable to populate the report, but I have not yet been able to get it to work. This is a windows forms app. The report's name is CMSInvoice.rdlc The form's name is TestReport.cs The ReportViewer in TestReport.cs is named "ReportViewer1" In the form TestReport.cs ReportViewer Tasks I've specified the reports name as the above, CMSInvoice.rdlc, although I'd like to move this declaration into the code section. In the form TestReport.cs there are no DataAdapters and such created by wizards. It is just a form with a report viewer with the report name specified. This code works fine in getting a DataTable In the forms open event: String strConn ...Show All
