Jamie Julius's Q&A profile
Visual Studio Team System can instruction number be accessed in MSIL?
Hi, I have got two questions. 1. Can instruction number that is number that appears before opcode that starts with IL_xxxx be accessed If so how can it be accessed for example IL_0017 : callvirt Void [System.Data] System.Data.SqlClient.SqlConnection.Open() i need to access the part marked with red background. 2. Also can the instruction number after Br statement be accessed for example IL_003c: brfalse.s IL_0044 how can the part marked with red background accessed Thanks, the Instruction object has a Value property, that contains an integral value for all branch instructions: int jumpOffset = ( int )instruction.Value ...Show All
Windows Forms setup project and satelitte assembly
I have problem in build setup project. I have SomeExeProject that have referense to 3party multilanguage assembly, it placed on some net share like \\someWarehouse\3partyAssembly.dll So when i build SomeExeProject, it copy to bin folders like ru-RU/3partyAssembly.resource.dll and it works fine. But when i create setup project(SomeSetup) for SomeExeProject and add PrimaryOutput of SomeExeProject and Localized resources of SomeExeProject it not copy to msi folders ru-RU/3partyAssembly.resource.dll And so when i run SomeExe installed from SomeSetup it not work, because application can't find ru-RU/3partyAssembly.resource.dll. I can add File (ru-RU/3partyAssembly.resource.dll) because 3partyAssembly periodically changed and Setup Project i ...Show All
Visual C# what is "Neural Network" and its algorithms
i want to know about Neural Network and its algorithms and how can i implement it by C#. At code project you will find 11 part turorial about Neural Network in C# you can find them at http://www.codeproject.com/script/Articles/list_articles.asp userid=441940 also look at C# Neural network library other two part articles Brainnet 1 - A Neural Netwok Project - With Illustration And Code - Learn Neural Network Programming Step By Step And Develop a Simple Handwriting Detection System Brainnet 2 - Designing And Implementing A Neural Network Library For Handwriting Detection, Image Analysis etc.- The BrainNet Library - Full Code, Simplified Theory, Full Illustration, And Examples ...Show All
Visual Studio 2008 (Pre-release) How to modify default WPF application startup....
I have a problem regarding starting a WPF application. I have two windows - window1 and window2. The application.xml is defined as follows: < Application xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " x:Class = " MeiRouInterface.MainApplication " /> Main application class is defined as: public partial class MainApplication : System.Windows. Application {.....} On startup I need to decide which window to open - window1 or window2... I do realize that a WPF has an entry point - Main() method... but I can't find a way to override that method.... How can I modify the startup method... I have also tried ove ...Show All
Visual C++ OleDB Schema Rowset Classes and Typedef Classes - CConstraintColumnUsage.Open - results in E_INVALIDARG
Hi, I am trying to use OLE DB schema rowset classes to get some specific information from a SQL Server 2000 database. Some of the rowset classes like CTables, CTableConstraints work fine. But when I use other classes like: CReferentialConstraints and CConstraintColumnUsage, they always throw an error when I call the Open function. The HResult returned always says E_INVALIDARG no matter what parameter I pass into the Open function. If anybody has info on the function calls that would be great. Thanks Code Sample: int testOleDBGeneric() { HRESULT hr; CoInitialize(NULL); //Open a Data Source CDataSource m_DataSrc; hr = m_DataSrc.OpenFromInitializationString(L "Provider=sqloledb;Data Source=loc ...Show All
Visual C# Wrong overload being called
I have a class with two methods, one of which overrides a base class method: public override void Write (byte[] b) public void Write<T> (IList<T> b) Then make the call: byte[] bArray = new byte[] {1,2,3,4}; myClass.Write (bArray); ... but it is the Write (IList<T>) which gets called, even though Write (byte[]) is an exact match. This seems very wrong! Full compilable example below: using System; using System.IO; using System.Collections.Generic; p ublic class TestClass : BinaryWriter { public override void Write (byte[] b) { Console.WriteLine ("Write(byte[]) called"); } public void Write<T> (IList<T> b) { ...Show All
.NET Development problem in client/server application
Hi every one, I developed a client/server application . client connect to server correctly if both are under the same router (in the same Lan) , but the problem arised when the client and the server arenot in the same Lan they cant connect together. I checked the router configration ,it was correctly setup. please if you have expirense in this problem help me. Thanks for reading my message------------ Hi, You must have used "RounterIP" as ip as i have suggested, right ! Give this a try, i think this will work for sure, IPAddress ip = IPAddress.Parse("YourServerIP"); //Here its your local server IP (NOT ROUTER IP) which is set as hostip in router - i think its 10.0.0.3 l ...Show All
SQL Server Query datetime and its performance
Hi all, I know I miss something very obvious here, but I can see it at the moment - I am very appreciated if someone could help. Why am I have a table scan when I run the query below - note created_date is indexed. DECLARE @LastDate datetime SET @lastDate = (SELECT DATEADD(hh,-1,getdate()) SELECT * FROM Report WHERE Created_Date >@lastDate However, I don't have table scan when I do the following query SELECT * FROM Report WHERE Created_Date > (Getdate()-1) Thanks in advance In this case, the table scan is probably the most effienct way to get the data, according to the query optimizer. Table scans are not always bad. Your select statement is getting all fields in the table and excluding probably ...Show All
Visual Studio Change "Main report" name
Hi all, Is there a way to change that displayed text "Main report" I wan't to change it's name to my native language, but can't find property that does this... Is it possible at all Hi Balbiesas, Try the following thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=470977&SiteID=1 Thanks, Ashley Lessard (Business Objects) Crystal Reports for Visual Studio Program Manager ...Show All
Visual Studio 2008 (Pre-release) Best approach for migrating projects.
Hello All, I am migrating some VB.NET 1.1 code to WPF C# (.NET 3.0). Here is what I have done till now: Before we move on, remember that the existing application is GDI intensive application and we are migrating JUST the graphics part to WPF for performance reasons. So the approach has been, 1.) Migrate from VB.NET 1.1 to C# (I have used some conversion utility to do this job, although the result have been not so good, it has helped me get a basic structure ready) 2.) This C# code is at most .NET 2.0 compliant, because of the namespaces it uses. Namespaces like System.Windows.Forms, System.Drawing, System.Drawing.Drawing2D etc have no place in WPF based applications (or .NET 3.0). 3.) I am finding the equivalent namespace ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XBOX deploy - content issue
Hi I've written my first simple XNA Xbox project, simply draws a triangle and applies an effect. When I deploy to the XBOX and debug, I get file not found on my effect file. The file is stored in a folder called Content then FX, file called myfirsttest.fx I load it using this command and get file not found myFirstFX= content.Load< Effect >( @"content\FX\myfirsttest" ); I've tried every combination I can think of, still says file not found everytime. Actual error :- Additional information: Error loading "content\FX\myfirsttest". File not found. Help!!! I think there is a bug I had similar problems. I had graphics files under a folder graphics and it ...Show All
Smart Device Development Error attaching to process on Microsoft Device Emulator 2.0 beta with VS 2005
I have a C# app using SqlCe that I can’t always attach to after deploying my solution to the emulator which does imply I can attach sometimes. I can sometimes redeploy multiple times before this issue starts showing and other times I have the issue on first startup of application. I don’t have a real pocket PC yet so don’t know if this reproduces there. And I have not tried this on the 1.0 version of the emulator as of yet. The error I receive is “Unable to attach to the process. Operation not supported. Unknown error: 0xc0000005.” This crashes the process on the emulator. Any advice would be great. Environment: Visual Studio 2005 Pocket PC 2003 SE Emulator Second Edition virtual machine Active sync 4.1 be ...Show All
Visual Basic controlling date formats in control panel
HI, How to control the date format in the control panel. regional settings. because when we change the formats in the control panel while the application is running. the date values stores different values. How to prevent this by locking the control panel settings. Or to change the values of the date format in the regional settings programmatically. when we start out application. Is this the right syntax for storing dates anydatatable("anydatefield")= cdate(format(dtpicker1.value,"dd/MM/yyyy")). or simply anydatatable("anydatefield") = dtpicker1.value Although set the custom format in the properties, it changes according to the regional settings. How to access the .cpl classes. t ...Show All
Visual Basic Lost items in toolbox
Hi all. Serious problem here. I was developing a form in VB 2005 and VS 2005 locked up on me. I got several error messages in the process of trying to shut it down, but only partial screens were visible and I couldn't read the errors, only the buttons. When I finally got it shut down and reopended, all of the basic items (text boxes, labels, buttons, etc.) were gone from the toolbox. I went to the "Choose toolbox items" dialog several times, clicking on OK to select the checked items and clicking the Reset button, but no luck. I have also restarted the machine and have done a system restore to the day before. No luck there either. Any ideas on how to get these items back If I have to reload VS 2005, how do I keep from wipi ...Show All
Visual Basic Adding a line break to a message recieved over TCP in a text box
I have: TextBox2.Text = TextBox2.Text + returndata + ControlChars.CrLf Which presumably adds a line break at the end of the message. Sadly not. All it adds is a space. The message recieved was obtained as ASCII over TCP from a Python chat server me and a friend are working on. How will I get a line break at the end of returndata (the message obtained from the server) I've just tried it and seems to work fine for me: Me.Textbox.Text = Me.Textbox.Text + returndata + Environment.NewLine maybe unacceptable but try adding a returndata.ToString() to see if that helps. When I tried it, it puts the message on a new line everytime ...Show All
