cplusplus1's Q&A profile
Software Development for Windows Vista Truly Dynamic Runtime Activity Property Nirvana
I'd like to acheive "Truly Dynamic Runtime Activity Property Nirvana". My most critical custom workflow activity needs to expose a list of items that is not known at custom activity compile time. Each item in the list can be bound to from other activities - this is a pretty powerful concept for our workflow application that makes it very useful for end users that design their own workflows with my custom activity. I've figured out a solution where this dynamic custom activity is possible but it involves dynamically generating / compiling a brand new custom activity class on the fly - not the prettiest solution and I'm trying to create a better solution. Ghenadie has a neat example of how to create dynamic properties here ...Show All
Software Development for Windows Vista Database Access within Activity
Hi, If some of my activities (such as Code Activity or Custom Activity) need to connect to the SQL database to collect or update some data. What is the best practice to store the Connection String I don't want to hardcode the connection string as it may change. Andy Ho Hi During some Activties like Design Time Activity the application cann't read information from Configration file, so we store information that is required in designe time in Registry and full these information when required. You can also create a file to put information but it is not a standered way of doing the job I think so., Because Microsoft Also use registery for information like this one, The store to retrive the registe ...Show All
.NET Development Dataset.Tables[0]?????
the dataset.tables...does that refer to the tables that returned from my dataadpater and when i include the [0] that means i am refering to the first table that has been returned from my dataAdapter, so in other words are the tables 0 index based And DataRow.Row[0] is that 0 index based refering to the current row's in my dataTable Can someone help me out reading this code here, it seems that i am trying create a DataTable called "SalesName with two columns SalesPersonName and SalesPreson ID one type is string the other is and integer...Could i assoicate this table to show up in a control like a listBox or maybe a datagrid DataView view = new DataView(); DataTable table = new DataTable("SalesNames"); ...Show All
Visual Studio Quickest way to Download all folders and files after initial connection to ini - VSS 2005
Just installed VSS 2005. I connected to our DB ini. What's the quickest way to create all the folders in my wwwroot that exist in our VSS datbase Do I have to do this manually as I have been doing by going into VSS, and setting the working folder and creating the folders from there Or, can I just go to our server, copy the entire structure down, then go back into source safe and set each working folder I just want to know if it is safe to copy down from a mapped drive or something, all the folders manually or do I need to go through VSS. If through VSS what's the fastest way...it's been a while, and not sure if in v2005 there are any new tools to do so. The easiest and fastest way to download the content inside a VSS database on ...Show All
Windows Search Technologies Problem configuring a custom protocol handler on Vista RC1
I have developed a hierarchical custom search protocol handler, which I have been trying to integrate with Windows Search on Vista. The steps I've taken to register the handler are: 1. Create a REG_SZ value under HKLM/Software/Microsoft/Windows Search/ProtocolHandlers. The MSN WDS Toolbar documentation mentions an AddProtocol method that can be called on the SearchManager, but this does not exist in the ISearchManager interface in Vista (see searchapi.h in the SDK), so given the lack of documentation for alternatives I've registered the key directly. 2. Use ISearchCrawlScopeManager to add a search root and default scope. The search root is created with IsHierchical = TRUE and FollowDirectories = TRUE. The registration itself compl ...Show All
Visual Studio Team System Why should we chose TFS over Subversion?
Hi, Within our department we currently discuss two options for replacing VSS: Subversion and TFS. Well, I know that TFS does much more, that it links changes with Work Items, does reports etc, etc. But right now we are primarily concerned about version control capabilities. I know that TFS does shelving, but a similar thing can be also accomplished with SVN: http://svnbook.red-bean.com/nightly/en/svn.branchmerge.tags.html Are there any other advantages Any clear reasons why NOT to go with SVN My managers are just primarily afraid of the MS slow development lifecycle. Let's face it. It is the first version and most likely it will take *years* before we see SP1, as it was the case with VS.Net, VS 2003 or VSS. And most l ...Show All
.NET Development find current date falls under EST/EDT from any machine in Arizona/CST/PST/EST
I have windows service which is going to run on several machines which are in different time zones in USA. I want to find out the Eastern Zone current time from these different machines.Language platform is VB.NET/C#.NET Question is: How i can find out current date falls under EST/EDT from any machine in Arizona/CST/PST/EST. Local daylight savings rules, such as used in states like Arizona and Indiana make this impossible. Let the machines exchange time based on UTC. You get it from DateTime.UtcNow property. Added bonus: no need to correct for the timezone. ...Show All
.NET Development Windows Services and COM interop
Here is what I am trying to do: I have a very simple test DLL that has one operation called 'Get_Stuff(String)' this simply returns a string with some hard coded text. This works fine if I create a windows app in VB and then call the operation on the DLL, so I know the code is right. However, if I create a Windows service (again in VB) and use the same code I get an error. I've set the service to run under my login rather than local system because the DLL needs to access network drives. The error I get is: Error: 429, Cannot create ActiveX component. As I say, identical code works fine as a normal windows app so does anyone know what is going on here As I understand it the service will still be running in a dif ...Show All
Windows Forms Uploading app to website
Ive developed my program with vb express, and now i want to upload it on the website. How can that be done Does microsoft web developer 2005 help Sorry it's been quite a while i away fr this forum. I try to publish app to a web site but end up with error. From the solution explorer, i choose publish option. Then the publish wizard appears and asks me to specify the location to publish my app. I type in the location of my webpage which i doubt whether the add is exactly what it requires. http://www.geocities.com/sandrea83/ Next, i was given 2 options to choose from on whether the app would be available offline. I choose the option only available online. At last, a short message appears: Rea ...Show All
Visual Studio Team System Check in Now
Hi , I used to be able to right-click an item in the VS 2005 solution window to 'check in'. I would check it in with a comment. Somehow, I have managed to change the menu to say 'Check in Now'' and I cannot add a comment. Does anybody know of a way for me to get the original behaviour. Thanks Hank Hank, Do you use something like Perforce in your organisation It sounds like you've accidentally swapped source control providers. Go to, Tools, Options, Source Control. The preference contains a drop-down that allows you to pick the current source control plug-in - Team Foundation Server should be selected. Hope that helps, Martin. ...Show All
SQL Server Updates executed regardless of conditional?
Greetings all. I hope someone has seen this before. It's driving me up the wall. Here's the scenario. Import a table via bulk insert. Some columns imported need to have the first 6 characters stripped. Write a generic routine to do this. Here's the script: declare @pattern varchar(10) set @pattern = 'yn' --only 2 fields are to be used with this table declare @cnt int set @cnt = 0 while @cnt < len(rtrim(@pattern)) begin set @cnt = @cnt + 1 if @cnt = 1 and substring(@pattern,@cnt,1) = 'y' begin print 'updating f1' update TempImport set f1 = substring(f1,6,len(f1)-6) end if @cnt = 2 and substring(@pattern,@cnt,1) = 'y' begin print 'updating f2' update TempImport set f2 = substring(f2,6,len(f2)-6) end if @cnt = 3 and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT Audio / Minor Rant
<minor-rant> Can you please, *please* consider supporting a more low level way to play sounds than XACT. The Microsoft Cross Platform Audio Creation Tool (XACT) is a pain to use. I mean seriously how many devs do you have budget for to maintain this so called "IDE" It might be okay for professional game studios but I don't think it's that simple for the XNA GS crowd. Then again having looked in the XACT forum it doesn't look like a lot of professional studios are using it either. So then you have to ask why are we having it forced on us since this audio content creation tool has so far fallen on deaf ears ;). Perhaps it's a secret plot to get the XACT folk to make it better in future perhaps (hmm bite my tongue) A ...Show All
Visual Basic VB.Net Designer Errors when loading
Hello All, I installed VS 2005 and when I run VB and create a new project, it errors when trying to load the designer for the form I'm trying to view. The error is this: Microsoft (R) Visual Basic Compiler has encountered a problem and needs to close. We are sorry for the inconvenience. This is becoming a pain in the backside! I can't even use it. Any help would be great. Thanks. jb This is a known bug with VB.NET (actually known about before the release last year) along with many...many others.. The lastest set of VB hotfixs reduces but does not fix the problem.. ...Show All
Windows Live Developer Forums Problems with custom tiles
I am adding a custom tile using a static map image file on my pc and loading with AddTileSource & AddLayer. The file loads but not only is it not scaled or positioned correctly, but it also gets tiled across the whole background VE image The image is correctly georeferenced in the bounds clause and is based in the northern hemisphere - in the UK. I've tried bmp, png and gif formats - but same result. Is there a minimum bit map image size or lat/long precision issue that might cause this Jeremy, I'm still experiencing problems with Mapcruncher, running under XP and dot net v2 and am unable to produce any rendered tiles. Three immediate problems: The Maximum (closest) zoom box which should be d ...Show All
Visual Basic DataGridTextBoxColumn
I'm inheriting from DataGridTextBoxColumn so that I can hook into the KeyPress and Validating events... problem, the Validating event doesn't fire if you tab out of the edit, only if you mouse out. Any ideas (VS 2003) Just to ensure we are clear ... CausesValidation is a very odd property. When you set CausesValidation to true for the text box, it means that when the text box gets focus that the PRIOR control that had focus will have its Validating event generated. So it does not matter if the text box you have has CausesValdation set - but rather if the NEXT control in the TAB order has it set. To put this in context, this should be set to True for every control but the Cancel button (or similar contro ...Show All
