caveman1's Q&A profile
Visual Studio Migration from nAnt to msbuild
Migration from nAnt to msbuild My top level build process is controlled by nAnt. nAnt is an extra dependency and with the move to .NET 2.0 I can remove that dependency, if I use msbuild instead. Are there any tools or do I have to do it all by hand My build process is devenv based. I don't compile files using compiler. I make a high level call to devenv to compile an entire solution (basically I start a new devenv process). I think I have the same option with msbuild, but is there a better way to do it There aren't any tools to automatically convert nant builds to MSBuild. However, in your case it sounds like you're just using nant as the driver for the overall run, rather than as a fi ...Show All
SQL Server scd type 1 related issue
I would like to include other columns in the update when a particular column values changes. For example in dim_product having below columns: p_key, p_code, p_desc, p_category_code, p_category_desc .... i would like to update both p_category_code and p_category_desc if p_category_code changes but not otherwise ( ignore if only p_category_desc changes). Any tips to handle this case using SCD operator. This is pretty easy if you've looked at Jamie Thompson's blog: http://blogs.conchango.com/jamiethomson/archive/2006/09/12/SSIS_3A00_-Checking-if-a-row-exists-and-if-it-does_2C00_-has-it-changed.aspx ...Show All
.NET Development Failed to convert parameter value from a SqlParameter to a String.
hi i m using a stroed procedure and my and that strod prcedure is updating 3 tables i m passing 9 parameters to that procedure. when i set all parameters in my coding work of vb.net and call executenonquery it gives me following error "Failed to convert parameter value from a SqlParameter to a String." code is as folllows...please help mee in this regard strRowCount = CInt (strRowCount) + CInt ( "1" ) cmd = dbComely.GetStoredProcCommand( "sp_UpdateAndInsertStock " ) strStockTakingId.ParameterName = "@strTakingID" strStockTakingId.SqlDbType = SqlDbType.VarChar strStockTakingId.Direction = ParameterDirection.Input strStockTakingId.Value = Me .txtStockTakingId.Tex ...Show All
Software Development for Windows Vista Custom Workflow
Can we create our own custom workflows Can we load the custom activities to the workflow at runtime How data access can be done for workflows using sql server How can we store the workflows to database How can we access the workflow from the database Please help. Karthick. Karthick1020 wrote: Can we create our own custom workflows Yes, you can do this by extending the SequentialWorkflowActivity or the StateMachineWorkflow or you can create your own with custom execution semantics. Karthick1020 wrote: Can we load the custom activities to the workflow at runtime Assuming you mean add new activities at runtime, the answer is yes. This i ...Show All
SQL Server C
Hi, I have a bit of code written in class ASP that connects to a database with Command.Execute. It works fine with SQL 2000 but after an upgrade to SQL 2005 causes the asp page to hang while w3wp runs at at 100% I'm running SQL 2005 SP1 on the same machine as IIS. I can't see anything in the event log or the SQL logs that would explain this (no errors in either). SQL profiler shows the stored procedure is called. The code is below. Does anyone know of anything that might be causing this. I've spent two days so far trying to find a cause. The ODBC connection SDB1 is using SQL Native Client. MyConn.Open "DSN=SDB1;Initial Catalog=database","username","password" Set MyCommand.ActiveConnection= ...Show All
Visual Studio 2008 (Pre-release) Select via keyboard an ADO.NET typed DataRow into a ListView
I have a problem with ListView, DataTemplate and ADO.NET typed DataSet. When I use the ListView with a plain object normally I override the ToString method to return a string representating the object. This is useful because people can press keys to move to the object (like in a normal ListBox) even if you define a complex DataTemplate for visualization. For example define a Person class class Person { ... public string Name { set { ... } get { ... } } ... override public string ToString() { return Name; } } Suppose to have 3 instances of Person with Name SMITH, ROSSI and GONZALES. Fill the ListView with Li ...Show All
Windows Forms Windows Form in Native Window
Hi, I would like to display my windows form as a child of native window which is identified by it's HWND. The HWND is created by CreateWindowEx in another part of the application. In fact, I would like to replace the window with the form. Is it possible Thanks for your help, zde Yes, I have the source code and modern compiler. I am not sure if it's possible to take the form's HWND and then (from c++) use something like SetParent(hFormWnd, hWnd). It seems to crazy.. ...Show All
Windows Forms Error when copy a custom control to another project
I created a custom control library and add it to a project. In my library, I have to control: MyButton and MyBarCode. When I copy MyButton and copy and paste it to another project - B (this project doesn't have any reference to my library), there is no error. The control doesn't appear (i think it's good). Now, i copy MyBarCode and paste it to project B. An error appears: ======================================= An error occurred while processing this command. Unable to find assembly ' <Assembly Name> , Version=1.0.98.9191, Culture=neutral, PublicKeyToken=63a9ba12b6923243'. ======================================= Can you tell me what is the possible reason Thank you very much! ...Show All
Software Development for Windows Vista Download SDK
I start iso image downloading SDK from Microsoft site then it starts normally but after downloading 2.0 mb it stops downloading further. I want ot download iso image of SDK. Please help me how can i download it fully. ...Show All
.NET Development XML request leaving out TRUE attributes
When I set my XML attributes that are boolean type to TRUE, they are left out of the REQUEST. When set to FALSE they show up. Please see code below (when I look at the memoryStream all TRUE attributes are left out and FALSE are include). Thank for you for any help with an explanation. Private Function SetupRequestOptions( ByVal COGlobalSettings As COGlobal) As export_documents_requestOptions Dim requestOptions As New export_documents_requestOptions With requestOptions .documentType = CODocumentTypes.SalesOrder .onlyChecked = COGlobalSettings.COonlyChecked .exportDeleted = COGlobalSettings.COexportDeleted .onlyUnexported = COGlobalSettings.COonlyUnExported .onlyExported = COGlobalSettings.COonlyExported .markOnExport ...Show All
Visual Studio Express Editions create dll in visual studio express
Hi everybody, I have a c file and a h file i have written, which compile successfully. I want to make this into a dll. I know this is kind of a newbie question, but how would I go about doing this in Visual C++ 2005 Express Edition I am not too proficient with using Visual Studio yet, so a step by step guide woudl be extremely helpful. Thanks a lot! Kiran As mentioned in the original post, you need to install the Microsoft Platform SDK (as described here - http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/) to enable the DLL option. Cheers, =Per ...Show All
Visual Basic How to not get combobox SelectedIndexChanged be executed on load
Hello, As what the subject line is.... What is the method to not allow combobox SelectedIndexChanged to be executed on load... and only make it to be executed when a "USER" changes the selection value. Thanks well anything can go wrong during that but should be kept as an absolute last resort :-) I am sure there is a better way of finding out why the developer (original poster) needs to alter the selected index at start up of the application (onload) I could post some examples but best not until we find out whats happening during onload, with some code :) ...Show All
Visual Studio Team System Confused about install requirements.
Hi, I have been reading the posts w.r.t install requirements for VSTE DBPro RTM. I have a MSDN Universal subscription and hence have VSTE SP1 installed. That is what came in my MSDN subscription. My understanding is that I can't install VSTE DBPro RTM. Is this right I suppose my first thought is how can this be Then my second thought is how can I get VSTE DBPro RTM installed without changing my install of VSTE (because I need it work, i.e. no trial jazz). There seems to be some confusion between what the read me states and CTP6 -> CTP7 changes. Can someone clarify the install requirements for MSDN folks Thanks, -Allen Mickey is right. You state you have an MSDN Subscription. Are you sure ...Show All
Game Technologies: DirectX, XNA, XACT, etc. scrolling background with xna
I made a scrolling background with xna using the example in the documentation and what I got is a very jerky scrolling - especially when there are extra moving sprites on the screen. After that I used the same background with the well known "star trooper" game example of microsoft webcast series and ... the scrolling is perfect. Do somebody have an idea if this is a bug in xna and are they going to correct it in the final release Creating games with xna is very pleasant and I'd really like the xna team to correct this problem. I don't think so. I just copy/paste the example from the msdn. It's coded by the xna guys. Here's the link for it - ms-help://MS.VSExpressCC.v80/MS.VSIPCC.v80/MS.XNAFX.1033/XNA/2DGraphi ...Show All
Visual Studio Defining Collections
Is it possible to define your own collections of existing MSDN topics For example, there are a few areas in the help system that contain information on MSBuild, I'd like to be able to pull all of these into a single collection so I can filter the help by them. I will check on this William. Paul O'Rear, moderator for this forum, may know the answer. Anand.. ...Show All
