FrankSh's Q&A profile
Windows Forms Get the local account domain name
How can I get the windows domain name for the locally logged in user Try one of these .... m_Name = Environment.UserName m_Workstation = Environment.UserDomainName m_Identity = System.Security.Principal.WindowsIdentity.GetCurrent() ...Show All
Visual Studio Team System Data Generator, just for testing?
Hello everybody, can a Data Generator Plan be used just for testing No possibility one can use it to immediately generate data in SQL Server, e.g. as a checkbox choose on Deploy Selection Thanks for the suggestion. I can see value in running a generation plan as a post-deployment step. Can you please enter this suggestion on http://connect.microsoft.com so that other customers can see the suggestion and vote/comment on it as well You may also be interested in reading the post on invoking data generation plans via our public API. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=480861&SiteID= ...Show All
Visual Studio Team System Messages Suppression
Hello! At the moment we are trying to get rid of all the fxcop warnings in our project, but have three issues we can't resolve. 1. Is there any ways to specify all the message suppressions in one place (file) We need it because suppression attributes like this: [System.Diagnostics.CodeAnalysis. SuppressMessage ( "Microsoft.Security" , "CA2118:ReviewSuppressUnmanagedCodeSecurityUsage" )] make code complitely unreadable. We have option 'Create assembly level suppressions in:' in the project's properties but there is no information on how to use it. 2. In some cases we have to define enumerations in the following format: public ...Show All
Visual Studio Team System Problem Creating New Team Project
Hi. Using 2003 Server with Beta Refresh 3. Sharepoint is extended on the default and no other site. Browsing to http://servername/ works but not Reports or ReportServer. When I create a team project the following error occurs: Error Unable to connect to the specified SQL Reporting Services at EVERSERVER1. Heres the Log 1/9/2006 12:06:44 AM | Module: ELeadServiceMediator | Team Foundation Server proxy retrieved | Completion time: 0.359375 seconds 1/9/2006 12:06:44 AM | Module: ELeadServiceMediator | The template information for Team Foundation Server "EVERSERVER1" was retrieved from the ...Show All
Smart Device Development print from ppc to networkprinter
how can i print from a ppc to a networkprinter I've tried to move the file to the printer task file (which is shared) but i get io exception. If i does this from another desktop in the network it works fine... When i go look on my ppc and try to reach the shared printer task folder i can see it on the file explorer but i can't open it.... does anyone know what's the reason for this and maybe a solution Is it also possible to send a file to the IP adres from the printer If i try to move the file to the ip adress i get the same error grtz This forum is intended to deal with issues directly related to ...Show All
Windows Forms Variabels
I have two forms and one of them have a label, soo i need pass the information in that label to the other form, how can i do that setup a Public Property on the second form and set it from the first form before you actually show the second form ...Show All
Visual C# passing arrays to unmanaged functions - best way ?
The situation is the following: I've got the unmanaged function void cblas_zaxpy( int N, DoubleComplex* alpha, DoubleComplex* X, int incX, DoubleComplex* Y, int incY); [StructLayout(LayoutKind.Sequential)] struct DoubleComplex { public double real;public double imag; } form > atlas.dll < (in the original definition the pointers are void* ). The function calculates B = B + alpha*A for complex numbers. So, if I import it as extern void cblas_zaxpy( int N, ref DoubleComplex alpha, DoubleComplex[] X, int incX, DoubleComplex[] Y, int incY) and call it via double[] A; doub ...Show All
Visual Basic Reading from file errors...
Hi everybody.. This is the problem I have: I have a .txt archive which contains lines for configuring labels, buttons, and other controls of my form. This archive is written in spanish and some letters have an accent. I can read wit no problem the line, but when I assign the value I get (string type) to the text property of the control, the accent letters did not appear at all. Now I tried configuring my regional settings, before I had English (USA) and I tried changing it to Spanish (Mexico) but the accent letters now appear as an " ". In my VB6 app, this was no problem. Checking my .txt is saved with an ANSI encoding. So ...Show All
Visual C++ Where can I get ml.exe
I've just installed VC++2005 Express, and I couldn't find ml.exe anywhere. Where can I get ml.exe (no need for the rest of Visual Studio) Thanks! Anything happen with this ml.exe is not in 2005 express edition. I'd vote for including it. I'm trying to port some code to windows which requires a library with some assembler. ...Show All
Visual Studio 2008 (Pre-release) Compare DLINQ, NHibernate and Typed DataSet
I'm quite confused with the abilities provided by the above three items. Could anyone give me some guidelines in choosing between these items When is the best time in using them All three provide a way to access data from relational databases but there are important distinctions. First, to be clear, current DLinq bits are a part of a preview - i.e. not for production use unlike typed DataSet. DLinq - now called LINQ to SQL is due to be shipped in the "Orcas" release of Visual Studio and .NET Framework. So all the comments below should be considered in that context: LINQ to SQL and nhibernate are both ORMs. Typed DataSet is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Floating point strikes back
I'm starting to realy hate this floating point hell. I have another problem with floats, and this time I can't see the solution. I have a simple mesh (just a square with two faces with size 100). The vertice list in the x file is as follows: -50.000000;0.000000;-50.000000; 50.000000;0.000000;-50.000000; -50.000000;0.000000;50.000000; 50.000000;0.000000;50.000000; Now, when I access the vertice buffer after loading the mesh, the values are not these. they are for instance: -49.999996, 0, 49.999996 Wich causes a colision test with a ray that passes on the edge to miss the test. I've tried once again to use the D3DCREATE_FPU_PRESERVE flag but ...Show All
.NET Development Can .NET Remoting App be both Client and Server?
There will be a question in here so stay with me, I'm providing some background first. I just started working on an existing app with the programmer that originally wrote the code. My contribution will be to make one instance of the app running on one workstation on a network talk to another instance of the same app running on a different workstation on the network. To provide the services I want to use .NET Remoting (eventually Web Services for more flexibility) so I've created a class derived from MarshalByRefObject. I've compiled this class into the existing app. Most of the documentation on MSDN for .NET remoting gives exampl ...Show All
Visual Basic Slow GDI+
Hi All, Does anyone know how to improve the drawing speed on form paint GDI+ is very slow. Each time, resizing the form or switch from background to foreground, it cause the form repaint. I tried the DoubleBuffered, suspendlayout etc property or method but only got little bit improvement. My application need to display over hundred of controls and graphics on a form, but it make me crazy to found out how to speed up the form repaint. As I know, the Microsoft Small Business Accounting is written in .NET, it is slow on re-paint too. Why .Net can't write an application like other Office applica ...Show All
Visual Studio Team System Duplicate copies of Work Item Queries appearing in Team Explorer
Has anyone else noticed that if you double-click on the same Team Query repeatedly, it creates a copy within the project which is available to other team members Repro: - Open an existing Team Project - Within Team Explorer, double click on any of the Team Queries (e.g. "Active Bugs") to make it the selected tab. - With the tab selected, double click again on "Active Bugs" Expected: - Nothing, i.e. Active Bugs becomes the selected tab again Actual: - A new Team Query "Copy of Active Bugs" become visible and available to other team members. Is this expected behaviour It sounds ...Show All
Visual Studio Express Editions No Debug?
My new installation of the Feb05 CTP VC# Express seems to have come without a debug capability. I don't recall seeing that as a feature missing from the express editions. Both the Solution Configurations and Solution Platforms list boxes are blank and disabled. The Project Configuration tabs have no Debug/Release/All Configurations selection capability. In short, there appears to be no way of setting up a debug build although I can set the settings in the Debug tab of the Project Configuration tabs. Is this a problem with my installation of a feature (lack thereof) of the Express editions Speedo ...Show All
