bklambdin's Q&A profile
Gadgets Silently running an external program from a gadget
Is there any way to run a program silently from a gadget and collect its output The only way I know of for running a porgram is System.Shell.execute, but this flashes the cmd window quickly (this is a CLI exe) and I don't see a way to get the output of the program. I am currently accomplishing the same thing by using Wscript and objShell.Run, sending the output to a text file, and then reading the text file. Just wondering if there is a better way. Does jscript allow you to launch a program silently no it's a command line exe. i didn't write it and I don't know what it was written in. it's called qstat and it lets you enter a game server name and returns the number of current players, map name, serv ...Show All
Windows Forms design question - re dynamically creating controls
I have to create an interface (vb.net 2005) similar to the visual studio tools -> options I quite like that interface - use selects an item from a tree and on the right hand side the appropriate controls are displayed... My question is how do you think the programmers did it in Vis Studio - I'm after best practice here... I'm guessing that they create the controls dynamically - and it looks like they create them dynamically on demand - and keep them hanging around in case they need to be displayed again any insight welcome - and are there any clever code samples showcasing this thanks Bruce Yes, the controls in design mode are actual controls created dynamically, and subclassed by the de ...Show All
Visual Basic what the different between VB2005 express edition and .net?
Hi, I didn't understand what the meaning of .net I saw that there is visual studio 2003 .net but I didn't saw visual studio 2005 .net So vb 2005 pro or express is .net too If someone can explain to me I be glad Regards, yaniv pinhas .NET was the evolution of earlier versions of the microsoft development products to use a common framework - enabling common functionality of C# and VB development. This started with version 2002, 2003 and now 2005. Visual Studio is a product which incorporate the C#, VB and a host of other tools (like a bundled package) VB 2005 (Pro) etc. are just the VB development products and yes every version of VB released since 2002 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is my normal code wrong?
I've used it on a few models and all the time the results are dire. even on a flat patch. i know its the normal code cos if I manually input good normals it looks fine. Can you see any way i can improve this or better yet, a link to a xna demo with normal generation code And sorry for so many threads, having too much fun with xna. public void CalculateNormals() { float [] Face_NX = new float [ this .Triangles]; float [] Face_NY = new float [ this .Triangles]; float [] Face_NZ = new float [ this .Triangles]; int [] Vertex_ConnectedTris = new int [ this .Vertices]; int [,] Vertex_TriList = new int [ this .Vertices, 128]; int TriCount = this .Triangles; for ( int Loo ...Show All
SQL Server c#
Hello, is it possible to get the values for my Report about existing c# functions or classes And how it works Greez Daniel Are you saying you want to use existing C# functions in your report Yes, you can do that through custom assembly. http://msdn.microsoft.com/library/default.asp url=/library/en-us/rsprog/htm/rsp_prog_rdl_3hsy.asp ...Show All
Visual Basic how to add DLL to Resource
ok how can i add a DLL file (my case : Interop.SpeechLib.dll) to the Resource and use it in my code i have to imports spvoice i cant do this if i didnt refrence the Speech Lib i dont want to have a DLL file just my EXE file . and if i build a CLASS librery (DLL) so its makes this different tnx :P What would you use it for You could do the following: Your Project - click settings - select (take a look around between the properties, until you find imported namespaces) - click browse - and finally add the dll! At the bottom of the page import its namespace and thats it! At the page where you found it, it will show the imported namespaces, and then you will see a column if its copyed to the ouput folder, if ...Show All
.NET Development XPathNavigator- cannot use XPath functions...
I'm trying to evaluate an xpath using XPathNavigator. My xpath uses the XPath function current-time(). When I call the Evaluate() method, it throws an exception complaining about XsltContext: Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function. I've tried associating a namespace with the function as below: XmlNamespaceManager mngr = new XmlNamespaceManager ( new NameTable ()); mngr.AddNamespace( "fn" , @"http://www.w3.org/2005/02/xpath-functions" ); expr.SetContext(mngr); It still complains about XsltContext. I would expect this if the function was user-defined, but this is a standard XPath function. Does anyone know how to evaluate XPaths ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Managed DirectX vs Native DirectX performance
Greetings, I'm sure many people asked this before but no one has ever been able to answer this for me :( I've searched high and low (on this forum too) but theres no answer to this question: Whats the performance difference between MDX and DX I'm currently writing a little 2D engine in MDX, and its quite fun to do! But it doesn't perform that well, I've managed to get a few performance gains due to me revising my own code, but it just doesn't quite cut it. Also when is this MDX 2.0 gonna be released Or is that XNA And what are the main differences between MDX1 and XNA Thanks in advance. I checked his site and it's somewhat up to date as far as what's going on in the industry so he's still doing something. There's no ne ...Show All
Visual Studio 2008 (Pre-release) Is there any type of context available at time of IAuthorizationPolicy evaluation?
I've been doing some work with adding custom context to our WCF web services. I've successfully added context to the operation and instance context, but now I'm doing some work at the IAuthorizationPolicy level and finding out that the contexts that I've hooked so far (i.e. operation context and instance context) are not available yet at this point. First, is there a context that flows all the way through all these layers of a WCF request Second, I cannot find any good documentation on what the life cycle of a request looks. If I could find that I would probably be able to figure the rest out on my own. TIA, Drew I think the disconnect we're having is that it's not just one specific area of the requ ...Show All
SQL Server Slow Cube Performance in Excel
Hi all, I have an Analysis Services 2005 cube that I am linking to in Excel 2003 via a pivot table. The cube is based on a single fact table with around 6 million rows and 7 measures. I have 5 dimensions, none of which have more than around 200 rows. I have set up aggregation and am using MOLAP. My problem is that querying the cube in Excel takes around one minute, whilst performing the same query in the cube browser in BI studio is instant. I have captured the MDX for each of these in Profiler. The scripts are below. BI Studio SELECT NON EMPTY [{59956A97-57AB-4CAF-8A5B-E7753FDA221C}Pivot16Axis0Set0] DIMENSION PROPERTIES MEMBER_NAME, PARENT_UNIQUE_NAME ON COLUMNS, NON EMPTY [{59956A97-57AB-4CAF-8A5B-E7753FDA221C}Pivot16Axis ...Show All
Visual Basic How to store a password?
Hi, I'm currently creating a .Net (windows application) in Visual Basic. In order to sign up a new user I'll ask for a password. But how should I save this (store it for the next logon) password I do have a mdb database where I could create a table to hold the passwords, but how is this solved if no database is to be used Is the password string saved to a standard txt.file If so, I guess some form of securing the string is done. Please respond with other possible solutions for storing a user password. In the app I developed, I stored the user name into their machiens registry, so the last user name will be read from there and prepopulated. I think you can achieve the same goal with password. Thi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Dream Build Play - partner in crime
I'm still hard at work on a new game I'm working on, but it's more for fun than anything I would submit for a contest. But I really want to enter the dream, build, play contest too, I just don't think I'll have the time to do it all on my own. Does anyone out there want to partner up I'm no programming guru, but I've got a few skillz. I've been messing with XNA since beta 1, I got one (and a half) xna game(s) under my belt, and I'd say my biggest assets are creativity, thinking outside the box, analytical problem solving, writing, story, plot, characters, and high fives (not necessarily in that order) ...only reply if you plan on winning! Jim Pe ...Show All
Smart Device Development How to retrieve SMS content??
I would like to retrieve an incoming SMS content to a textbox., but i don't know how to retrieve the SMS content.... Any one can give me your hand Thanks !!! I've never tried it but take a look at this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/T_Microsoft_WindowsMobile_PocketOutlook_SmsAccount.asp http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=408382&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Games Article in XBOX Magazine.
Congrats to the teams who built iFactor, Eternity's Child, Racing Game, Wildboarders, and Last Alarm : The A.R.G.U.S Complex. All these games have write-ups with screenshots in the lates copy of "Official XBOX Magazine". (Just got it in the mail yesterday) Also in the magazine, details on the next DBP contest. They list the prizes and they are very nice I must say! David Weller - MSFT wrote: (And yeah, the DBP prizes ROCK ) Could you pleeeease stop teasing ...Show All
SQL Server KPI that compares the growth over years
Hi there, I'm new to SSAS and MDX. Creating my first dimensions and cubes went fairly fine. But now I hang on KPI. I'm trying to create a KPI which shows the growth of bookings comparing one year to the previous year. I want to set a fiterexpression for the time-dimension (e.g. YearString equals 1998). If a filter is set, it should show the bookings for that year ([Measures].[Bookings]) as value and the bookings of the previous year as goal. My problem is, that I cannot access the selected YearString, to get the bookings of the previous year. I tried the function parallelPeriod() and also a self-created Calculation, but it seems that [dimension time].[hierachy].CurrentMember is always [dimension time].[hierachy].[(All)]. My data structure ...Show All
