mfsumption's Q&A profile
Visual Basic What's Wrong With This Picture(box)?
I know there is a simple solution to this I am overlooking... I just can't find it. Help would be appreciated... I am making a program which lets you click on a listbox and have the thumb of that clicked file name come up in a picture box . It works well. However, sometimes I need to have a quick look at that image full size without having to resort to pulling out the hard copy... So I created a bigger viewer which would pop up on a click so I could see that thumb image full size. No other bells and whistles, just open close. However, if I open the big viewer again without changing the initial selected thumb, when the big viewer opens again, the picture box is blank. I've tried lots of ways to get it to reload the same image it had befo ...Show All
Windows Forms Tab Based MDI
Hi All The application I'm working on currently has multiple forms/instances of the same form open at once. Rather then have the user minimise and maximise each window each time they want to look at it, I want to create some kind of Tab-Based MDI, similar to the one used in Visual Studio 05 and applications like Dreamweaver etc. How do I go about creating something like this Thanks! I personally just use the DevExpress component library for it, but if you don't want to spend the money, take a look at this: http://www.codeproject.com/vb/net/DockPanelSkin.asp ...Show All
SQL Server Strange SQL Server 2005 SP Issue
We have a stored proc that accepts a date and uses that date in a filter. This procedure worked fine for a couple of weeks then started hanging. Basically, this date parameter is used in a where clause. Our workaround: when we declare a new variable, set it equal to the parameter, then use the declared variable - that fixes it. Take away the declared variable and use the parameter instead and the proc chokes. But the paremeter and the declare variable are both datetime typed. Weird. We are worried (partly because it worked without hanging for a while) that we are experiencing a larger issue. We are reporting off a database we denormalize and populate nightly with transactional data. A poor man's warehouse if you will, staging the da ...Show All
Smart Device Development ATL project for WM2005
Greetings, I try to move ATL project (VS2005) from WM2003 to WM2005. Compiler gives out following errors: C: \Program Files \Microsoft Visual Studio 8 \VC \ce \atlmfc \include \atlcommem.h (71): error C2039: ' CoTaskMemSize ': is not a member of ' ` global namespace " C: \Program Files \Microsoft Visual Studio 8 \VC \ce \atlmfc \include \atlcommem.h (71): error C3861: ' CoTaskMemSize ': identifier not found I used #define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA without success There are what ideas Thanks for your answer, So When I create simple ATL exe WM2005 project without include atlCtl.h and atlWin.h, it builds ok. Including thoses files raises compilation e ...Show All
SQL Server SUm Distinct
Hi people, I love reporting services 2005 BUT have struck a major limitation! Basically I need a sum distinct function. I have various duplicate details lines and just need to sum the unique values. Anyway this is not possible and a number of people a stuck with this. Yes you can write another sql statement using DISTINCT but then how can you easily integrate that into a table with scope you can't! Anyway has anyone been able to achieve this nicely in reporting services I was thinking of calling a distinct SQL statement from an Expression in a text box on a header field and passing another text box as a parameter to get around this limitation. Is this possible Here is a link with similiar problem http://forums.microsoft.com/ ...Show All
Visual Studio Express Editions Greyscale
Can someone please show me an example of, or point me in the right direction of a good up to date tutorial on how to change a coloured image to a black and white image Thanks Graham Thanks to you both for the advice, I will take a look at both examples and let you know how I get on ( or not ) as the case maybe. Have now bookmarked Bob Powels Site Graham ...Show All
Visual Studio 2008 (Pre-release) Bug: Rendertransform doesn't always work with Frame
While the Frame Source property is a xaml page it is all fine. But when it changes to an external URI then the transformation isn't applied anymore. This bug occurs on Windows XP SP2. WinFX February CTP. Example of working: <Frame Source="Page1.xaml" NavigationUIVisibility="Visible"> <Frame.LayoutTransform> <RotateTransform Angle="10" /> </Frame.LayoutTransform> </Frame> Example of NOT working: <Frame Source="http://channel9.msdn.com" NavigationUIVisibility="Visible"> <Frame.LayoutTransform> <RotateTransform Angle="10" /> </Frame.LayoutTransform> </Frame> I reg ...Show All
SQL Server 2005 Slice
Hi, We are trying to migrate AS2000 cube to AS2005 cube. We have several AS2000 cubes using partition slices (eg. Policy_Type_Id = 4) and filters (Month_end_Date_Id = 20060630). Here's the sql it generated in 2000: " FROM table1, table2, table3 WHERE (Month_End_Date_Id = 20060630) AND ("dbo"."Summary_Policy"."Policy_Type_Id"= )...................... The migration generated the filter but did not create the slice for the AS2005 cube. I have done some research and understand AS2005 cubes do not use Slice if they are MOLAP. However, the partitions show different result between AS2000 cubes and AS2005 cubes (it did not slice the partition). If I manually added it to the Slice property in AS2005, it ...Show All
Smart Device Development Help!Cannot deploy project in windows mobile 5.0
Hi, i'm a newbie of winCE development. I have a problem when deploying applications onto the windows mobile 5.0 smartphone simulator. It takes a long time of deploying and then an error message occured: Error 1 Deployment and/or registration failed with error: 0x8973190e. Error writing file '\Windows\NETCFv2.wm.ARMV4I.cab'. Error 0x80070020: 另一 程序正在使用此文件, 程 法 。 Device Connectivity Component The chinese words mean: "another process is using the file, it can't be accessed". I don't know if i'm post on the right board. Anybody please help me ! Best regards, Can you please provide following information 1. Are you facing this problem only with Smartphone emulator 5.0 or other also 2. Can you please try clearing this em ...Show All
Visual C++ Excel Automation for Bubble Charts in C++
Excel automation in C++ does not do the XlChartType bubble charts. It can do line, bars, pie, radar, donuts, surface etc. Is there a way to trick C++ to do bubble charts using excel automation technology You will get better help in an Excel newsgroup listed in Office Solutions Development . ...Show All
SQL Server Group by on a concatenate field
Select TOP 100 CONVERT(VarChar(10),Service_Prefix)+ '' + CONVERT(VarChar(10),Service_Code) as CODE, Date_Issued, sum(Amount) from dbo.Enterprise_Credits_Import_90_days where CONVERT(VarChar(10),Service_Prefix)+ '' + CONVERT(VarChar(10),Service_Code) <> ' 0' and Service_Prefix like 'F' Group by How can I group by the field that I selected as CODE Rob Farley wrote: Or if you're interested in readability you could make it: select top 100 code, date_issued, sum(amount) from (select CONVERT(VarChar(10),Service_Prefix)+ '' + CONVERT(VarChar(10),Service_Code) as CODE, Date_Issued, Amount, Service_Prefix from dbo.Enterprise_Credits_Import_90_days) c where code <> '0' and Service_Prefix ...Show All
.NET Development FileStream in Visual Studio 8
Hello everybody, Today is my very first day with Visual Studio 8, I was working on Visual Studio 6 before. I have an application that is using "fstream.h" and "ofstream" but they are not valid anymore in Visual Studio 8. Can anyone advice what have replaced these old functions or how to handle files input/output in Visual Studio 8 Thanks in advance. I replaced the old { #include "fstream.h" } by the new { #include <fstream> } but when I try to define { ofstream MyFile ; } it gives an error! Can you please provide some more details about the new fstream definition in Visual C++ 8 and how to open/read/write/close a file. Thanks in advance. ...Show All
Visual C++ Wait until driver is loaded
Hi, I have developed a simple application that uses a Digital Input/Output card. All works fine, but I've tryied to create a shortcut into start menu to make it start at Windows start. The problem is that my application starts but the card driver is not loaded. If I wait the system to start and then start the program using the shortcut it works fine. Any idea how solve this Thanks, The C++ language has no direct support for operating system drivers, thefefore you need to aks this question somewhere that people familiar with the driver can help you. Hopefully the driver has a way for you to either wait for the driver to become ready or at least test to determine if it is ready. ...Show All
Visual C# Help on creating a generic singleton class
I am on the process of creating a generic class for the singleton pattern. My implementation as follows: public class Singleton<T> where T : new() { public static T getInstance() { if (this_ == null) this_ = new T(); return this_; } private static T this_; } Sample use would be: Singleton<Logger>.getInstance().someMethodHere(); The problem with this implementation is that the target class that would be converted into a singleton must have a public constructor, which is in the first place I am preventing it. I have implemented a simliar approach in C++, however I've used a "friend" class that sould also be declared on the user class. Please advice. Thanks. (BTW, th ...Show All
.NET Development Interop Thread Leak?
Hi, I'm hoping for a few pointers for tracking down a resource leak. I developed a VB 2.0 indexing application which is using FileNet's Capture COM objects and we're occasionally seeing a fairly serious leak. It doesn't appear to happen consistently (one user has never had one and I can't seem to reproduce it in my test environment), but it does occur regularly in production. I've been using various tools to poke around in a mini-dump (w/ full memory) and I've seen a few potential problem areas, but I can't seem narrow it down any further. Using PerfMon I found that the leak appears to be in private unmanaged memory. When I open the dump in WinDbg, I get this message: This dump file has an exception of interest stored in it ...Show All
