Software Development Network Logo
  • Visual C++
  • Smart Devicet
  • Game Technologies
  • SharePoint Products
  • Visual Studio
  • Windows Forms
  • Visual C#
  • IE Development
  • SQL Server
  • Audio and Video
  • Microsoft ISV
  • Windows Vista
  • .NET Development
  • VS Team System
  • Visual Basic

Software Development Network >> Kamen's Q&A profile

Kamen

Member List

Viren Kapadia
Lightknight240
Jeff2134535
clint 2
wanwiz
polymorphicx
logtorahul
Tailor
guilherme mendes
Charles Tam
Alastair Q
Sam.F.
Banhnam
cheesecake-lover
Peppermint
Henrik Dahl
Mike36
The_Drewster
BhanuKiran.K
Jay Mertin
Only Title

Kamen's Q&A profile

  • .NET Development Generic Synchronized Collection?

    Hey, I was just wondering if a Generic Synchronized Collection exists I know with an arraylist you can do: ArrayList arrayList = ArrayList .Synchronized ( new ArrayList ( ) ); And with generics I usually use the List class, which is not thread safe. I see on the MSDN website their is a SynchronizedCollection class, but I cannot see to make it work. (I cant create an instance) and the article does not seem complete http://msdn2.microsoft.com/en-us/library/ms668265.aspx Any suggestions SynchronizedCollection only exists in .NET 3.0. The generic classes of .NET 2.0 do not include synchronization because MS decided (correctly) that including synchronization into low-level classes was not appropriate, beca ...Show All

  • Visual Studio Install problem SP1

    After accepting the licensdialog the installation is stuck during "Please wait while Window configures Microsoft Visual Studio 2005 Professional Edition - ENU" It doesn't matter how long I wait. The installation does not pass this dialog. What happens during this phase and what can I do to be able t install sp1 I would appreciate to hear from Microsoft about this. I have W2000. /Peter ...Show All

  • Windows Forms Inserting Text in RichTextBox

    How can you insert text into a RichTextBox control richTextBox1->Text->Insert(0,"Hello"); //This doesn't throw an error, but it doesn't do anything either .NET2.0 richTextBox->Text is a property accessor for a string and then you call the Insert method on that string instance, which returns a string, but you do nothing with the result of that function... richTextBox1->Text = richTextBox1->Text->Insert(0, "Hello"); ...Show All

  • SQL Server About Drilling down and drilling up in kpi's

    hi all, I am just a beginner in proclarity I am facing a problem with the drill down and drill up operations in KPIDesigner I am using the first option in the wizzard(Add a KPI with goal,status,trend to an existing KPI) The measure that i selected is an aggregate value(Average) But whenever i am trying to perform a drill down operation on the Data there is no correspondance between the drill down operation and the data displayed. Pls help me asap I would guess the drillthough into calculated cell or member is not possible. It is simply the fact that Analysis Services wouldnt know how to get the rows that contributed to the calculation. Edward Melomed. -- This posting is provided " ...Show All

  • Visual Studio WaitForSingleObject Returns WAIT_FAILED

    In my Add-in, I am trying to wait for some event created by another win32 application, but it always fails. Here's part of the code: HANDLE hEvent = OpenEvent (EVENT_MODIFY_STATE, FALSE, "Global\\EventInApp"); //successfully, hEvent != NULL DWORD errorCode = GetLastError (); //errorCode = 0 DWORD waitResult = WaitForSingleObject (hEvent, INFINITE); //waitResult = WAIT_FAILED errorCode = GetLastError (); // errorCode = ERROR_ACCESS_DENIED //Part of application code: HANDLE hEvent = CreateEvent (NULL, FALSE, TRUE, L"Global\\EventInApp"); It's strange. An event created by other win32 application can't be be waited by a Add-in Or could any one help me find out the reason Thanks. ...Show All

  • SQL Server Vendor Questionnier

    Hi everyone: Just wondering if anyone in the database world has put together a set of questions to pose to a vendor for vendor software evalutations..so for example if a vendor is selling a database software which runs on SQL or Oracle, you would want to present the vendor with questions regarding their application architectur/database security model etc to gain an idea of what you are dealing with. thanks, ...Show All

  • Visual Studio 2008 (Pre-release) No appropriate XAML tags for inline code

    According to the documentation (...), in an XAML document one can have inline code which contains, say, C# code for event handlers. Is it possible to insert such code in an XAML created with Visual Studio If yes, what is the correct tag which should contain the CDATA element In the articles that I consulted, either <def:Code> or <x:Code> is used; however, these tags always generate errors when I try to compile the project. This is what I did: - I created a new project (WPF or XAML browser); - in the XAML editor, I added some controls - say, a <Button>; - I added a handler for the button, with ' Click="OnClick" ' - I wanted to have the code of the handler in the XAML file. For this I tried to ...Show All

  • Visual Studio 2008 (Pre-release) Samples for January Orcas

    Got the January Orcas (VSDec2006CTP) image installed - Yeah Greenbits! But I can't seem to find any Entity framework samples. Am I supposed to download the latest ADO.NET samples from October http://www.microsoft.com/downloads/details.aspx familyid=c14c451d-7043-44f0-87d7-845f1c238d64&displaylang=en The October samples work with the January CTP. There has been lots of progress on ADO.NET since October. You should see the Visual Studio integration return soon -- most likely with the next CTP. ...Show All

  • Visual Basic insert snippet with a shortcut key

    I write in VB.Net with VS2005. I would like to insert my code snippet with a single shortcut key. It's so inconvenient for me to insert a code snippet every time according to the following steps: 1. right click on my VB codes 2. click the "Insert Snippet..." menu item from the context menu 3. find and select the folder of the snippet I would like to use 4. find the snippet I would like to use from the selected folder The above 4 steps is too long to me. What I want is a single shortcut key for each insertion action. I considered to record a macro for this. However, I found out that I could not pop up the context menu for the "Insert Snippet..." menu item once I have started marco recording. How can I insert my code snippet in a faster way ...Show All

  • SQL Server Execute As error

    I have a stored procedure that needs to run with elevated privliges, so I tried setting it to run as one of the db owners. When a regular user tries to execute the SP, I get the error Cannot execute as the database principal because the principal "joejoe" does not exist, this type of principal cannot be impersonated, or you do not have permission. What do I need to set up so a user can be impersonated Did you try as SELF It should work like you want. mpswaim is a user, who is the db_owner group, right You really shouldn't need impersonation for this procedure to work anyhow, since all users have rights to sysprocesses. Here is the script I used to reproduce the situation. I created the users without login for e ...Show All

  • SQL Server Accessing Variables in SSIS code

    Hi I am not able to access SSIS variables which are defined at Data Flow Task in a custom component. This custom component is developed by me in C#. How can i access these variables Please let me know if theres a way to access SSIS variables. Thanks, Vipul Custom data flow components, also known as pipeline components, inherit from the PipelineComponent class. This exposes a public read-only property called VariableDispenser, so you can access this in your own methiods, or those you override from the base class, PipelineComponent. This gives you access to the variable dispenser to read or write variables as you desire. ...Show All

  • Visual C# how turn on OPENMP in VSC#2005?

    Hi. please tell me where in VS2005 compile options i want turn on _openmp but i cant find where :( sory for stupid question C# can do threading....if you mean running a process on another thread (So doing a task on another thread without effecting the main UI thread from say not responding) System.Threading would be the namespace for threading http://msdn2.microsoft.com/en-us/library/system.threading.thread.aspx http://msdn2.microsoft.com/en-us/library/6kac2kdh.aspx maybe this would be of some interest to you: http://www.c-sharpcorner.com/UploadFile/mgold/MultithreadingIntro10062005000439AM/MultithreadingIntro.aspx ArticleID=920ecafc-e83b-4a9c-a64d-0b39ad885705 http://www.csharp ...Show All

  • Community Chat Some neat things about Vista.

      I'm not using the Vista Start menu. I am using someone elses and it didn't come with Help. (I think I know why) Vista's new help engine is called Helppane.exe and simply starting it up doesn't bring up help. In looking into this I discovered that the taskmanager displays somethings that it didn't used to. For example it display command lines for processes that just started up. I start the normal Vista Start button and select Help and when it came up I noticced that the command line was Helppane.exe -embedding All I had to do then was a add that to the link and I now have help. Does anyone else have any interesting Vista tips. I think we'll stat to see a lot more interest this week. I've lost so much work beca ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Missing parts for XNA Game Studio Express

    What are those missing components/documents I need for real XBOX 360 game programming Will forthcoming XNA Game Studio include those files I know that subscribing to somewhere, I can get those missing pieces but for now I should be happy for documents only. Peca What are missing parts are you talking about You can write 360 game now using XGSE and a subscription to Cretors Club. If you are talking about the "promise-land", here are something that are not available yet: - network API - build-in/simpler 3D model animations - Xbox Live profile/gamer-tag support - sharing games you wrote with your friends via XBox Live - anyone wanting to run your xbox game would have to get a club membership. - support f ...Show All

  • Visual C# Can't start my Windows Service

    Hi... I've got something which is making me pull my hair out which I hope someone can shed some light on. Basically I've got a Windows Service using VS.NET 2005. This service has been working fine for a while. For some reason now, I cannot get the service to start. By placing MessageBoxes in (with the correct display permissions) I found that the service itself is just not 'activating'. (Main and OnStart are not being called) So I cannot even attach to the process to debug. The service startup manager times out with Error 2186. 'The Service is not Responding to the Control Function.' All permissions within the directory appear OK. I've treid uninstalling/reinstalling. I'm not sure whether this is a .NET 2.0 issue or not. The service appear ...Show All

©2008 Software Development Network