IceAngel89's Q&A profile
Software Development for Windows Vista Thread Handling
Hello everybody, I just wrote a little test workflow to understand the thread handling of the workflow runtime a little bit better, I hope somebody could help me. In the main I wrote: static void Main(string[] args) { using(WorkflowRuntime workflowRuntime = new WorkflowRuntime()) { .... for (int i = 0; i < 25; i++) { //Here I set the breakpoint WorkflowInstance instance = workflowRuntime.CreateWorkflow(typeof (WorkflowConsoleApplication1.Workflow1)); instance.Start(); } Console.WriteLine("Back in Main, press Enter to exit."); Console.Read(); } } The workflow ha ...Show All
Software Development for Windows Vista About GetClientRect in AERO
I use GetClientRect function to retrive the coordinates of a window's client area and then draw a bitmap into client area in WM_PAINT callback function. But when AERO is enabled and the minimized main window is restoring, the bitmap is presented before the main window being restored. It is no problem when AERO is disabled. There is a slow animation when a window being restored in AERO. How to detect the animation is over Or, should I try another way The code looks like the followings: case WM_PAINT: { ...... CRect rcRect; GetClientRect(m_ ...Show All
Visual Studio Express Editions Install C# and C++?
Hi, Newbie here to C/C++ but I have done some VB in the past. I installed the Visual C++ Express edition about a week ago without a problem and have had some time to play about with it and found it to be great. So I thought I'd try Visual C# Express and see what the difference was between the 2 languages. The download and install went perfectly, without a hitch until I tried to start a new project. I went File:New and selected a template (doesn't matter which, same problem for all) clicked OK and got an error box pop up with the message ' The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT:0x8007007B) ' I uninstalled both C++ Express and C# Express and then reinstalled them both and I stil ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Windowed App - How to blit bitmaps?!
Hello, I simply want to blit some random pixels (evetually bitmap images) to a WINDOWED app (using DirectX 9 NOT DirectDraw 7 or otherwise). I have tried the following approach in my Render function but it fails when calling LockRect().. This approach works in FULLSCREEN mode though - why What am I not doing correctly / overlooked Thank you. void Render() { ... g_pd3dDevice->GetBackBuffer( 0, 0, D3DBACKBUFFER_TYPE_MONO, m_pBackSurf); m_pBackSurf->LockRect( &LockedRect, &rect, NULL ); // **** THIS FAILS IN WINDOWED MODE *** // Get a pointer to the back buffer DWORD* pData = (DWORD*)LockedRect.pBits; // Convert the pitch to work with 32 bit (4 byte) surfaces ...Show All
Visual C# About Compressing using GZipStream
hi guys .. , I have the following code from book MCTS 70-536 ( Self paced training kit by Mcft Press) Microsoft .NET 2.0 Application Development Foundation .. In lesson 3 "Compressing Streams " of Chapter 2 Input/Output .... using System; using System.Collections.Generic; using System.Text; using System.IO; using System.IO.Compression; namespace CompressDe { class Program { static void Main(string[] args) { FileStream sourceFile = File.OpenRead(@"C:\anyFile.txt"); FileStream destFile = File.Create(@"C:\anyFile.txt.gz"); GZipStream compStream = new GZipStream(destFile, CompressionMode.Compress); int theByte = sourceFile.ReadByte(); while ...Show All
SQL Server How to order measures in SSAS?
Hello, I'm wondering if any of you was able to sort all measures (including calculated) alphabetically so it is displayed nicely in pivot table I'm able to sort them by partitions, but do not know how to sort all measures across partitions. Your help is appreciated. -Lawrence I see the Display Folder property now, but I guess measure sorting is not avaible in Excel 2003 Pivot Table. When I said earlier was that measures are grouped by partitions; therefore, I cannot sort them as they are separted by partitions. -Lawrence ...Show All
SQL Server management studio does not work
Hi, I get TITLE: Microsoft SQL Server Management Studio ------------------------------ Exception has been thrown by the target of an invocation. (SQLEditors) ------------------------------ ADDITIONAL INFORMATION: An error occurred creating the configuration section handler for system.data: Column 'InvariantName' is constrained to be unique. Value 'Microsoft.SqlServerCe.Client' is already present. (C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 128) (System.Configuration) ------------------------------ Column 'InvariantName' is constrained to be unique. Value 'Microsoft.SqlServerCe.Client' is already present. (System.Data) ------------------------------ BUTTONS: OK -------------------------- ...Show All
Internet Explorer Development IE7 Forms Auto Complete Stopped Working
I’ve deleted by mistake the registry key: Software/Microsoft/Internet Explorer/IntelliForms/Storage1 As a result, IE7 Auto-Complete stopped working. I tried to fix the problem by recreate the deleted keys under IntelliForms: Create new Key: Storage1 Create new empty Value: C6FB044EC2BD401521D6B1082276415638196D8004 It didn’t work for me. How can cause IE7 to renew the Auto-Complete mechanism I had the exact same problem with passwords and user-names refusing to be remembered by the IE7 supplied with Vista. The only solution I found was to creat a new Account and copy the account settings over from old to new. Something like this:- ...Show All
Visual Studio 2008 (Pre-release) Tearing in WPF
I am seeing a lot of tearing in an animated WFP project. It also occurs in Expression Interactive Designer June CTP version. Running 3.0 June CTP on XP. Often the tearing seems to get "locked in" resulting in garbage on the screen. This can be redrawn by minimising and restoring the Window. Should I be concerned or is this being worked on Thanks, John I have similar issues, and I have filed in a bug about it. You can vote for it or add comments here: https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=180703&SiteID=212 ...Show All
Visual Studio Express Editions How to edit Adobe Indesign files from C++?
I have a huge library of .indd files that I would like to be able to edit automatically from a C++ program. I would also like to be able to change information and images stored in .PSD files. I have seen general information for Visual Studios .NET 2003 at http://support.adobe.com/devsup/devsup.nsf/docs/53977.htm but I would like to do this with Express. What do I need to get started Any help would be very much appreciated. hello Re: How to edit Adobe Indesign files from C++ such questions are outside the scope of this forum, Contact the library publisher to get better served. thanks rico ...Show All
Visual Basic String.Aplit Method
hello there, please does anyone know how to create a non visual class that has the behaviour to count characters, words, alphabets, vowels, consonants, digits i am working on a form that needs a class to be added in other to be run. it involves counting i.e words, characters e.t.c as above. i have an idea of how to add a non visual class but the problem is how to put the behaviours (codes) for counting characters, words e.t.c thanks yeah i understand, i will send my code for you to cross check. didn't mean to put through like that. thanks once again ...Show All
Visual Studio 2008 (Pre-release) anonymous types: Signature referencing
Given: var v1 = new { Person = "Suzie", Age = 32, CanCode = true } and var v1 = new { Person = "Barney", Age = 29, CanCode = false } My question is this: Even though these 2 anonymous types have exactly the same structure, will the compiler recognize that they have the same structure and reuse the first type and not create 2 completely seperate type instances Yep. :-) Two identical anonymous types instances constructed within the same method body have the same type. The compiler will also attempt to reuse anonymous types within a module (though this is not required by the spec). ...Show All
Visual Basic Datagrid cell mouse click
Hello, I've a DataGridView on a form and I need to catch the mouse click event on a specific cell so that I can display more information about the value showned. For other words, if a user clicks on a certain cell of the datagrid, I want to open a new dialog form to show more information about the value displayed on the datagrid. Thanks, Joao Pinto If the ID is in the dataset and you are just chosing not to display it. Then you can use the following property DataGridViewRow.DataBoundItem Property http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewrow.databounditem.aspx This gets the data-bound object that populated the row. So on the row you are displaying, you can get the I ...Show All
Visual Studio Team System Develop and Deploy with continuous integration
Is anyone using continuous integration with their db projects and if so, what works best We are thinking of deploying db changes while in VSTS locally and then upon check-in using MSBuild to deploy db changes to our development SQL server. It should work, I'm just wondering if there are any gotcha's or if there is a better methodology. At first blush, I cannot think of any reason why this would not work. For large database projects this will not be super speedy because we will have to load the DesignDB for each build. You should also be able to use the database unit testing feature to verify the database after the delta script has been deployed to the sandbox instance. There are some MCS guys d ...Show All
SQL Server simple web access to SQL server data
I am looking at building some very simple web pages that attach to a SQL Server database. They will just display simple data from predefined views on the SQL Server. A link to examples would be fantastic. I have done similar before to attach to data from access. Its the connection and data retrieval I need help with. Thanks. Mark. This link may help you as well: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=474022&SiteID=1 ...Show All
