JiltedCitizen's Q&A profile
Smart Device Development How to use PlaySound API to play sound from a Resource?
Hi. I'm developing a Smartphone app using VB.Net 2005 and the Compact Framework v2. I want to play a sound that is in a resource of my EXE, using the PlaySound API. Declare Function PlaySound Lib "coredll.dll" ( ByVal pszSound As String , ByVal hMod As IntPtr, ByVal fdwSound As Integer ) As Integer To do so, according to the PlaySound documentation, the second parameter of the API - hMod - needs to be the "Handle to the executable file that contains the resource to be loaded." But I can't find a way to get the handle of my EXE. Any help is appreciated. Tony Ilya, If you take the time to fully read the bug report (feedback) you'll see that... ...Show All
SQL Server AS2005 Member Properties - MDX Query
Hi, I am having a bit of a problem with retreiving member properties from our AS2005 cube. I'm using MDX query's in a VBA Excel app via ADO (not ADOMD). I've been prototyping the queries in the SQL Server Management Studio. I currently have the following query: WITH MEMBER [Measures].[Portfolio] AS '[Trade].[Trade By Source System].CurrentMember.Properties("Portfolio")' SELECT NON EMPTY { [Measures].[Portfolio], [Measures].[CR 01 Net Skw Adj USD], [Measures].[JTD 01 USD] } ON COLUMNS , NonEmpty ( Exists ({[Trade].[Trade By Source System].[Trade Id]. MEMBERS },[Trade].[Trade By Source System].[Source System].&[Calypso])) ON ROWS FROM [GCD] WHERE ([Close Date].[Close Date].[D ...Show All
Visual C# Docking problem
Hi, I've got a mdi form with a toolstrippanel(+toolstrip) left and one on the right. I've also got a panel between the toolstrips. I want it to dock(fill) it, but when I do this, the panel is filled also behind the toolstrippanel instead of only between the toolstrips. Anybody how to solve this The containers of the toolstrips (any panel or whatever) should have the same z-index with the panel you want to be displayed in between. May be you are setting the dock property of the wrong containers. First select the toolstripcontainers dock property to right and left then insert a new panel on the form. After that if you set the dock (fill) property of the panel it should be in between the toolstrip con ...Show All
Visual Studio Express Editions How To Convert .doc files to .PDF,.XLS,.DOC,.ppt USING ASP.NET??
How To Convert .doc files to .PDF,.XLS,.DOC,.ppt USING ASP.NET plz tell me urgently bcaz i have no idea abt it...which library shoul i include plz any one of u have a code plz Suggest Me a way to do it...plz write ur COmments to Ruchits@hotmail.com Hi, Your thread would be more appropriate in asp.net forum . Thank you. ...Show All
Visual Studio Team System TF82001: MS Project can't connect to Team Foundation Server
I have a weird issue. If I right click on a work item and click "open selection in MS Project" the selected work item appears in MS Project. BUT, if I save this file and then open it again I get the error: "TF82001: Cannot connect to the Team Foundation server. Please contact your server administrator." I'm going to reinstall the TFS client again to see if that resolves the issue. Jason, do you have the PIA for MS Project 2003 installed. This is required for the adding to function. If you don’t have it you can do the following steps to install the PIA. From Control Panel Go to Add/Remove Programs Select Microsoft Office Project 2003 Choose Change &nbs ...Show All
Visual C# Throw Exception gets unhandled error
I am creating a multi-layered application using dlls' and want to throw any exception that occurs (and also create my own exceptions to throw) back to the originating code. When I try this though I get an error that the exception is unhandled. I am trying to handle it by just throwing it. This occurs at the first throw which is in class a catch clause. The following dll deals with database access. The code snippet is : class a{ public object ExecuteScalar( QueryBuilder QB){ object res = "" ; try { string sql = BuildSQL(QB); // connect to the database and run the query SqlCommand cmd = new SqlCommand (sql, DBConnections .SQLConn); DBConnections .SQLConn.Open(); res = cmd.ExecuteS ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Selling Games on Xbox Live Arcade
Hello, I am currently putting a team together to create new Xbox Live Arcade games. They will be using the XNA development tool and the projects will be financed by myself. How long will it be untill Indy developers can sell their games online in order to re-coup some of the money and produce additional games Any help is appreciated. Regards Ian sarge mat wrote: Well first you need to make the game and talk to Microsoft about developing it for Xbox live arcade. That's a fairly steep first step. I think more clear information on how indie developers can get onto Xbox Live Arcade is definitely in order. I can't help but feel Microsoft is being purposefully tight lipped in this regard because they'd like people to hope for th ...Show All
SQL Server SSIS Access import to SQL Server 2005
Hi, I have created a SSIS dtsx package file on my file system that I want to manipulate in .NET The package gets an access DB file and the a Preparation SQL Task creates the necessary sql statements for the data flow task. The data flow maps the tables from the source to the destination and then if you execute the package, it copies the Access DB into SQL Server. My problem is, I want to manipulate this package in code, so that I can change the path to the source Access DB and then re execute the Preparation SQL Task so it recreates the new SQL statements, and then I want to update the data flow so that I it uses the new SQL and creates the necessary tables. How is this possible in .NET I have looked everywhere and have found some topics ...Show All
Software Development for Windows Vista How to creat a filter with multiple inputs?
Hi, I am trying to create a directshow filter which has 2 input pins and 1 output pin . I have added the pin details to the array of AMOVIESETUP_PIN's, and I have changed the umber of pins in the AMOVIESETUP_FILTER structure. Override the GetPinCount,GetPin. class CAudioSwichInPlaceFilter : public CTransInPlaceFilter ,public ISpecifyPropertyPages ,public IAudioSwControler { public: CAudioSwichInPlaceFilter(TCHAR *tszName, LPUNKNOWN punk, HRESULT *phr); virtual ~CAudioSwichInPlaceFilter(); public: DECLARE_IUNKNOWN; STDMETHODIMP NonDelegatingQueryInterface(REFIID riid, void **ppv); static ...Show All
Visual Studio Tools for Office How to get Outlook mail body text using active window search in VB2005 express
Hi, I am struggling to find out how to do this: How to get open/active Outlook mail body text into string using active window search(using the win32 api) in VB2005 express. Has anyone seen or coded this kind of thing before Cheers Kim Why not use the Outlook object model Application.ActiveInspector.CurrentItem.Body Please note that this is a forum for Visual Studio Tools for Office, not VB2005 Express. Also note the resources on the main forum listing where to go for Outlook programming questions. ...Show All
Visual Studio 2008 (Pre-release) Equivalent to Ent Services "Transaction Supported"
The documentation states that there is no direct equivalent to the "Transaction Supported" feature of Enterprise Services. It recommends that you adopt the behavior of "Transaction Required" instead. However, I still want to implement (or simulate) the "Transaction Supported" behavior for efficiency. Specifically, there are many methods (that don't do any writes) that I want to be scoped in a transaction if one is flowed from the client (caller). But I don't want it to create a new one if no transaction is flowed (for efficiency). Can "Transaction Supported" be simulated by utilizing the information in the OperationContext.Current.IncomingMessageProperties object How Thanks in advance... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprite Doesn't Animate
Alrighty, here we go again with another problem. I used to use a simple sprite sheet, but in recent days I have found I need to add some more functionality. My previous spritesheet class would load a sheet which had all frames have the same height and width. They were laid out horizontally, and the height and width were hardcoded. It worked, but I wanted to make a sprite sheet loader that could load and animate any sprite sheet, provided there was an XML document to explain where to look on the sheet. Thus, the actual frames can be anywhere on the sheet, in any order, just so long as the XML file is correct. So, I wrote that class. Now, come time to test it, the animation part of it doesn't work. Hard coding a frame to use shows that ...Show All
Windows Forms How can I draw background to image for TreeView's background.
I don't find How to draw TreeView background. How can I do thank you. This can be done by 'owner drawing' the TreeView. Some more infos can be found here: http://msdn2.microsoft.com/en-us/library/yyfab68k.aspx ...Show All
Visual Studio Team System How to record the windows opened in a webapplication
hi everyone, I am doing automation of a web application. In a scenario, after clicking a button in a webpage, a window will be opened. How to record and test that window opened in this scenario in a webtest and also in a load test in VSTS How to test the functionality of the that window please reply soon.. Thanks Ravindra Reddy Kasireddy In that case, you will need to use fiddler to record the requests and then generate a webtest. You can get it at: www.fiddlertool.com ...Show All
.NET Development Wants to create an application which run in background
Hi, I have to create a application that runs when client starts his computer for autoupdates Can anybody pls help me how should i start my application in background when user starts his machine Waiting for ur reply Thanks, Nilesh Hi, Wants to create an application which run in background for this is there any other option And one more thing if i create a windows service is it run on every platform means windows 98SE, XP.... Waiting for ur reply Thanks, Nilesh ...Show All
