Whoisit's Q&A profile
Smart Device Development CFile::SetLength() exception in Storage Card folder
In the device emulator, CFile::SetLength() throws an exception when used on files in the Storage Card shared folder. Is this a bug or is that behavior to be expected I've seen some irregularities with write file access when the file is located on the emulated storage card. It seems to be fixed (at least for me it was) in the beta of the emulator 2.0 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Trouble creating my effect object
I have the following code: CompiledEffect compiledEffect = Effect.CompileEffectFromFile("Shaders\\simple.fx", null, null, CompilerOptions.Debug | CompilerOptions.SkipOptimization, TargetPlatform.Windows); m_effect = new Effect(m_graphics.GraphicsDevice, compiledEffect.GetShaderCode(), CompilerOptions.None, null); Unfortunately, on the second line, I get an exception. Microsoft.Xna.Framework.Graphics.InvalidCallException was unhandled Message="External component has thrown an exception." Source="Microsoft.Xna.Framework" ErrorCode=-2147467259 StackTrace: at Microsoft.Xna.Framework.Graphics.Effect.CreateEffectFromCode(GraphicsDevice graphicsDevice, Int32[] effectCode, CompilerOptions options, EffectPool p ...Show All
SQL Server How to check null or '' in date field in expression and ...............
I have a column say 'ActivationDate' which is a (database timestamp [DT_DBTIMESTAMP]) which I want to replace with an expression in derived columns The condition is if 'ActivationDate' field is null or '' then 'Null' else 'ActivationDate' I am struggling to write this condition. Without condition i.e. at present it saves the value in this database '1753-01-01 00:00:00.000'. In the preview the 'ActivationDate'field does not show any thing so I recon it is either null or '' Ok, that establishes that the column is DT_DBTIMESTAMP, not a string. :) So it seems to me that the condition you listed in your first post: "The condition is if 'ActivationDate' field is null or '' then 'Nul ...Show All
Visual Basic VB6 license
Greetings everybody, I have lots of code developed under VB6, we want to sell software products, So we want to obtain a legal copy of VB6. And Yes, migration to higher versions is an option .. But it's the hardest one for now .. I have three questions regarding to this issue: 1-Is it true that when I purchase a copy of new Visual Studio versions, This license includes the license of all the older versions Example: When I purchase VS2005, Does this give me the right to sell software products developed under VB6 ! 2- There are some companies selling VB6 until now, this one is an example .. Is it legal Does MS allow this [Please if you know any good company selling VB6, give me the link to its site] 3 ...Show All
Visual Studio Express Editions Combobox databinding -- almost there!
Hi I have a table similar to this: Type Name 1 Bob 2 Claire 3 Peter Type is the primary key. On a form I have a combo box that I want the user to pick a name. The value stored though needs to be the primary key, here's my question: In access you can create combo boxes that display both columns within a combo but when an item is selected it stores the first column only. How do I replicate this using Visual Basic 2005 - how do you guys do this If I populate the combo with the primary key only, it's difficult to use since the user doesn't know which [Name] belongs to which [type]. Your help is appreciated! not sure I follow. how are you binding it did you set t ...Show All
Visual Basic Complex Processing In the Webbrowser control
I'm working on system that has a complex browser based in the WebBrowser control and I've found somepages that it cannot process in ways that I do not understand. www.vanishingpointgame.com is a page that it cannot process and that why I am using that page to test on. I have taken the most simple test case in a form. It has a designer created groupbox with a dynamically created webbrower. It navigates to www.vanishingpointgame.com . I do the following operations: I choose the box on the far left. I click on the little tab at the back of the box. Nothing happens. In contrast IE7 opens a new dedicated widow. The interesting thing about the webbrower control is that if I mini ...Show All
SQL Server Exporting Dates to Excel as date format
Hi, I'm currently having problems exporting formatted dates from reporting services 2005 to excel. Basically what I require is a way to format a date in reporting services so that it only shows the date without the time (preferably british format) and when it is exported to excel it is still formatted as a date. This is so the user can sort the data file via date, I appreciate it is easy to select the column and format the cells but i would prefer to have a 'cleaner' solution to this problem which avoids the need for users to be formatting exported reports. Originally I was formatting the dates as convert(varchar,@date,103) in the SP which converts it to a character string and excel picks this up as a character as would be expe ...Show All
Visual Studio 2008 (Pre-release) Activation of Multiple Services in IIS
I have an application (ported from a legacy Remoting app) which must host multiple services. All services use the same base address and bindings. One service - the one initially activated via self-hosting or IIS - is essentially a factory for the other services. It activates the additional services as needed based on client request, and passes activation arguments to the constructors of these classes (ie, it first constructs the service class, then passes the object instance in the ServiceHost constructor). Once started, the service will be used by any client having the same activation token. This all works fine when self-hosting and using tcp, http or named pipes, but fails miserably when hosted under IIS. The first problem has been t ...Show All
Visual Basic Use of Selected ListItems
I am not sure if this can be done, and at least done in a way where a noob can understand it. In my current VB class I am working on a project where we are supposed to call on some text in a text file and then use it to produce some results based on user selections. I am wondering if I can use a ListBox to show the choices, then by having the user click on "Submit" button call the right information. As I am learning this for the first time, and have never programmed before, I hope that you all take it easy on me. As a test to see if this works I tried the following: Public Class Form1 Private Sub Button1_Click (ByVal Sender as System.Object, ByVal e System.Event Args) Handles Button1.Click If ListBox1.Selecte ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Geneating Tangents?
Hi, I was just wondering, what is the easiest method of generating tangents for use in xna I recall there being a function in the mdx(or maybe dx C++) that could generate tangent based on a set of arbtiary vertex data. Does Xna have this If I have to manually create them, are there any C# samples for doing this Even if it's not for xna, I can always port. Thanks again, i've just finished this morning integerating your tangent code, and it works great. One thing though, i couldn't find your importer Load method, dyou remember which file it's in btw some uv combos caused your tangent gen to produce all NAN tangents. caused by a devide by zero. i fixed it by checking for the problerm ...Show All
SQL Server Bulk Insert vs. Data Flow Task (different row results using flat file source)
I'm importing a large csv file two different ways - one with Bulk Import Task and the other way with the Data Flow Task (flat file source -> OLE DB destination). With the Bulk Import Task I'm putting all the csv rows in one column. With the Data Flow Task I'm mapping each csv value to it's own column in the SQL table. I used two different flat file sources and got the following: Flat file 1: Bulk Import Task = 12,649,499 rows; Data Flow Task = 4,215,817 rows Flat file 2: Bulk Import Task = 3,403,254 rows; Data Flow Task = 1,134,359 rows Anyone have any guess as to why this is happening Data flow taks has a property to eliminate duplicates under fast table/view load option. This could eliminate dupl ...Show All
Visual C++ CFileDialog subclassing
I seem to be having lots of problems with this, are there any examples around I can get things to work how I expect under VisualC++ 6, but under 2005, I either get ignored (dlg.DoModal() returns instantly with ID_CANCEL), or it crashes with an assertion failure. Under 2005 I've tried two different ways so far (both using code in the overridden CFileDialog methods) Creating a dialog resource and using SetTemplate in the dialog constructor. This reserves the space at the bottom of the dialog, but doesn't show any of the controls, so I just get a lot of blank space. Secondly, not bothering with SetTemplate, and creating my own controls manually in OnInitDone. The controls appear and are usable, but I don't get any messages about them. I've ...Show All
.NET Development Get source code file path at runtime
I would like to get a source code file name and full path at runtime for a specific class. Say I have a type MyClass and I want to use reflection or PDB to get the source code for that class. So the method should look like: string GetSourceCodePath(Type t) when I pass typeof (MyClass) it returns C:\MyProject\MyClass.cs Thank you You can get the stack frame of the current method or any of its callers by creating an instance of the StackFrame class. However I don't think this is really what you want to do given your further comments. You can't decompile your code through the standard .NET classes. Therefore you can't do this easily at runtime. You could use something like ildasm or so ...Show All
SQL Server incorrect syntax near '\'
hi! i'm using a linked server and currently executing this query: "insert into tbl_local ( fieldname )" + "select * from openquery( server\instance_remote , 'select fieldname from db_remote .dbo. tbl_remote' )" ; when i run this on a C# program it gives me the error of 'incorrect syntax near '\''. What should i do with this please help!! Xeleste wrote: thanks for the suggestion but it still didnt work.. Moved this thread to SQL Server Data Access in the hope there are the people that can solve it! ...Show All
Visual Studio 2008 (Pre-release) Application Desktop ToolBar with WPF
Hi all, I am currently developing a "Windows Application" project. I need to create an Application Desktop ToolBar (AppBar) with WPF (using C#) without using the System API (to be more precise, without importing SHAppBarMessage API). Is It possible And, if so, how Thanks in advance, Null thank you OldDino, the AppBar in Genghis is created in managed code, but is written in .Net 2.0 and we want to use WPF Massimiliano ...Show All
