Dylan Smith's Q&A profile
Visual Studio 2008 (Pre-release) What is SyncDirection.Snapshot?
What is SyncDirection.Snapshot and how it is used In addition to the reasons Michael mentioned, Snapshot doesn't require any change tracking meta data on the server. So, if you're synchronizing a table that you can't add a LastEdit type column to because you can't make schema changes, you can still synchronize data with the Snapshot option. Steve ...Show All
.NET Development Convert a stored value in a database to an object
I am storing the name of controls in a table and want to load the value of those controls with a value in the database. How can you access every control in a form (not "on" the form like Me.Controls because that doesn't see everything in group box ect.) ex. cbo as combobox cbo = AllControls .item(Row!ControlName) cbo.SelectedValue = Row!ControlValue Otherwise, if you want to handle the controls by control names in the database. Just bind the data to a control (like combobox you mentioned) , then get the text or value from the combobox as a string such as string controlname = combobox1.selectedValue (or combobox1.selectedText) , and so you can use the syntax like " ...Show All
SQL Server Closing a conversation later on and Microsoft Service Broker Interface (sample)
In a messaging application, a client sends a message to the server. The server uses Service Broker Interface, and is CLR based. On the server, the message has a life cycle - going throughout multiple transitions until is final (Pending, In Transit, Delivered, TimedOut, Undeliverable). As the server receives the message, it sends back to the client a reply status message of In Transit. It does so using the same message’s conversation. It also saves – along with the message – its conversation handle. The dialog is not closed. After a while, the server may decide that the message has gotten to a final state (Delivered or TimedOut). I would like at that time to send a reply status message (Final State) back to the client and also close th ...Show All
Visual C++ XML Attribute parsing
Hi Everyone, Does anyone know how to parse the following xml code using Expat <name= "Hello"> <return> <primitive type= " string" value= " world" /> </return> </name> I would like to get the following values: Hello, string, world Thanks in advance The Expat website is a better resource than Visual C++. http://expat.sourceforge.net/ ...Show All
Software Development for Windows Vista WinFX3.0 part of Vista by Default ?
Hi, Can I presume that the full WinFX, or .NET 3.0 Runtime will exist in all Vista Builds by default. At the moment I have to install, and presume my Business clients have the .NET runtime in XP. Can I assume that Indigo (WCF) will be part of the Vista builds The various download components in theVista, RC and .NET downloads make the situaiton very unclear. Does anyone know which developer environment will tidy up all theWinFX runtimes (WWF, WCF and WPF) , when Vista is released . Currently I have to download several different VS2005 components. I presume we will soon get a single download for Vista/ Winfx, .NET 3.0 rather than have to wait for VS2007 or whatever Cheers Jules ...Show All
SQL Server SA account (DBA System account) Granting Priveleges but SQL Server 2000 not applying them
I have been running a script in SQL Server 2000 as sa also as a Active Directory user who has administrator rights (I tested both approaches SQL Server then Windows Authentication) in Query Analyser which grants execute rights to the stored procedures within the database instance and Query Analyser does not give any errors when I run the script. I have made sure that each transaction has a go after it. I then return to Enterprise Manager, check the rights (I apply them to roles so that when we create another SQL Server user we just grant him/her rights to the role) and discover that the role has not been granted the rights. I seems to be occurring only with 2 of the procedures. Is there a known bug that might be causing this yours since ...Show All
Visual Basic Problem whit publishing
When publishing program to a computer thet don't have internet access and framework i found thet i have to include prerequisites. Becose prerquisites can't be downloaded from web in properties i specify thet prerequisites download from the same location as my application. When publishing start i got three errors: Error 1 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0' can not be located on disk. Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe' in item '.NET Framework 2.0' can not be located on disk. See Help for more info ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Codeplex XNA
I am starting to use CodePlex to host a GameComponent that I am creating. Has anyone had any experience in using Codeplex, VS C# Express I have the team explorer which works in my VS2005 Team Edition, but as far as I am aware GSE doesn't support Team System. Kind Regards, Paul Kinlan It turns out I can use VS Team System to add the folders and the like in, and also the "tf" command is also available. I can then make changes in VS C# Express. It is a bit cumbersome, but it seems to work. ...Show All
Gadgets Dll Won't register
I wrote a gadget that uses a C++ dll as an ActiveX object. The dll was written in VS2005 on an XP pro machine using Bruce Williams tutorial as a guide. It registers fine in XP (using regsvr32 and manually registering it in my gadget) and when I open my gadget.html in IE it works as it should. When I move the gadget over to my shiny new vista machine (Business edition) the DLL can't register. I can write the appropriate values to HKCU manually in the gadget, but it still gives me an error when I try to create the ActiveX object containing my class and regsvr32 gives me errors about the side-by-side configuration. I've tried it as both administrator and standard user. Does anyone have any insight about how to register my DLL Thanks ...Show All
Visual Studio Tools for Office Failure to manually Attach Managed Code Extensions to Documents
I am following the example described at : http://msdn2.microsoft.com/en-us/library/ms268877.aspx I am modifying the document manually to point to a working example from part 1 and 2 of: http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOWindowsInstallerOverview.asp I chose a local install of a doc and assembly and included the SetSecurity and UpdateManifest installer classes noted in the sample and all works great. Now I create a new doc and follow the manually attach instructions with no success. I made the property changes for '_asemblyName' and '_assemblyLocation' (with the actual path name, not the manifest guid). It now gives the following error when the doc is saved and then ...Show All
SQL Server Cant get Reports Server page to work
hi I have sql 2005 Standard on WinXP and i cant get http://localhost/ReportServer to work. I get the web page error Server Application Error The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance. I have re-installed sql 2005, reinstalled IIS . I have run the aspnet_regiis -i and still nothing. Please someone, anyone , help. just a suggestion have a look in your sql server configuration tools // configuration manager // expand the network configuration until you get protocols and then in the right hand pane you should see TCPIP - double c ...Show All
SQL Server How to Hide childless members
Hello, I have a dimension with members that dont have childs, how can i hide those members. Thank you I have tried all the "Hide member if" properties, but it still there. I have no child, and not a child with no name, maybe that is the reason why it doesnt work. In 2000 the Analysis did this by default Im using SSAS2005 Thanks ...Show All
Visual Studio Express Editions randomly generate one of four words
Randomize() lblassign2.Text = Int((10 - 1 + 1) * Rnd() + 1) How can I change this so It will generate one of 4 words. The words are Hearts, Clubs, Spades and Diamonds Also these four words should be capitalized. I have another question, I keep getting an error when I use this code, what am I doing wrong Randomize() lblassign1.Text = Int((10 - 1 + 1) * Rnd() + 1) ...Show All
Visual Studio Printing multiple reports
Hello All, I want to fire reports based on the series of order numbers. I know i can use reportselectionformula to fire report on a single order number but how do i handle this if there is a requirement to print 50 order numbers at one time, i.e., 50 order numbers are passed as arguments and all the order numbers should be ready to print. Thanks in advance. Hi I cant make out if you want to create 1 report with many order numbers on it or a seperate report for each order number. If you want to have 1 report that lists all the chosen order numbers you can do it by using an "Order Number" parameter and then passing multiple values, ie the order numbers, to that parameter. (If the order n ...Show All
Visual C# Why don't we use header file and Main in class
Hi 1-)In c# why don't we need header files What does c++ miss.So it needs header file but c# not. 2-)In c++ main() is not in a class.Main() is called by OS.It is a special function.But in C# it is also in a class.For example: class Exercise { static void Main() { Console.WriteLine(); } } Here this is confusing thing.Why do C# designers force us to put main in a class Does OS instantinate Example class for calling main().If not what is the magic behind this rule Thanks. ok my first questions answer is metadata.Thanks carlop. But for main() question i think maybe there can be some different purpose. OK Maybe i must ask so: Also is main() must be in a class for a language that want to be truely oo. ...Show All
