James Miles's Q&A profile
Windows Forms Tooltip not showing in custom control after click
I created some custom controls, every one with its own tooltip. The tooltip shows correctly if I don't click on the controls but after the first click it shows no more. Do you know why This is the code I use: this->myToolTip->InitialDelay=10; this->myToolTip->ReshowDelay=10; this->myToolTip->ShowAlways=true; this->myToolTip->SetToolTip(this,"Click to toggle connection of the EEG signal to this parameter"); I only add the tooltip and set caption. ...Show All
SQL Server Measure Expression in Query ?
Hi - I want to do a query like this, in management studio, but it is giving me an error message. select sum ({ TopCount ([Asset].[Asset].[Asset]. members ,5,([Portfolio].[Portfolio].&[DD2342342],[Measures].[Value Base]))}, [Measures].[Portfolio Weighting]) on columns from [MIQB Daily] I tried different strto.. functions but didn't find any proper solution. The Axis0 function expects a tuple set expression for the argument. A string or numeric expression was used. Thanks Noordin Thanks Chris, Actually I was playing with Excel 2007 cube... formulas ... may be I need to do some work around. do you have an idea of #IND value, what does it mean, is it infinity ...Show All
Software Development for Windows Vista How to prevent Explorer to open the "Prepare this disc" dialog
Hello, I'm working on a tool to mount arbitrary sessions on a multi session disc. It works fine on W2k and XP. On Vista, it also works fine, as long I issue my mount commands via a command line application. Using a shell extension on Vista with a recorder device, quite frequently causes Explorer to open the "Prepare this disc" dialog. Clicking Next and confirming disc preparation usually damages the media. Question: How to avoid Explorer from opening this dialog Hello strix, Essentially, you want to disable 'media change notification' so that shell doesn't (temporarily!) recieve notification that the state of the drive has changed. There are a few ways to do this... Probably the simplest i ...Show All
Visual Studio Team System CTP5 - TF10175 error adding to source control while loading schema
Hi Started with a new SQL 2005 Wizard project with an existing database. Getting a lot of errors but this is the one that worries me the most: "TF10175: The team project folder $/FHI_2.SYSVAK does not exist. Contact your Team Foundation Server administrator and ask that it be created." etc Correct in the sence that this project doesn't exist but this is by design . Our team project folder is named FHI.SYSVAK. The first time I did this I got the same error except from the "missing" project folder beeing $/FHI_1.SYSVAK. Have to do an inspect of our code repository me thinks :-| TFS checked it in in the right place though Brumlemann Solution Architect Update: Checked the project file and it contained hard ...Show All
Visual C# How to clone List<IBaseClass> that contains derived classes?
If I have the following object model: interface IBaseClass { object Clone(); } interface IDerivedA : IBaseClass { object Clone(); } interface IDerivedB : IDerivedA { object Clone(); } interface IDerivedC : IDerivedB { object Clone(); } For each interface there is a concrete class that implements the interface. For example: class BaseClass : IBaseClass { public object Clone() { ....} } class DerivedA : BaseClass, IDerivedA { public object Clone() { ....} } ETC..... class Container { List<IBaseClass> _items; // Copy c'tor public Container (Container containerIn) { this._items = new List<IBaseClass>(); IBaseClass itemClone; foreach (IBaseClass bc in containerIn._items) { ...Show All
Game Technologies: DirectX, XNA, XACT, etc. " game.Run();" contains Invalid Confuguration Options
I have a problem when i start a new project on XNA(and without doing anything to it) i press F5 and compile it(debug) and it says that this " game.Run();" contains Invalid Confuguration Options and is highlighted. I need help fast. ...Show All
Visual C++ Multi-dimension arrays in VC++ 2005 for n00bs
Okay, a little background: I'm an aerospace engineer, not a programmer, but I'm experienced in C, and I'm using VS2005 to make some simple-ish tools for our group. I'm trying to declare a multi-dimensional array in VC++ through the 'standard' method... double test[5][5]; ...and then access it in the 'standard' way... test[0] = something I'm putting in there.; ...but it's not working. When I debug, the Watch says that test is a double[][] of length 5. So far, so good, but when I expand it, instead of the 'standard' syntax, it comes up like this.... test[0,1] Length 0 double[] test[0,2] Length 0 double[] ...and so on. I've dug through our copy of MSDN, and online and there ...Show All
.NET Development SQLBULKCOPY DATE FORMAT PROBLEM
Hi guys, I have come across an infuriating problem. I have an excel spreadsheet with formatted data. I also have a SQL Server table with 17 columns all nvarchar(255). I have been trying to use SQLBULKCOPY to import the data from the worksheet to the table. This worked with only limited success as it seems to ignore certain values and insert nulls. I converted my excel spreadsheet to a CSV file and tried the same. Now it imports most of the values but seems to be very VERY odd in its handling of what it perceives to be data in date format. In certain cases it ignores the value altogether and inserts NULL, in others it inserts the value but formats it into a datetime format instead. I don't want it to do this, I simply want it to save ...Show All
Visual Studio Express Editions Problem with Tabcontrol
Hello everybody! I ran into a problem using the .NET 2.0 Tabcontrol: I need to have the single tabs left-aligned instead of top-aligned, but when I set the alignment property in the visual designer to "left", something goes wrong with the control. Eg. the text displayed on the tab registers disappears and the whole control seems to look a little strange (can't point the finger on something specific though...). Without the text on the registers the thing becomes somewhat useless. So, is there a way to fix it or any kind of work-around Thanks a lot, Tobias Koerner Here's a C# port, unfortunately I have the same problems in the Designer. Perhaps OnHandleCreated() is not getting calle ...Show All
.NET Development how can i load a module dynamically
I want to know how can i load a module dynamically. System.Reflection.Assembly.load module takes 2 parameters ,out of which one we need to pass byte[]. we can not pass null,how to solve this issue Regards, Feroz There are several overloads for Assembly.Load . The simplest one is Assembly.Load(string) that you can use to load an assembly if you know the long form of its name. Not sure which one you are referring to. ...Show All
Visual Basic Why does the Graphics Path shape not display correctly?
Hi pals, Yesterday i posted a very long thread on my drawing a Graphics shape. Let me be brief here: First of all, The path is filled and drawn with the right and bottom sides clipped. I don't know how to get around this bug. How can I draw it correctly so that the it fills and draws a border nicely without any clipping. Note: I am using a graphics path object here, not a rectangle( where i could use the inflate method) Secondly, after drawing the shape and assigning as a region to a control, the result is so crappy: jagged pixeled lines. When i don't do any region assignment, the drawn lines are smooth and nice(even though the right-bottom clipping still occurs). Please I really need your help on this. I have dived into GDI ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Text looks blury and hard to read.
I need to place lots of text in different places in world space. I have tried a few things but they all look rubbish. Worst is using the 3D Text which puts the text on a mesh. I then tried to use 2D text (using LPD3DXFONT) to improve things, which looks great if you place it in screenspace but as soon as I flag the sprite I am drawing it on with D3DXSPRITE_OBJECTSPACE the text goes all blury. I also tried doing something similar to what a previous person in the forum asked how to do (i.e drawing to a texture then placeing the texture on a primative) but that also looks blury. Any ideas guys PS I am working in unmanaged DirectX9 with C++, but if you know in managed/c# its easy to translate (usally if we have the functions in unmanaged) ...Show All
SQL Server TSQL Store Procedure is really COMPILED?
Hi: I have thought that TSQL Store Procedure IS COMPILED, but I'm proving Store Procedure SQLCLR (asembly in SQL SERVER 2005) , and now I think that TSQL is only a script TSQL stored in the DB.... I'm wrong Thanks for your comments! Yes, stored procedures are compiled. Compilation is an operation where code is compiled / translated to a more machine related code. Nevertheless SQL Server stored the procedure text in the DB. The compiled results will acts as a plan how to execute the query / stored procedure. Have a look here for more information http://www.microsoft.com/technet/prodtechnol/sql/2005/recomp.mspx HTH, Jens K. Suessmeyer. ---- http://www.sqlserver2005.de ---- ...Show All
Visual C++ Adding objects to ArrayList?
Hi, I want to use an ArrayList to store objects (see below) ArrayList *arrylst = new ArrayList(); MyClass1 *class1 = new MyClass1(); arrylst->Add(class1); However, it gives me an error saying it can’t convert class1 to type object. My question is how can I get it to work Thanks for your help! No, use std::vector, or one of the other STL containers. #include <vector> std::vector<MyClass1*> v; v.push_back(class1); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xna and xbox 360
hello for all, i have a little question here, i'm making a game for windows with the xna framework 1.0 but in the future i will want to port it to xbox 360, with the xna framework i will can sell the game or i need another framework or sdk to make a xbox 360 comercial game i 'm a new indie game programming and i need help with this topic, i want to know if there will be another version of the xna or another sdk to make comercial xbox 360 games and the cost of this software. Thank you in advance.. To sell the game on the 360, you will need to have the professional version of XNA and be certified by Microsoft. It is not clear how you go about doing this as an indie at present. XNA express will only al ...Show All
