Speedie's Q&A profile
Visual Studio 2008 (Pre-release) New entities and queries
I've created a test project. A simple table named test in a database with a field name and an autoincremented Id. When I create a new entity Test, I'm not able to find this entity in my query results. Ex : Test newEntity = new Test(); newEntity.Name = "newTest"; db.AddObject(newEntity); db.SaveChanges(); Test oldEntity = newEntity; oldEntity.Name = "oldTest"; newEntity = new Test(); newEntity.Name = "newTest2"; db.AddObject(newEntity); Query<Test> testQuery = db.GetQuery<Test>("SELECT VALUE t FROM Test AS t"); foreach (Test entity in testQuery) { System.Diagnostics.Debug.WriteLine("ent ...Show All
SQL Server Possible to encrypt database assembly?
Hello. I've built a simple Visual Basic .NET project containing the following code... Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlTypes Imports Microsoft.SqlServer.Server Partial Public Class StoredProcedures <Microsoft.SqlServer.Server.SqlProcedure()> _ Public Shared Sub WhoAmI() Using connection As New SqlConnection("context connection=true") connection.Open() Dim command As New SqlCommand("SELECT SUSER_SNAME()", connection) SqlContext.Pipe.ExecuteAndSend(command) End Using End Sub End Class From Visual Studio, I want to encrypt the contents of this assembly, as a proof-of-concept. Even though assembly contents are stored as ...Show All
Visual Studio Beta 2: Error message: Package Visual Studio Explorers and Designers Package has failed to load properly
When I launch VS2005B2, I get get a "Package Load Failure" dialogue box that contains the following message: Package 'Visual Studio Explorers and Designers Package' has failed to load properly ( GUID = {8D8529D3-625D-4496-8354-3DAD630ECC1B} ). Please contact package vendor for assistance. Application restart is recommended, due to possible environment corruption. Would you like to disable loading this package in the future You may use 'devenv /resetskippkgs' to re-enable package loading. I've tried answering yes and no, and I've tried 'devenv /resetskippkgs' but I still have the problem. Before installing VS2005B2 from the Team Suite DVD, I did a full install of SQL 2005 from the SQL DVD that accompanied the VS2005B2 Team Suite DVD with a ...Show All
SQL Server Subcube in cube calculations
In AS 2005, can a Create Subcube statement be used to create a subcube that can be used within a Calculated Member in the Calculations tab in the cube editor. The Subcube needs to exist only within the scope of the Calculated Member. (Create member) What are the typical usage scenarios for 'Create Subcube'. Regards Do you suggest to use subselect in a calculated member this needs to be a cube calculation. and how can the AND/OR conditions used in the filter now, be used for the ranges. ...Show All
Visual C++ Template Selection Visual C++ 2005
Keyword C++ Template Matching Selection I thought in many circumstances the more specialized template is chosen. So the actual template selection by the great compiler seems contrary to my expectation. This concerns overloading the operator = via templates in a C++ class. Desired: To have member template methods (operator =) called in certain object types thus producing other or same objects. Expression Templates. I want to manually write these templates for the educational value. (template frenzy).( I dont want use boost::lamda ... just yet). Other metrics being equal .. I would like to use a lesser number of member functions. Actual: I get template matching that is contrary to my intention. (I dont understand the actual template ...Show All
SQL Server Supress Blank Rows
How do I get a Report Table to supress blank rows from displaying In Crystal Reports this option is available under Format Detail Section, supress blank section chekckbox. Dear VDeepak, Thank you! Case:2 works. I could have sworn I'd read that "is System.DBNull.Value" is the way to check for null. thanks very much! ...Show All
Windows Forms Interrupt BeginInvoke
Hello, in the last two hours I tried to understand if it is possible to terminate from the calling thread a method called asynchronously using the BeginInvoke pattern, but I was not able to find any solutions. Can you help me to get an answer to this question Thanks in advance, Marco Practically you are saying that there is no way to retrieve the thread created with the BeginInvoke from the Thread Pool. So probably I have to use the Thread class or the BackgroundWorker in order to have the possibility to stop the thread from the calling form ...Show All
Game Technologies: DirectX, XNA, XACT, etc. New Text Input Component
Hi, For those of you requiring text entry in your game, I have just released a component that allows this without the need for a a keyboard. Full source and instructions on its use can be found at the link below. http://www.xgamelibrary.com/Components/XGameLineInput.aspx This is the first part of a high-score table component I am working on. Your comments on the component would be very welcome. Andy Thanks for the positive feedback I love how easy it is to create useful little components for XNA ! It will be great to see what components the community comes up with in the next few months, perhaps XNA will really become a drag and drop game design system Andy ...Show All
Visual Studio Express Editions Progressbar for SqlBulkCopy
Hi Everyone I try to use progressbar for SqlBulkCopy . Please help ! Thanks . Try using the SqlBulkCopy.SqlRowsCopied event to update a ProgressBar. If you don't know how many rows you'll copy, you'd have to set the progress bar's style to Marquee. ...Show All
Visual Studio Team System Workgroup Edition license..
I am the only developer in my organization. I have a Premium MSDN subscription with the new DB Pro Team System. Anyway, a copy of the Team Foundation Server Workgroup Edition is included. This is great for me! I will probably be the only developer here for a while. Anyway, it says that TFS requires SQL Server 2005 standard and Windows Server 2003 to run! ! ! Okay, so I'm a single developer, do I have to buy a copy of windows server and sql server 2005 standard just to run my Workgroup Edition If so, it makes it unusable for me. I develop in-house Line-of-Business apps, so every dollar we spend is overhead. It is difficult enough just to get the msdn subscription. Anyway, I'm looking for some guidance here. Right now, I'm using a basic wor ...Show All
Visual C++ Notifications and messages in win app.
Hi I am reading some documents about win32 programming.And try to understand its event procedure. For windows controls which i added to my application.When an event occurs windows add a msg to its msg tail.But also send WM_COMMAND msg to my application so i can do something when that event occurs. For example for button click event: Message:BM_CLICK Notification:BN_CLICKED (I hope i am right until now) But i looked other controls mesg and notification lists.They don't match.I mean there is not notification for every message. For example combobox have CB_ADDSTRING mesage, but it does not have CBN_ADDSTRING notification. But why What is the concept for notification and messages, what is the differnces between t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Porting the engine (written in C++) from DirectX 8.1. What are my options ?
I`ve got a 3D engine used in my previous and upcoming online/budget PC games that I wrote by myself from scratch during last several years. However, I would like to port it to XNA since that would give me another platform (XBOX360), since that`s what most of distributors would like to have (multiplatform title) these days. Plus, all games/demos that I would create would then run on both platforms, which is a fantastic feature in itself, and a great negotiating factor with distributors/publishers. Will XNA support ASM shaders natively, or will I have to rewrite those in HLSL I`ve got a pretty huge set of ASM shaders handling lighting,animation,decompression and lots of other stuff. But, from what I`ve read so far, it seems I`m goin ...Show All
Visual Studio Express Editions Can't download from microsoft also
I ve been having a similar challenge. I can not download from microsoft. I have comcast and have spoke with them they say they are not blocking my modem and that it is a microsoft problem. I have three PC's in my home and none of them can download from microsoft. They all have valid windows XP installed. I am able to get auto updates, and when XP is reinstalled onto my pc its goes through the validation just fine. I get a can not display the webpage every time i try and download something. I am not able to even open the validation link pages to run the validation checker tool. I have XP pro and Explorer 7 which i have made sure that all the active X options are enablesd and that the enable third party extentions in the ad ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Installation with Visual C # 2005
Hello all I tried to install the XNA Express but it asked me to have Visual C # 2005 Express. The problem is that I have the Visual Studio .NET 2005 installed in my PC. Is there a problem with that how i can Install it to Try It VernonH - MSFT wrote: Battlekiller wrote: you will have to remove the C# part of visual study, then you can install the visual C# express edition, and then you can install XNA. This is what i had to do. You should not have to uninstall the C# portion from your existing Visual Studio 2005 install. C# Express and Visual Studio 2005 will live side-by-side with each other. In fact, when you download C# Express, it will detect you have VS 2005 and only download 30MB worth of ...Show All
Visual C++ Dll issue
Hello! I am using windows API functions in my program , to be specific i am using the IcmpCreateFiel() and IcmpSendEcho() functions. For this i have added these hader files: - icmpapi.h - ipexport.h i also read in the documentation that "iphlpapi.lib" needs to be linked as well. So, what i have done is using the floowing path "VC 6->projects->settings->Link" i have added the "iphlpapi.lib" in the space provided for Object / Library modules . But when i run the program the following error occurs : "The procedure entry point IcmpSendEcho could not be located in the dynamic link library iphlpapi.dll" Am i missing some important step Please suggest what should be done abo ...Show All
