Edward1's Q&A profile
Windows Forms STA and threadpool problem
Hello, I have a Windows Form project which i tried to merge with a console project that uses Thread pool. After i did that i got a messege saying: "WaitAll for multiple handles on a STA thread is not supported." OMG someone please help me! this is an emergency beucase i must use the ThreadPool. anyone has an idea Your question has nothing to do with the original thread topic, you need to start a new thread. ...Show All
Visual C# Windows Service
How do I debug a Windows service created in C#. I installed the service. but what now ! Thanks! You may need to turn on managed debugging, it's a checkbox but I can't remeber exactly where it is. My VS2005 90 day trial expired and I went back to using the express versions. ...Show All
Visual Studio Team System Restore TFS to a different server
The Back Up-Restore process was made according to the following articles: BackUp 1) http://blogs.msdn.com/vstsue/articles/511396.aspx Restore 2) http://msdn2.microsoft.com/en-us/library/ms252516.aspx A backup-copy of TFS on the <Serv_1> had been made and then restored on the <Serv_2>. When TFS had started it gave the sequence of the following errors in Application Event Log: Event Type: Error Event Source: TFS Services Event Category: None Event ID: 3021 Date: 26.05.2006 Time: 16:29:14 User: N/A Computer: Serv_2 Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. ...Show All
SQL Server Schema relationships for subsections of an XML doc not linkable on a primary/foreign key...? (XML Bulk Load)
Hi, i'm currently bulk loading a 250MB XML file into SQL server using a schema mapping file. I've successfully set up relationships in the schema between each section of the XML doc, so that subsections of the XML doc are imported/linked in the right tables... but my problem is this - in the XML file i'm using, I have sections that aren't linked on a foreign key, so I can't create a relationship/reference. For example. <customer> <CustomerID>1</CustomerID> <order> <OrderID>1</OrderID> <SomeOtherSection> <val>abc</val> <val>def</val> <val>ghi</val> </SomeOtherSection> </order> <order> ... </order> < ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNADominos - Initial release
Just thought I'd post my first release of XNADominos. Its a port of a DX app I wrote a while back mainly as a learning experience. Next release will include source and an editor. Anyway, binaries and screenshots can be found here: http://andyq.no-ip.com/blog/ cat=4 Andy Hey, nice app. I gave it a shoutout on my blog. If you are in need of an XNA GUI, I am making one and can send you what I have so far as well as some instructions on how to use it. Let me know. ...Show All
Visual Studio How do I access a textbox wrapped in an addIn created with CreateToolWindow2 ?
Hello, I'm having hard time trying to access a textbox/RichTextbox located in an AddIn created with the CreateToolWindow2 method. I'd like to display a text using an API function in my code, something like ToolView.Display("Hello") and I could not achieve it because I don't know how to get the current instance of my AddIn that just started. I've seen a lot of AddIn examples, a lot talk about commandbars, a few about Windows and I could not find any example of an AddIn with a dockable window you could write in from your code. I have done this before with VB6 without any problem... Many thanks in advance. Leon > How Do I call the APIs from outside the Add-In (VS 2005 se ...Show All
Windows Forms Night Vision
I am working on a military application that needs to support a "night vision" mode - that is, make the application appear in a green scale color pallet to make it easier on the eyes in reduced lighting. Now, I know I can take an approach that will "skin" or "theme" my application to make it appear green (our GUI COTS product Infragistics NetAdvantage makes this possible), but it still isn't a 100% solution because we would need to re-do all of our images/icons that we use in the app to a green scale version, and then code the functionality to change the images at runtime when needed. Further, because we display maps and map information, there isn't an easy way to change all of the maps into a green scale. Havi ...Show All
Internet Explorer Development Organizing IE7 Toolbars - Google hijacks toolbar layout.
What a Horrible experience has been using IE7. First I can't put more bars in the same row as the address bar So I get a incredibly big address bar and loose a lot of screen. Other problem is that toolbars dont stay in the place you put them. They keep moving even if you lock the toolbars. Is this a Primary BUG at IE7 Is there anyway to make IE 7 as useful as IE6 and customize bars the way I want and not the way the developers wanted Thank you in advance for solutions.... Same problem. With IE6 I was able to keep all necessary tools in the address bar. I hope this is an oversite by developers and will be corrected ASAP. I am going back to IE6 for now. ...Show All
SQL Server article row filter - 2 parameters
hello, i need to filter an article based on a user-supplied datetime filter (the datetime parameter is specified by the subscriber just before replication). at the same time i need to filter again by user (different subscribers get different rows). i already did the user-based filter using HOST_NAME( ). but the difficulty here (al least i think so) lies in passing 2 parameters to the filter. i cannot rely on using SUSER_SNAME to pass the user filter, because no one will want to create 500 user accounts. so i guess the only solution here is to pass both parameters using only HOST_NAME( ) and then write 2 splitting functions which uses HOST_NAME( ) as its parameter. am i right publisher/distributor is sql server 2005, all subscribe ...Show All
Visual Studio Team System Open Solution under VS 2003 is very slow
We just migrated our source code from VSS to TFS. Our solution contains about 70 projects. Opening the solution with VS 2003 now takes several minutes which is much more time than it did take under VSS source control. It takes about 7 seconds for each project to appear in the solution explorer. We are using TFS MSSCCI Provider Version 1.1. Is there a workaround for this Hello, we will need some additional data for investigation. Could you look at my blog post http://blogs.msdn.com/michalma/archive/2006/12/08/tracing-in-tfs-msscci-provider.aspx , uncomment perfListener, start VS and load the solution. This should pop up our perf dialog. Pleace copy the data and post it (it's ...Show All
SQL Server SqlCeParameter error
I have a function thats inserts data to a table with a SqlCeCommand with 42 Parameters. It had always worked perfectly with WMobile 2003 and WMobile 5 devices until now. Recently I got 2 new pdas (both Phone Edition) which crash in that function with de following error: Exception An SqlCeParameter with ParameterName '@totallinesamountwithlinediscounts' is not contained by this SqlCeParameterCollection. I tried putting a shorter name on the param and it worked (well, it failed because another long name param). To make sure it was a length problem it changed the long name with a dummy long name (@a234567890b234567890c234567890d23) and amazingly it worked. After some tries I got that the failing parameters were: @TotalLinesAmountWithLineDisc ...Show All
Visual C++ How to link standard c .lib in Visual C++.NET??
As title, when I try to link with a standard c .lib in Visual C++.NET(VS 2005). And I've tried different compiler switch of "runtime library" {/MD, /MDd, /MT, /MTd}. The code is as simple as below ------------------------------- #define omniapi_session_handle void* extern "C" omniapi_session_handle omniapi_create_session(); omniapi_session_handle hSession; int main(array<System::String ^> ^args) { hSession = omniapi_create_session(); return 0; } --------------------------------- And I got following errors - Error 1 error LNK2019: unresolved external symbol __iob referenced in function _omniapi_tx_ex Error 2 error LNK2019: unresolved external symbol _errno referenced in function _oa_connect Anyone can help ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader file loads in MDX but fails to load in XNA
The shader file I'm trying to load in is shown below. It works perfectly in MDX, however when I try to load it in XNA with the following lines: CompiledEffect compiledEffect = Effect.CompileEffectFromFile("@/../../../../test.fx", null, null, CompilerOptions.None, TargetPlatform.Windows); effect = new Effect(graphics.GraphicsDevice, compiledEffect.GetEffectCode(), CompilerOptions.None, null); I get a NullReferenceException as soon as I try to use the the effect object.... What am i doing wrong //-------------------------------------------------------------------------------------- // File: ManagedInstancing.fx // // The effect file for the ManagedInstancing sample. // // Copyright (c) Microsoft Corporation. All right ...Show All
Software Development for Windows Vista Project type is not supported by this installation
I have been struggling with this the entire day. I just installed for the first time: WinFX Visual Studio 2005 Extensions for Windows Workflow Foundation Beta 2_2 Windows Workflow Foundation Runtime Components Beta 2_2(EN) for x86 WorkflowTemplates - 2006-03-07 If I try to create any WWF project based on the new templates, I receive an error stating that "the project type is not supported by this installation". I have uninstalled everything and installed the Beta 2 version (instead of the Beta 2.2) and I get the same error. I then uninstalled everything again and reinstalled the Beta 2.2 version hoping that it would have worked, but no luck. Has anybody had this problem Any help will be appreciated. P.S. ...Show All
Visual Basic Form1's MenuButtons open Form2, 3, 4, 5....
Hello, Is it possible to create in VB Express a Form with Buttons which open other Forms and close any or all these Form without shutting down the application Kind regards, ------------------------------------------------------------------------------- This newbie can't talk and can't walk. Embarrassing . Dim TmpFrm2 As New Form2 TmpFrm2.Show() 'To show it TmpFrm2.Visible = False 'To hide it TmpFrm2.Close() 'To close it Hope this helps a bit. ...Show All
