Mukund R's Q&A profile
Visual Studio Grid layout
I've got another (probably minor) issue. I need to create a grid layout inside a swimlane, e.g. the neurons must be laid out in a grid. Every new model element inside the swimlane should automatically be placed into an empty grid cell and user movements should also be restricted to empty grid cells. Note: The shapes themselves are resizable and all elements in the entire grid line/row should assume the new width/height. I know this is possible, but I can't figure out how. Help would really be appreciated. Michael Ok, I've figured this part out. Nevermind, a couple of Rules and a BoundsRules derived class will likely do the trick. Michael ...Show All
SharePoint Products and Technologies New Group
hi does anybody know how to create new group in sharepoint thru C# code... I tried something like web.Groups.Add(... but I dont know which parameters values to pass this function...I dont want the current logged in user to be the owner of the group. Thanks Manu ...Show All
Visual C++ Multithreading in api calls
my problem is: i am working on a vb6 code which basically uses a dll written in vc++6 to send some data through socket to a server. as the software is being redesigned to run on web we need to make the data upload part run in a separate thread. the problem is that the api call by the vb passes some parameters to the dll. int __stdcall sendDataFile(char* sfileName, char* sfileNameAs, char* sipAddress, int sport) { //initializing the globalvariables fileName=sfileName; fileNameAs=sfileNameAs; ipAddress=sipAddress; port=sport; AfxBeginThread(sendDataFileWorkerThreadProc,NULL,THREAD_PRIORITY_NORMAL); return 0; } sendDataFileWorkerThreadProc is the worker procedure the problem is that when accessed from the worker procedure ...Show All
SQL Server Store Proc Backup / Transfer
Question What is the best way to transfer Stored Procedures to another db without having to script it WHY We need to transfer stored procedures from one development database to another on different machines not on the same network. Platform Studio 2005 SQL Server Management Studio Express advTHANKSance Without scripting Well, you could execute the following query to get the definition and then apply the result to the target server. select definition+char(13)+char(10)+'GO'+char(13)+char(10) from sys.sql_modules m join sys.objects o on m.object_id=o.object_id where o.type='P' ...Show All
Visual Studio Team System 1500 on install
Howdy, I have a functional version of VS (Test Edition) with the TFS client running. All seems happy. However, I am getting a 1500 when I try to install the powertoys. Event Type: Error Event Source: MsiInstaller Event Category: None Event ID: 11500 Date: 22/02/2007 Time: 11:35:52 a.m. User: <me> Computer: thebox Description: Product: Microsoft Team Foundation Server Power Tools -- Error 1500.Another installation is in progress. You must complete that installation before continuing this one. For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp . Data: 0000: 7b 43 38 30 32 34 38 38 {C802488 0008: 46 2d 43 42 35 46 2d 34 F-CB5F-4 0010: 38 42 45 2d 42 42 44 32 8BE-BBD2 0018: 2d ...Show All
Visual Studio Team System Office integration throws Assertion error when we export from TFS
For some unknown reason we are now getting an" Assertion Failed" error when we attempt to export our tasks from a specific TFS project (rt+click on work items and choose "Add work items with Microsoft Excel" or project) or connect to TFS from our existing MS Project that used to previously synchronize with this project. The error says "Rule 6824 refers to a non-existing field." at WitExporter.FindaddTargetElement(PSRuleMetadataRecord* pRule) .... etc(more not listed here)... Anybody ever seen this before As far as I know my colleague and I have done nothing to the schema or rules for this project. (He had updated some rules on a different project.) I'm looking in the obvious places of the task and b ...Show All
SQL Server AS2005. Aggregate - Last Argument = Bug???
Hi, some people say that the function aggregate() perfoms quicker without last argument. It's right. But witout last argument it can returns wrong result. It is nasty :-( For example WITH member [Date].[Calendar].[Column 0] as AGGREGATE ({ [Date].[Calendar].[Month].&[2004]&[1], [Date].[Calendar].[Month].&[2004]&[2], [Date].[Calendar].[Month].&[2004]&[3], [Date].[Calendar].[Month].&[2004]&[4], [Date].[Calendar].[Month].&[2004]&[5], [Date].[Calendar].[Month].&[2004]& , [Date].[Calendar].[Month].&[2004]&[7], [Date].[Calendar].[Month].&[2004]& } ) --, Measures.CurrentMember) SET [RowSet0] AS {[Customer].[Customer].[All Customers]. children } SET [RowSet1] ...Show All
Smart Device Development serial port multi thread issue
I have a serial port app that works on a laptop but seems to freeze on the pocketpc. The incoming communication is a constant stream at 9600 baud and it looks like the "comport data received" function doesn't quit even though it is called using "me.invoke". So my question is, why does this work on the laptop and not on the Dell Axim x51 Here is the code: Public Class Form1 Public comport As New SerialPort() Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Try AddHandler comport.DataReceived, AddressOf OnSerialDataReceived comport.DataBits = 8 comport.StopBits = StopBits.One ...Show All
Windows Forms "Foreign" msi files in a Setup project
Hi there: Quick question: my application uses SMO, and I need to install that on the user's machine. I got the download from Microsoft in the form of a .msi file (the Microsoft SQL Server 2005 Management Objects Collection download from http://www.microsoft.com/downloads/details.aspx familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en ) . Is there any way for me to incorporate that msi file into my setup project I tried going through the prerequisites (I already have .Net 2.0 and Sql Server Express in there), but it is not dynamic enough to allow that. I could try and package the SMO assemblies one by one (the dlls were already added as dependencies), I'm just not sure how to force them to be installed in the correc ...Show All
Visual Studio Team System Cannot create new build type on TFS client machine
Not sure if this is Version Control related but the error message I receive leads me to believe that it is. When I try to create a New Team Build Type by right-clicking on the Team Builds node of my team project in Team Explorer (for which the current user has full TFS admin privileges), I always get the following dialog: --------------------------- Microsoft Visual Studio --------------------------- TF42024: Failed to start the wizard. The workspace [my machine name] is preventing the wizard from creating temporary workspace required for this operation. Please change the folder mapping of the workspace to some other local folder. --------------------------- OK --------------------------- What can I do to fix this ...Show All
SQL Server Transaction disappears performing updates
OK, I actually have a solution for this, what I need to know is the why ... I have PowerBuilder code that starts a transaction then calls a stored procedure. That SP performs a bulk update on a table with a trigger. That trigger then loops through the updated rows, and performs individual updates on a second table. It then returns to the PowerBuilder code (with no errors), and I call commit. At this point, I get an error that the commit trans has no corresponding begin trans. (Checking the DB, no records have been updated, so apparently it rolled back the transaction on me). I can call the SP directly in Query Analyzer, and it runs without a problem. The bulk update in question updates about 10000 rows - I've found that if I cut that ...Show All
Smart Device Development Newbie Question menu
Iam creating a menu in code by public void CreateMyMainMenu() { // Create an empty MainMenu. MainMenu mainMenu1 = new MainMenu(); MenuItem menuItem1 = new MenuItem(); MenuItem menuItem2 = new MenuItem(); menuItem1.Text = "File"; menuItem2.Text = "Edit"; // Add two MenuItem objects to the MainMenu. mainMenu1.MenuItems.Add(menuItem1); mainMenu1.MenuItems.Add(menuItem2); // Bind the MainMenu to Form1. Menu = mainMenu1;} Is it possivble to save this somewere else so more forms can use the sam menu Goood to know, I was expecting some output from your side . You need to read some good book abuot C# programing. You knowle ...Show All
Visual C++ Conversion Question
Hi Folks; I have my WMI program almost completely working now but one thing eludes me. I'm trying to get the processor CurrentClockSpeed and my query gets a value back (I confirmed this with breakpoints). So here is my problem; I get the data, which is a uint32 and I have to convert it to a string in order to post it to a text box. Here is a snippet of my code: hres = pSvc->ExecQuery( bstr_t( "WQL" ), bstr_t(sQuery), WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, NULL, &pEnumerator); while (pEnumerator) { HRESULT hr = pEnumerator->Next(WBEM_INFINITE, 1, &pclsObj, &uReturn); char temp[255]; int i = 0; hr = pclsObj-& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D Texture transparency
I loaded a 2D Texture from a file, the picture format is bmp for example, it present just a 2D fighter with a blue background, is there some way to display it with a transparent background (indicate that the blue color is transparent), without using a png with alpha Help please, I don't have time to modify all the sprites in photoshop :) Best regards If you look at this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=888798&SiteID=1 Shawn talks about coding a custom texture processor and it looks like you should be able to do this and key on a different color for your transparency. From his post it looks like it's a build time (in the content pipeline) where t ...Show All
Visual Studio Post VS SP1 problems!
Before SP1 I had terrible editor lag every few seconds taht i attributed to Intellisense... I got rid of intellisense by using the ncb read-only trick so VS can't write to it and turns off IS... after installing SP1 I was hoping this was fixed... but after reenabling IS the problem is still there... every few seconds while typing, VS becomes unresponsive... then picks back up... rediculous and it makes it almoost unusable. It is project specific... i.e. some projects have the problem, others do not. I have tried deleting and letting VS rebuild teh ncb with no success. Anyone else still have this probem Also, after installing SP1 I have two resource problems: 1) A define in my .rc file does not seem to be taking effect in the resource ...Show All
