AlexBB's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Is it worth it to learn .Net for XNA?
As a developer I have put most of my efforts into learning Suns Java libs. However, I am really looking foward to coding for XNA, my only consern is: Is it worth my time learning the .Net libs, specifically GDI+, Or will XNA use different libs for graphical output. Will there be a way to draw primitives I can't find how to draw primitives easily in .Net. I really like using Primitives for gaming becuase they save memory, and I can't draw well. Speaking of that(and getting way! off topic), has anyone heard of Kenta Cho He makes all of his games using simple primitives, although in OpenGL, and XNA is DirectX like. Anyway, my point is. Will XNA have a more game centric library than .NET and will it have prebuilt common classes like Sprite or ...Show All
.NET Development winForm User Control and JavaScript
Hi, I have created a simple user control( as win dll in .net, referred to 'Embedding WinForm controls in IE'). Now my problem is that I want to handle some events for my control on the wep page, for e.g. Let say my contol has a button in it, and I need to write the click event ( of the button) code on the client page itself ( Senario: Creating a so called ActiveX using .net and want to expose event handling to the users of the control) Now I used delegates to define event handling in my control. When I use this control in my Win Apps ( as a client) i am able to register the event and handle it. BUT, the problem comes when I am trying to embed it in my web page(a simple html file) using <Object> tag ( as we use to do it for ActiveX ea ...Show All
Software Development for Windows Vista Installation Directory Write Access Issue
Hi, I am a developer for a commercial program and we are working on a Vista-aware release of our product. It is a large install (6 CDs) abd is currently all put in Program Files under XP. The Microsoft suggestion of putting program executables and static data in Program Files and all other stuff in the appropriate users/... directory is not practical for our application. I have never liked that model. It makes things complex both for users and programmers. It is a road that we simply will not follow. The problem, of course, is that users don't have write access to the Program Files folder unless they explicitly and manually set it. We could require the users to do that but this is not a happy solution and we probably will not do that. W ...Show All
Software Development for Windows Vista Adding services from an activity
Is it possible to add a service from an activity . Is there any way to access the runtime I would like to develop an activity so that all the logic is encapsulated in itself (I don't want to ask users to add services in the host). So it would be nice to have an activity that can add the services it needs dynamically (if they were not previouslly added) Any idea Jon is correct it cannot be done, and even if it could be done, I realized it probably would not be very useful because by the time the activity was up it might already be "too late" for it. One thing I would recommend though would be to ensure that your activities check in the Initialize() that the required services are available ...Show All
SQL Server Why doesn't SMO script out the CASCADE option on GRANT and DENY statements
I am using SMO to script out the stored procs and funtions in our SQL Server 2005 database for comparisions against SourceSafe to ensure the Source repository is up to date. However I have run into a problem. It seesm SMO doesn't include the CASCADE option on the GRANT AND DENY statements at the end of the objects. Is there something I"m missing or is this a bug. I do not have SP1 installed on our box, could this be the reason Please help. Sourcesafe: DENY EXECUTE ON [dbo] . [uspBCPTextFiles] TO [public] CASCADE GO SMO: DENY EXECUTE ON [dbo] . [uspBCPTextFiles] TO [public] GO ...Show All
Visual Studio Report Viewer returns Object reference not set to an instance of an object.
Hi, I'm having a problem using the report viewer with a remote report on a server. Whenever I try to load a report in the report viewer control or from the Report Manager website I get a " Object reference not set to an instance of an object" error where the report should be. The parameter bar shows up with the right parameters, but no report. If I use the ReportExecution Web service I can get the report to output to pdf or whatever format I want and save it, but those same reports won't display in the reportviewer. This happens with any report even if all the report contains is a static textbox. I can use the reporting serivces on my development machine and everything works fine, I just can't get the reports from the other se ...Show All
Visual Studio 2008 (Pre-release) How is AutoComplete in TextBox mounted?
The sample is not found, and how to mount is not understood though it is expected that TextCompositionManager and TextComposition are used. ...Show All
Visual Basic Generating text around an arc in an image file
I am new to this, so please, if I am in the wrong place, tell me the proper place for this question. I am trying to generate a graphic programmatically with dynamic text. The graphic should display text written around a circle, as if on an arc, and the text itself should be angled so that if you underlined each letter, the underline is perpendicular to the center of the circle. I had code that did this in VB6, using a LOGFONT and it works really well. However, the VB6 code printed directly to a printer. I am upgrading the code to VB.NET 2005, and because of outside constraints, I need to output directly to an image file which will be printed later. I had problems using LOGFONT, namely that it did not "tilt" any of the ch ...Show All
Visual Studio 2008 (Pre-release) Configuring Elementary Security
I'm trying to just get a service working from outside a domain and am getting nothing but headaches trying to get it going. Here's my configuration for now: < bindings > < wsDualHttpBinding > < binding name = " wsDualHttpBinding " > < security mode = " Message "/ > </ wsDualHttpBinding > </ bindings > This works locally, but I get an error on the client saying it couldn't work out the SOAP security. As I understand it, WCF uses Windows credentials by default for wsDualHttpBinding and this would make sense because it works locally, but not on the other computer. To get around this, I tri ...Show All
SQL Server TextBox break layaout in excel
Hello, I have textBox in header of report, and it's expression - based (= "test text"), when I export in excel I get at the first time report that looks normal. But at the second - I get report with broken layout (I can press CTRL + F5 and all will OK) Or I can set TextBox static(not based expression) and all will OK too Could you please help me to solve this problem I'd like to have a dynamic textBox and normal layout. Thanks ...Show All
Visual Studio 2008 (Pre-release) Two questions about IQueryable<T> - Expression{get;} and CS0310
Dear group - I am prototyping a Linq provider for Mysql and have some questions. 1) The first point of entry on my IQueryable implementation is "Expression {get; }". I saw in Hartmut Maennel 's Linq provider for RDF that he returns a ConstExpression. I copied that, and it works. But what is the meaning of that Is that documented anywhere 2). My second question is more of a basic question about generics. I have my generic class, MySqlProvider<T>, and it calls into other generic classes. I get error CS0310 because the outer class can be anything, and one of the inner generic classes calls 'new()'. Code snippet below. The question - how can I cast for a 'newable' class to prevent CS0310 Thanks, George public class MysqlLinqP ...Show All
Visual C# Accessing GIF from Embedded Resource
Hi all, I am getting a NULL exception from the following code.... Assembly asm = Assembly.GetExecutingAssembly(); Bitmap backgroundImage = new Bitmap(asm.GetManifestResourceStream("bg.gif")); Is it because I am putting a GIF into a Bitmap If so, how do I extract a GIF from an embedded resource Tryst embedded resources as I said AFAIK, when you embed it, it starts with the namespace.filename.ext even if your filename is "test.bmp", it will embed it as namespace.test.bmp. At least you have it sorted now :-) ...Show All
Windows Forms Form launched with ShowDialog() cannot close itself with "this.Close()"
If I create a new windows application using MSVS 2005, a blank form called "Form1" is created. I can add a new Form to the project, and by default this will be named "Form2". If I add a button to "Form1" and add "Form2 form2 = new Form2(); form2.ShowDialog();" to the button click handler, then clicking on this button launches a "Form2" instance in a modal manner. If I add a button to "Form2", and add "this.Close();" to the button click handler, then clicking on the button will close "Form2". So, very quickly I can have an application in which a button on "Form1" can launch a "Form2" in a modal state, and "Form2" has a button that c ...Show All
Software Development for Windows Vista advatage of Windows Workflow Foundation
what is advatage of Windows Workflow Foundation and when we should use it Paul's article is good, and I would also recommend that you get hold of one of the WF books out there after you've read some of these online articles - Essential WF (Dharma Shukla/Bob Schmidt) is good but not for beginners ...Show All
SQL Server Using Configurations Class within Script Task
How do I access the configurations collection of a package within a Script Task component Is there any sample code anywhere Thanks! Not possible from what I can see. You are no longer allowed to access package objects as you may have done in DTS previously. I cannot see why the configurations would be of use anyway, they are essentially done with by the time any tasks execute. ...Show All
