cerebrate's Q&A profile
.NET Development Monitor & Lock
Please verify whether the following observation is correct or not: ________________ public void fun() { Monitor.Enter(x); Console.WriteLine("Locked X"); Thread.Sleep(100); x=y; Monitor.Exit(x); Console.WriteLine("Released X"); Monitor.Enter(y); Console.WriteLine("Locked Y"); Thread.Sleep(500); Monitor.Exit(y); Console.WriteLine("Released X"); } __________________ In the above function let x,y be some objects. I starte ...Show All
Visual Studio Newbie question: Is integrating with the designer possible?
Hi I haven't looked into VS extensibility before but I have an idea for a project I would like to develop. The project would involve the ASP .NET designer, and would require a new option to be available on the right click menu for each of the different elements on the screen. e.g. you right click on an HTML dropdown control and an option is in the right click menu, which if clicked, makes the IDE do some stuff and jump through some hoops. Is it ...Show All
Visual C# ADOX in c#
Hi, I need to create the Access File for temporary data. I checked by google and get that I need to use ADOX. But it's activex. Questions: 1) If I am using ADOX, I need Access installed or Access runtime installed 2) How can I use ADOX If I need that Access or their runtime must be installed, I need to know how can I create Access File programatically (in c#) Thank's Alexei Here's an example of how to use ADOX to create an empty database ...Show All
Visual C++ How can I manipulate strings in ATL
Some problems happened during my simple development on IE. When I try to use MessageBox to display one string, manipulated by"strcat", there is no error or warning during compiling. But when IE tries to invoke the DLL, MessageBox involved, the IE reports that there are some errors in my DLL. After removed "strcat", every thing is ok. I wonder whether perhaps the string manipulation is different from the ordinary ...Show All
SQL Server Execute Process Task; How to use user variable as an argument
I am trying to call a executable that takes an argument. I am using an "execute process task" and have declared a user string variable "file_name" (c:\file.txt) How do I use this variable so that the executable will see it as an argument. You can use expressions to define the path and parameters of you executable... Then you don't pass the variable but construct the "command line" with an expression including the parameter (which ...Show All
Microsoft ISV Community Center Forums Publishing Scorecard in BSM
Hi all, I installed business scorecard server and builder in the same sharepoint server and installation went well. I did a sample scorecard and published it. I clicked "Publish All" and it went through. Where do I see the published scorecard I'm sorry but I'm really new to BSM. Please help. Thanks in advance. Regards, Kenny Extra info from the support engineer... I also have a series of screen shots ...Show All
Smart Device Development sqlcedatareader - how to detect a zero hit?
Hi! I am querying a sql ce server database on a pocket pc receiving results as a SqlCeDataReader. How can I detect whether my query returned any rows at all withouth moving the pointer (Read()) and without having to execute a second count(*) query. Any clues kolya Actually SqlCeResultSet class has a "HasRows" property in NETCF v2. So you can just use that if you are currently using v2. I just tried it out and ...Show All
Visual Studio VSPackage Wizard for Tool Window: Why is MyMenuGroup added to .ctc?
I'm trying to learn how commands are added and modified in the IDE. I created a VSPackage using the wizard, selecting a Tool Window. I'm puzzled why the following is added to the NEWGROUPS section of the .ctc file: guidVsPackageDBConnStringBuilder2CmdSet:MyMenuGroup, guidSHLMainMenu:IDM_VS_MENU_TOOLS, 0x0600; This doesn't appear to be needed. When commented, the command to open my tool window appears in View ...Show All
Software Development for Windows Vista When in Dec is BETA2 ?
Hi, I have seen in previous posts that WWF Beta 2 is due in December, as we are now in December and there arent many shopping days left to xmas, does anyone know the date when WWF Beta2 will be available http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=147736&SiteID=1 Many thanks, David Hi David, The development schedule has not changed but it has been necessary to move the WF Beta 2 public release to January 2006. Regards, Paul ...Show All
Software Development for Windows Vista WWF Performance issues
I am doing some timing measurements to figure out whether we can use WWF for orchastrating code within our project. Here are some of the numbers I am getting and questions associated with them: 1. For a workflow with about 5-6 activities including a parallel activity and several code activities, the time to create the workflow the first time is more than 300 millisecs (328, 359, etc). All subsequent times it takes about 15 millisecs. What i ...Show All
Visual Basic Obtain all the Windows in Desktop
Hello to all, How can I obtain all the Forms in a certain application, (or all the windows in the desktop) to compare the Caption of the form( or the window Caption) of all of them Thanks in advance, &nbs ...Show All
.NET Development Where does the assemblies loaded?
Hi all, I've the following doubts., Say I've a assembly Myassembly.exe and when i run it it is loaded into a AppDomain.Where does the referred assemblies gets loaded For ex:My assembly refers mscorlib by default and say it refers another user-defined assembly MyLibrary.dll.Now ,where both mscorlib and MyLibrary will be loaded Will it be in the same Appdomain as MyAssembly or If not ,if it it gets loaded in another AppDomain then Remoting w ...Show All
Windows Forms Spurious New Line Characters
Hi All, I have an app that creates word documents. When I put a vbrclf in my string in VB.NET I end up in Word with a small box and a new line. How do I create new lines without the small box Danny Thanks for the idea but it didnt work. Maybe it's not a new line problem. Here is a screen shot of the symptom: http://www.dreamfree.co.uk/df/newline.html Hopefully someone will know how to stop the boxes appearing. Danny ...Show All
Windows Forms how to bind 2 columns to same lookup table with combobox?
Following seems NOT to work but maybe i found the solution (see below) this.p1ComboBox.DataSource = personView; this.p1ComboBox.DisplayMember = "lastname"; this.p1ComboBox.ValueMember = "pid"; & ...Show All
Visual C++ how to use graphics in a c++ compiler
how to use graphics in a c++ compiler for dev 4.9.2.2 and vc++2005 compiler you want display bitmap from resource or open external file Kuphryn ...Show All
