RayRayN's Q&A profile
.NET Development A problem in restarting the service of MSSQLSERVER
I had the following problem in my application. I need to Restart MSSQLServer service before do the connection test. In some cases, I have to Restart the MSSQLSERVICE again after connection test. In the old version of MSDE2000, no problem occured at all. But in MSDE2000 SP3a, I got the following error when restart the MSSQLSERVICE for a 2nd time. But if I run the test program so as to execute RESTART and CONNECTIONTEST in pair each time, no error occured. Can somebody give some advice to avoid this problem Thank you! The error log says : 2007-01-11 10:30:26.45 server Using 'SSNETLIB.DLL' version '8.0.766'. 2007-01-11 10:30:26.46 spid5 Starting up database 'model'. 2007-01-11 10:30:26.51 server SQL server listening on ...Show All
Visual C++ Smartbridge Alerts
I too am receiving the "entry point not found" message. I have very little technical knowledge and would appreciate assistance in any fashion. thanks. Helen McLaughlin If you're using Internet Explorer 7 Beta 2, you may be seeing an issue for which there is a workaround. Check out the following link: http://msdn.microsoft.com/ie/releasenotes/default.aspx ...Show All
SQL Server Add sum column to query
What's the best way to include an amount sum in a query if I also need the individual amounts For example, I need the following columns: order number order amount total amount I tried using "with cube ", but the total number of columns in the query exceeds the allowable limit of 10. select a.ordernum, a.orderamt, b.totalamt from orders a, (select ordernum, sum(orderamt) from orders group by ordernum) b where a.ordernum = b.ordernum This will return data like: ORDERNUM ORDERAMT TOTALAMT 1234 12.33 56.23 1234 11.25 56.23 1234 32.65 56.23 2345 ...ETC... ...Show All
Visual Studio Express Editions template link errors
I've been looking for a solution for this all day now, and it's driving me crazy. I have a C++ couple of C++ template classes that I'm using in a test executable for a DLL I built. The templates are used in the DLL as well, but in all cases that I use it, to avoid errors, I have all the template code in the header, so when it's included all the code is available for the compiler to do the type resolutions. When I build the DLL, it compiles and links just fine. However, when I build the executable, I get unresolved token and unresolved external symbol errors for the template, but only for the one that I use in the executable, not for the ones used in the DLL. I have tried to change the type temporarily to int and have copied and p ...Show All
Visual Studio 2008 (Pre-release) HttpTransportSecurity not extensible
There are many classes that could be usefull for configuring custom binding element and custom bindings. But their constructors are made internal plus there are plenty of usefull methods that configure binding elements that are also made internal . Woudn't it be better if I could reuse HttpTransportSecurity security in my classes for storing the custom binding configuration reusing it when I need to configure the HttpsTransportBindingElement instead of inventing my own proprietary configuration classes Same applies to many other usefull classses and methods that are presently visible only using reflection. At the end WCF framework is very flexible but obstacles like this minimize it flexibility, giving only two options really either to us ...Show All
SharePoint Products and Technologies How to register an event handler declaratively by content type?
Hi. everyone. I'd like to register an event handler declaretively by content type. According to a paragraph of this article , it seems to be possible, but i don't know how to do this. Declaratively by content type, for example, to register an event handler for all documents of a specific type. Within the XML for a content type definition, you can register event receivers. I created two content type named ct_a, ct_b, and I derived them from document content type. ct_a and ct_b had a event handler respectively and were associated with a list named list_a. What i want to know are how to associate a event hander with a content type and how to activate them. Thanks for in advance. ...Show All
Visual Studio Submitting doc errors?
As I struggle through the VS2005 documentation, I find numerous errors. Is there an easy (= 1-click) way to report these I want to see them fixed, but don't have time to go through a long procedure to submit them. Yes and very soon with MSDN Wiki. Please see beta announcement at - http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=658907&SiteID=1 Anand.. ...Show All
Visual Basic How can I set the ListView Item no to show
Here is my code: visual basic code: Do While MyDataReader.Read Dim myItems = lvSelected.Items. Add (MyDataReader("PanelCode".ToString)) With myItems .SubItems. Add (MyDataReader("ExamName".ToString)) .subitems.add(MyDataReader("Price".ToString)) .subitems.add("1") End With Loop What I want to achieve is that when "PanelCode" field in my database had a value, I would not display it in the lvselected(listview), just the subitems.I had tried using this code: visual basic code: If MyDataReader("PanelCode".ToString)<>"" then MyDataReader("PanelCode".ToString)="" End If but it was giving me an exception stating that "Item" is ReadOnly.How can I possibly do this thanks... ...Show All
Visual C++ Concerning auto-gen'ed vcproj files
Hello all, Still new to the MSBuild environment, I noticed that the vcproj files that VS.NET 2005 generates for C++ projects has a format like the following: <VisualStudioProject ProjectType="Visual C++" Version="8.00" Name="SRClient" ProjectGUID="{E80C0F4D-9918-403B-B52E-90C0F3535FA7}" RootNamespace="SRClient" Keyword="AtlProj" > <Platforms> <Platform Name="Win32" /> </Platforms> <ToolFiles> </ToolFiles> <Configurations> <Configuration Name="Debug|Win32" OutputDirectory=".\debug" IntermediateDirectory=".\debug" ConfigurationType="2" InheritedPropertySheets=" ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision Detection
Hello, I would like to create a collision detection function to test if the bounding sphere of one of my meshes (the player, for instance) is intersects a triangle in another model (the level). How would I go about running a for loop that checks each triangle of the level And from there, what would be the best algorithm to determine if the BoundingSphere is within the triangle Any help is greatly appreciated. Perhaps we need more information. What is a "level" that you refer to Landscape other objects If landscape, are you using a Model for it A model has ModelMeshes that contain the vertex buffer for all its MeshParts. You would need to transform them (from model space to world ...Show All
SQL Server how to get a variable value return back from a child package ?
I have a parent package (i.e. P) and a child package (C). I was able to easily pass a variable value from P to C. And C did computations and get a result (i.e. integer) and stored this integer to a variable (x). Now I want the value of "x" to be passed back to P and store in P's variable (say Px). Anyone knows how to Thanks Steve There is not an 'out of the box' capability for that(no that I know); but you can try to put the 'X' value somewhere (table, file) where it is accesible by the Parent package. Rafael Salas ...Show All
Visual C# Strings
how can i be able to take characters off the beginning and end of a string I want to make a scrolling effect. Thanks Steve please do not duplicate post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=710109&SiteID=1 if you need code for C#: string theString = "hello my name is bob"; string theBeginningString = theString.SubString(3); string theEndingString = theString.SubString(2, theString.Length - 4); ...Show All
Visual Studio Express Editions error trying program on other pc
Hi I've got a program. It has 1 source file (.cpp) and 1 header file(.h). When I compile on my local machine the program works just fine, but when I try it on another pc I get the error that somethings wrong with the configuration of the program and that it can't be run. I have .net framework 1 till 2 installed and the microsoft visual C++ 2005 redistibutable on the other pc. Anyone know what I need to do to make it work (and is it normal that my compiles program is smaller then my source code (.cpp and .h file together) ) Thanks in advance. K, I changed some things in the options , recompiled (release version) and now it says these 2 files are missing: - MSVCP80.DLL - MSVCR80. ...Show All
.NET Development How to use generated assembly?
I have a dotnet dll name test.dll after using sgen I got test.XmlSerializers.dll Now my types in the generated dll are suffixed with “Serializer” keywork i.e If I have testclass I get testclassSerializer type in the generated dll. How can I use these generated types for deserialization Well, sgen generates an optimized XmlSerializer derived class for each of your types. To use it, just add a reference in your project to test.XmlSerializers.dll and then use the class1Serializer in the same way you used XmlSerializer class: private void DeserializeObject( string filename) { Console.WriteLine("Reading with TextReader"); // Create an instance of the XmlSerializer specifying t ...Show All
SQL Server COM objects under 64-bit?
Hi everyone, Primary platform is Framework 2.0 under 32-bit Production platform will be Framework 2.0 under 64-bit. I'm concerned about what object should I use in order to launch DTS 2000/7.0 from our .Net service. Currently it tested fine from a 32-bit environment (sql server 2005 as backend). Reference: "Microsoft DTSPackage Object Library" Physical file: dtspkg.dll My wonder, is there any limitation when it's gonna to work on 64-bit Generally speaking, any limitation/issue/drawback for COM objects under 64 bit In my project properties appears Any CPU, x86, x64. I've got now Any CPU. Thanks for your advices,   ...Show All
