dotNetFan's Q&A profile
Visual C# Parallel execution of Functions
Hi ! I have 3 functions, which executes sequentially so take much time (about 10 minutes). i want to reduce time, by executing those by parallel. Those functions don't depend on each other. how can i do that, plz suggestion and code..... You could use the BackgroundWorker Class for this. there is an example in MSDN: http://msdn2.microsoft.com/en-us/library/4852et58(en-us,vs.80).aspx ...Show All
Visual Studio 2008 (Pre-release) Where can I find SvcUtil.exe
I am unable to find svcutil.exe even after intstalling WinFx Runtime components. Looking at other posts, it should be in Program Files/Microsoft Sdks/Windows.... folder but there is no folder of this type. I have written a service, I am stuck at the step of generating the Proxy. Thanks, Akhil Every beta carries some risk, but all the complaints I read here dealt only with problems developing WinFX, I can't remember someone complaining about other modules being damaged. Think of it this way - you already took the risk when you installed the runtime, the sdk shouldn't increase the risk much..... ...Show All
Visual Studio Team System Features in Data Dude
Are there any addition to supporting diagrams It's so difficult to use either the built-in diagramming feature or Visio to create usable physical diagrams; much less a logical one. Thanks very much. mailto: ttoennies@hotmailc.com For this first release there won't be any new database diagraming tools. Cheers, Brian Randell MCW Technologies ...Show All
Visual Studio 2008 (Pre-release) ContentControl or Canvas
Hi, When creating custom controls, is it better to inherit a canvas,contentcontrol or usercontrol I would like to know if there is any performance/memory benefits from inherting from either one of them. Jaco Thanks, luckily I don't have to change my controls!! All of the inherit from ContentControl! With that said, do you have any idea when they will release the documentation to make the controls into components so that they can be dragged and drop in the cider designer ...Show All
Visual Basic Relase the Fix for Visual Basic Compiler Error &H8013141e&
Hi all i just want to know when is going to be released the fix for visual basic compiler error &H8013141e& this is already reported in the microsoft productfeedback site. i think this is a very urgent patch that must be released asap and please do not repond that i should go back to vs.2003 because i have lots of code developed in VS 2005 to framework 2.0 .. JSB PS: this error pisses me of, i need to restart VS.IDE every 5 minutes. i think this is too bad for a recent relesase product ( its full of Bugs ). Hi, João, This is a good opportunity (in the ...Show All
Visual C# Problem with threading in C#
Hi, I'm new to C# programming,that's why I have a lot to learn.I'm trying to understand how to create and work with threads in C#.Here's the code of my demo project.Please if somebody can see this code and help me to understand why I get an error when I start the code.The app stops after a while and show me an error that I don't understand and don't know how to fix it. Please if somebody can help me I'll be very happy and thankful. using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Threading; namespace ThreadsProblem { /// <summary> // ...Show All
Windows Forms Unable to view designer in vs2005 c#
I am trying to get some help with a very strange problem. When I opened up vs2005 today my form designer would no longer work and caused vs to crash. This happens on all projects, even newly created ones. I have tried reinstalling vs, but the problem persists. If anyone has seen this problem or knows how to repair vs I would be very happy to hear from you. Thanks. DC. Disable that the toolbox become populated automatically. Delete All bin and obj folders Go to VS2005 command Prompt (Start menu|All programs|Microsoft Visual Studio 2005|Visual Studio Tools Start DEVENV with the parame ...Show All
Software Development for Windows Vista Error while using Workflows within Sharepoint Site
Hi, I tried using the sample workflows from the ECM release (ECM sample started kit). Now this is what happens: I can install the workflows and the forms correctly. Once I go into my Sharepoint site, I can connect it to the workflow that I want. But once say I add a new document, open it in thr word client, from there say I click on "Start Workflow" this seems to fail for EVERY WORKFLOW - even those built in default (Approve etc). The initialization and association forms come up and I fill these (workflow has not started yet), once I click on "submit" (or any other button which is supposed to start a workflow) on ...Show All
Visual C++ I have a problem with AfxBeginThread()
I want to create a worker thread but i recive an error like this: my code: UINT ReadCD(LPVOID lp) { .//Some Code// . . return0; } . . . AfxBeginThread(ReadCD,NULL); Error:"error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)" This is true. You can pass the pointer to the object into the LPARAM value of the thread function. Inside the function you can cast the LPARAM pointer back to a pointer of you structure. ...Show All
Visual Studio Team System Getting frustrated with red "X" on documents folder
I am at a loss as to why the Documents folder insists on displaying a red "X" in the Beta 3 Refresh. I have granted myself admin privilages but it seems to have done no good. Anyone know what would cause this I'm sorry to hear you are having problems. Several bugs have been fixed in this area in the RC, hopefully it will fix your problem. One thing to check: Open the project portal and make sure you can open all of the document libraries. If any of them cannot be opened then you will get the red x. You will need to correct this condition for the document explorer to work. ...Show All
Visual C# MultiThreading
hi,, i want to know how can i send a parameter to a method with multithreading,, for example: Thread t = new Thread(new ThreadStart(Service)); t.Start(); im calling the method Service with multithreading,, but how can i send the parameters that that method needs ,,,, that method is Service(int x) and i cant do this Thread t = new Thread(new ThreadStart(Service(20))); t.Start(); some 1 know how can i do it thx mig16 What I usually do in .NET 1.1 is create some kind of a 'task pattern'. I create a class that is some wrapper around the task that has to be performed on another thread. ...Show All
.NET Development Why there is a huge jump in the time used?
Hi, I've a quetion which has bugged me for several months. I wrote a .NET Web service which is hosted by IIS 5.1 on a Windows XP SP2 machine. This Web service just get the content of the specified txt file and send the content back to the client. The processing time on the server side was logged. The file sizes and results are listed below (in millisecond): FileSize: 1K 2K 4K 8K 16K 32K 64K 128K 256K Ti ...Show All
Software Development for Windows Vista Designer wish list?
I have been playing around, and making some presentations to some people in our group on WF, and the way that can be used not only for programming purposes, but also for designin and presenting business processes. Here is a couple of questions (should I call it wish-list ) on the designer. If someone in the team could give some feedback on this I would appreciate it: 1. Ability to drag-and-drop "comment" activities (like the 'annotation' shape in Visio) that can be visually associated with an activity, but do not have relevance during runtime. 2. The ability to change the size of the activities in the designer so that the text in t ...Show All
Visual C++ Progress Bar assistance
I am new to using Visual C++. I used a Control box in the Resource view tab to create the progress bar in the dialog box. This puts all the information in one file. In another file, I want to update the same progress bar so that it looks like it is downloading. How do I do that I've tried everything I could think of which is not much since I am new to this and they don't work. For example: one file Progress.cpp: Member variable,m_pBar, is what I created for Progress Bar using the class wizard. It was automatically put in this file. Update.Cpp I want to update the progress bar in Progress.cpp so that it looks like I am downloading while I ...Show All
Visual Studio Team System Code Coverage just for Unit Testing
Hi, Is there any way to use Code coverage capabilities with Web Test, Generic Tests and Manual Tests It would be nice to know the coverage of all my test not just the developer ones. Thanks LucasC To clarify some more... Web Test - already enabled for Beta2 Generic Tests - already enabled for Beta2 Manual Tests - coming soon Unit Tests and Load Tests should work as well. Chris ...Show All
