Chris &quot&#59;Delmonty&quot&#59; Finlay's Q&A profile
Visual Studio 2008 (Pre-release) WCF, WPF VS 2005 RTM Extension?
Hi, Just was wondering when the RTM version of the WCF and WPF Studio 2005 extensions will be released. It looks like the WWF extensions are RTMed already. Thanks Andy This is rather bogus! I mean, releasing the 3.0 framework with wcf, wpf etc. etc. but saying... sorry... Cant use it (In a true production environment. The runtimes are RTM, but the IDE's are not.... Bogus. ...Show All
SQL Server Advice on Partitioning and Processing
I'd appreciate some advice on the following: I'm building a cube which is based on data in a SQL 2000 DB. There are around 1.2 billion rows of fact data in 26 tables. Each table uses approx 6 Gig. There are 4 Dimensions, 3 dimensions have less than a 1000 members with the 4th having 65000. For convenience I am creating 26 Cube partitions aligned to the DB tables, each partition will have around 50 million rows. Does this sound like a reasonable proposal The reason I ask is that I am seeing very poor performance whilst calling ProcessData. I have processed various numbers of partitions in parallel and cannot achieve the same times that I can get on the existing AS2000 rig using the Parallel Processing Utility. I have tested the data ...Show All
Windows Forms Progressbar WinForm popup
How can I make a progress bar popup in C# WIN form when a button click event has raised and close it when my code has gone to a certain point Oh I just remembered, you are right the controls won't appear. The way I do it is I create the progress form as a seperate project and compile it. Then I copy the .exe file from my progress project to my main project by adding it as a reference in the References folder in Solution Explorer. Now declare its namespace like:- using Form_Progress; your code to invoke the progress form will be:- Process prog_bar = new Process (); prog_bar.StartInfo.FileName = "Form_Progress" ; prog_bar.Start(); //your code here //when finished prog_bar.Kill(); ...Show All
Visual C++ DLL questions with Visual Studio using C++
I'm new to Visual Studio (I have VS 2005 Standard Edition) and I'm trying to learn how to code a DLL with some standard functions I use instead of including a cpp file into every project that needs it. Using the help I got a DLL to work with a Win32 project using __declspec ( dllexport ) and __declspec ( dllimport ). When I try a Windows Form Application I get lots of errors with the linker because of the CLR from what I can tell. I tried various things I read and could never get it to work. I decided to try my hand at a .def file and after reading up on how you write it up I have some questions. Can you export overloaded functions using a .def file From what I read I have to include extern "C" to keep C++ name mangling from ...Show All
.NET Development Impersonating
Hi! After impersonating an account, via the use of Advapi32.dll LogonUser, in a windows application (done i an button click eventhandler), everything stalls and takes a lot of time. Such a simple thing as showing a messagebox takes some seconds. If I do the impersonation in the form_load everything works fine. How-come //Daniel Hi! Maybee you missunderstod me. I only use te Advapi32.dll LogonUser function to get the token for a certain user so that I could create a new WindowsIdentity and then use the Impersonate method on the new Identity. //Daniel ...Show All
Visual Studio Express Editions form design error
Hello, I 've got a problem, when I try to open in design a form, an old or a new, I've got this error : One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. No data is available. Hide at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.GetValueNames() at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes) at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.GetRegisteredPanes(String extension) at Microsoft.VisualStudio.Shell.Design.Win ...Show All
Visual Studio Express Editions Is it safe to delete these files ?
Is it safe to delete the files that are in the bin\Debug and bin\Release folders Yes. You can safely delete them. If you rebuild they are going to be recreated. I usually delete them if I'm sending the source to somebody else. Reduces space and they are not required, if the other party has the compiler to recompile the source. ...Show All
Visual C# Solution Explorer shows 'Form Icon" for my non-Form Codes! (VS 2005)
Hi, I'm not sure if it is actually a problem, or I'm doing something wrong, but the problem is that every time I add a new class to my project in VS 2005, it first shows the right Icon that is a 'C#' Icon and I can simply double click on it and change my code. But after opening and closing Visual Studio, this Icon changes to 'Form Icon' and obviously as this file is not a form; by double clicking on it Visual Studio tries to open the designer and again obviously I get the error message! It is so annoying! Is it looking at something inside my code and decides to change the Icon based on that because even if I go to the project file and make these classes XML info just like whatever for example program.cs info (which is miraculously always i ...Show All
Visual Studio Express Editions Disabling Buttons
I'm in the proccess of try to create a program that, at log in the user must accept the terms and conditions but I'm having trouble of diabling things like the windows key to stop people for bypassing it, does any one know of any coding I can put it to disable these buttons. Any help would be greatly apreciated Cheers Buttons include: Windows Key Windows Key + .......(e.g "e") Ctrl+Alt+Del any other that I've over looked hi, i don't like that sort of disabling things, but the onlything in my mind right now is to open it as dialog if the user accept the terms and click ok you should continue, if not return but be aware nothing can force the user to read it most of t ...Show All
Visual Basic How can I add this Classify Add-in In Visual Studio 2005
I downloaded a good Add-in from http://visualstudiohacks.com/classify . but I'm unable to add this in Visual Studio 2005. Please help me in this regards. Thanks in advance... The page that you reference doesn't actually state that it supports Visual Studio 2005 - I would suggest that you contact the author and ask. This is a forumn specifically for Visual Basic Power Packs, so it's not likely that anyone here can help yopu with a third-party add-in. Steve Hoag Visual Basic ...Show All
Visual Studio Express Editions commands
where do i go to learn about all the vb commands, as i read these posts i am learning about commands that m books dont tell me about. how can do somethhing if i dont know the commands. things like accept and so on append what Insert what These aren't commands but methods of an object (presumably). You need to understand the Object Oriented structure of the language and, indeed, how windows works. There is no such place which simply 'lists' all these 'commands' (except the documentation). There isn't a list of these commands: it depends on what object you are talking about. There are thousands of objects in the .NET framework. Some of those objects (classes) have tens or hundreds of propertie ...Show All
Visual C# Playing sounds simultaneously
I know how to play an audio file using the SoundPlayer class, but I have only been able to play one sound at a time. If I am playing a sound, and I try to play another sound, it stops the first one to play the second one. And that is with two separately declared SoundPlayer objects. So, is there some way to play two sounds simultaneously I want to be able to play background music and sound effects at the same time. ah ok I see! I don't think you can do this using the SoundPlayer classes (do not quote me) but perhaps using Managed DirectX. (SDK) There also includes various samples and documentation of course on how to use the Managed DirectX classes etc... http://msdn.microsoft.com/directx/sdk/ ...Show All
SQL Server Grand Total Needed
I have two subreports (Revenue and Expense) that each have subtotals. This works just fine, but I need a Grand Total that would sum the two subtotals. How would I go about doing this So it looks something like this: Revenue Report (matrix) Subtotal Expense Report (matrix) Subtotal <~~~~ Need Grand Total here. Greg, I added a textbox to the bottom of my 2 matrix to make my Grand total align correctly. Ham ...Show All
.NET Development Check if the database exists
Is there any function in ado.net that I could use to check if a database exists in the server like SQL 2005 I already knew how to performing this checking in T-SQL, but I want to know the ado.net way of doing it. Hi As far as I am aware, there is no method in ADO.NET to check for the existense of a database. You could however use ADO.NET to query the Master databases sysdatabases table in SQL Server 2000 (not sure about this on SQL Server 2005, but I assume it has similar) to determine if a database exists. The code would be something like: Dim connection As New SqlConnection( "Data Source=DAVE;Initial Catalog=Master;Integrated Security=SSPI" ) Dim command As New SqlCommand( "SELECT dbid FROM ...Show All
Visual C++ Sending structures as packets using Send function in Socket programming
Hi, I have created a socket using: SOCKET sock; and would like to send a structure over to the reciever using the send command,but when i type the send command,I get an option of: int socket(SOCKET s,const char* buf,int len,int flags) but I would like to send a structure with a set of items.How do I implement this Thanks "You should send floating points as their string representation." Is this the best advice I ask because it seems like a shame to send all that data when you could just be sending 4 bytes to update a client’s floating point number. Thank you for the replies. ...Show All
