Aaron Oneal's Q&A profile
SQL Server Query sys. views from stored proc returns no rows
I am trying to migrate some of my own procs to 2005, from 2000 I want to use the new system views. The procs are maintenance type procs that live in master but can be called from any database. I am testing running them from Adventure works. I do not get any data returned from the sys.indexes view, but if I do it the SQL2K way by going directly to the sysindexes table it does return rows. What am I doing wrong here The testtable below has 4 int columns w, x, y, and z. There is a clustered index on w,x. There is a non_clustered index on y and a nonclustered index on z. use master go ------------------------------- -- Test proc for system views --- -- use AdventureWorks -- go -- exec sp__test_sysviews test ...Show All
Smart Device Development Programmatically setting url exceptions in pocket pc version 4.20
I have read and coded several examples that are supposed to change or set the url exceptions. I have validated the xml that is being processed I have also sent the xml doc using the rapiconfig.exe tool but the exceptions do not show up in the exceptions. If I use code to send it to MProcessConfigXML I get a return error code of 2147418096. Does anyone know if this is possible and if so what I am I missing, The xml doc being sent is being read from a file and is as follows: <wap-provisioningdoc> <characteristic type="CM_Mappings"> <characteristic type="1005"> <parm name="pattern" value=" Http://*.mycompany-corp.com"/ > <parm name="network" value="{A1182988- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xna Book
An XNA book is found But alas with all good news come the bad.... its not scheduled for relase until May 2007 The book is title " Professional XNA Game Programming" Regards, From the Amazon.com listing: XNA requirements and components Writing helper classes Graphics with the XNA Framework Create great visual effects through Shaders Using XAct for Music and Sounds Accessing Keyboard, Mouse and Xbox Controllers with XInput Programming a complete racing game Building a graphics engine Creating a game engine Racing game logic and game ideas How to get all the content managed in XNA Fine tuning and debugging Deployment to Xbox 360 ...Show All
Visual C# Typedefs for Generics, Anyone?
It seems kinda awkward to have to write this: SortedDictionary<String,String> myThing = new SortedDictionary<String,String>(); It would be nice to do something like this: using myMap = SortedDictionary<String,String>; myMap myThing = new myMap(); ...but I can't get that to compile. Is there any relief for the weary In other words, how do I do this You can do this. Not sure what your compiler errors are, but this works for me: At the top of the file, with all the other using directives: using myMap = System.Collections.Generic. SortedDictionary < string , string >; In some method in the same file: myMap mm = new myMap (); That work for you ...Show All
Visual Studio Express Editions Visual Studio Express Editions Setup file
Hi, I would like to know is there any setup file available for Visual Studio Express Editions (C#) to be installed in Laptop without internet connection Is it possible to downlaod the whole set up file in desktop computer and then I can transfer the file to Laptop and install. I'm using windows 2005 media centre edition.whether it will support Visual Studio Express Editions or not. Kindly clarify my doubts Thanks & Regards, Manikandan Can you please tell me where is the link to download disk image , Link to manual installation instructions Mani ...Show All
Visual Basic Dealing with null values
I remember when I was using VB6 that I always used If IsNull() End If statements to check for null records before performing any kinda of calculations, does this still hold true or what is the best way to deal with nulls Davids Learned Alot Today! You have nulls in VB which you can check for by saying Module Module1 Sub Main() Dim x As Object If x Is Nothing Then MsgBox("foo") End If End Sub End Module Nothing is the VB keyword representing nu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. looking into voice application
will I be able to take full adavtange of the xbox 360 mike like that of rainbow I want to create a tec demo(not sure if the right word to use) using it for a game demo think of that game facade but with voice. There is no support in XNA right now for voice input from the controllers. Add your request in connect and keep your fingers crossed for future versions. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=682921&SiteID=1 ...Show All
Visual C# Delegates calling overhead
Hello, I need to retrieve the value of an object’s property but the member property is not known at compile time e.g. I have object of Type Foo with properties FirstX, SecondX and ThirdX. So instead of having multiple if-else statements then having x = foo.SecondX (depending on some condition) , now I have something like x = pfoo.X where pfoo is simply a type that dynamically maps to a set of properties on Foo. The X property on pfoo is nothing more than an open instance method delegate that explicitly supplies the hidden first argument as the instance of Foo. Here is how pfoo looks like: class FooMapper { private Foo foo; private TypeUtility<Foo>.MemberCallback<int> x; public Foo Foo { ...Show All
Visual C++ text editor
Hi everyone, I`m working at a small project in VC++.NET 2005, for school, a simple text editor, and I couldn`t find how to do some things, I hope to find some help here. I don`t have much experience in visual programming. So, here are my questions: I have a main for with a rich text box, menu, toolbar, and I want to implement a function to find text, so I have another for which I open when i click on the find menu item, like this Code: Search^ find =gcnew Search; find->Visible=true; find->Activate(); my question is how can I acces from the find form the richTextBox from Form1 to call it`s find method - can you give me an example of how to use the print preview dialog and the print dialog. I understood tha ...Show All
Windows Forms opening IE from windows application in VS2003
Hi I am using framework 1.1 and VS2003. How can I open an HTML file in IE from my windows application Thanks, use the System.Diagnostics namespace, in there is a class called Process. This will run a process as if you double clicked on the file. So.... System.Diagnostics.Process.Start(" path\file.ext "); would do it, of course, give the correct path and filename of the object you wish to open/run does this help ...Show All
Game Technologies: DirectX, XNA, XACT, etc. HUD help: sprites drawing behind world
I want the first screen of my game to consist of something similar to the intro of Valve's HL2 - a 2d menu drawn on a 3d background. I'm seeing my menu sprites and my world geometry, but my sprites are being drawn behind my models. I have my sprite drawing handled all within one object, called GameScreenManager. My 3d objects are all drawn within a GameLevel object. Both objects are extensions of DrawableGameComponent, and these components are both added to the Game class object. Inside the constructor of my Game object, I have set the following: gameLevel.DrawOrder = 2; screenManager.DrawOrder = 1; which, according to the hints, should cause the graphicsDevice to render the 3d stuff first and the 2d stuff second. All of my sprites have ...Show All
Windows Live Developer Forums www. Invasion of the Robots Contest for Windows Live Messenger
It's here... an unstoppable force sweeping the globe the Invasion of the Robots! Microsoft is challenging developers worldwide to create conversational robots, or BOTs, for MSNR Messenger and Windows Live Messenger. The most original, useful robots collect $40,000 in total prizes . See http://www.robotinvaders.com/main/default.aspx . Questions about the contest, building Messenger applications with a BOT or Activity, what you can, should or want to build should be posted back to this forum. Here's a post with a list of ideas... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=228548&SiteID=1 I know the whole team looks forward to seeing what people develop as a part of this contest. A lot of feedback from the people ...Show All
Smart Device Development FileIOPermission issue
Hi, I'm trying tot write an App that runs through the system just reading files and producing a hash of each file. The problem is that certain files in the CE file system are protected and I can't seem to read from them. The Exception occured in these lines; private string GetHash( BinaryReader br, int SizeOfFile) { byte [] hash; ASCIIEncoding enc = new ASCIIEncoding (); byte [] buffer = new byte [SizeOfFile]; br.Read(buffer, 0, SizeOfFile); } From what I was getting from Visual studio suggeted I did something like the following: using System.Security; using System.Security.Permissions; [assembly:FileIOPermission(SecurityAction.RequestOptional, Unrestricted = true )] ...Show All
Visual C# EnumBuilder
I'm trying to create an enum while the program running with this code: public Enum GetAssemblyEnums() { AppDomain domain = System.Threading. Thread .GetDomain(); AssemblyName asmName = new AssemblyName ( "dynamicAssembly" ); System.Reflection.Emit. AssemblyBuilder asmBuilder = domain.DefineDynamicAssembly(asmName, System.Reflection.Emit. AssemblyBuilderAccess .Run); System.Reflection.Emit. ModuleBuilder moduleBuilder = asmBuilder.DefineDynamicModule( "dynamicModule" ); System.Reflection.Emit. EnumBuilder enumBuilder = moduleBuilder.DefineEnum( "MyComboBoxEx.dynamicEnum" , TypeAttributes .Public, typeof ( int )); Assembly asm = Assembly .GetExecutingAssembly(); Type ...Show All
.NET Development Best practice - events/direct method calls?
Hi. This is a bit confusing. As I develop new applications, I always have a strong architecture background after each project and I am very happy about this. The thing is, I know how to use events. Events are really used for when a certain notification must be executed/called upon after a certain process/condition matches. (or something like that) In my app, when the user hits "Start service" from the UI Form, it will call the connection classes to open up ports/connect to destination or whatever. The classes does its job itself without the UI class doing much than saying "Connections.DoStartService()" The UI/classes must be seperated or tied together depending on the relationship - its just better design ...Show All
