CSH100885's Q&A profile
Visual Basic [OTP] message show & hide in asp & vbscript
How i can use response.buffer & response.flush() for usin show & hide of message or any string. In vbscript, using asp. give any example [OTP] This forum is for VB.NET or later questions only. Try the ASP.NET forums for asp related questions, as posted earlier http://forums.asp.net ...Show All
Visual Studio Team System link tfsredirect.aspx to queries?
hello, i want to use the project portal to link directly to a query. is this possible i just know the possibility to link to a report: _layouts/tfsredirect.aspx IsReport=1&ReportName=pweb_kremmel_tasks would be great if this is possible. is there somewhere a "how to" document for the tfsredirect.aspx i searched for a document but i didn`t find one. greets thomas No, I'm afraid there's not way to link to a query from the web. The only thing you can use right now is reports. This is something we are looking into for future releases. Other options include, posting a TFS bound Excel spreadsheet on your website or looking at third party solutions like TeamPlain from http://www.devbiz.com Brian ...Show All
Visual C++ C++ delete[] operator with multiple arrays
I'm trying to figure out how exactly the delete[] operator works with multiple arguments. Say I have some large arrays created: double *a, *b; float *c; long long *d, *e; long w = 1024, h = 1024; a = new double[2*w*h]; b = new double[2*w*h]; c = new float[w*h]; d = new long long[w*h]; e = new long long[w*h]; When it comes time to de-allocate them, I had them all in a single delete[] statement: delete[] a, b, c, d, e; Well, this appears to only be de-allocating a and completely ignoring b, c, d, and e, still taking up large amounts of memory. In order to get them all de-allocated, I had to use 5 delete statements: delete[] a; delete[] b; delete[] c; delete[] d; delete[] e; Is this how the delete[] operator is supposed to work wi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ball Collison for pool/ collision
hi, ive been making a pool/ billards game in xna in the past weeks and i am having trouble with the collison. im currently using boundingsphere's and they work when the white ball hits but when the ball comes back at it, it stops moving. Any Help Maybe not quite what you're looking for but why calculate a bounding sphere on a ball shape anyways It's a sphere the closest it can get to another sphere or surface is it's radius. ...Show All
Visual C++ stringstream causes memory link VC++ 2005?
This simple program seems to leak LOTS of memory when compiled in VC++ 2005: int _tmain( int argc, _TCHAR* argv[]) { for ( int i = 0; i < 100000; ++i) { ::Sleep(1); std::basic_stringstream<TCHAR> str; str << _T( "Current iteration: " ) << i; } return 0; } CRT: Multi-threaded debug or Multi-threaded I compiled and ran the same piece of code in VC++ 2003 and I don't see ANY leaks! Any ideas Please help! Thanks in advance As I mentioned you will have to request such patch first through PSS so that to be considered. Other wise, it might end up being fixed in the next release or service pack. Also, it all depends on the results of the investi ...Show All
SQL Server Update SubQuery(two tables), pls advice wats wrong with the query. 1 hole day i spent still cant figure
Table A, Table B. need to update table A balance field from table b sum of amount UPDATE CUSTOMERS SET BALANCE =( SELECT SUM ( AMOUNT ) FROM PAYMENT , CUSTOMERS WHERE CUSTOMERS . ID = PAYMENT . ID GROUP BY PAYMENT . ID ) Msg 512, Level 16, State 1, Line 25 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. The statement has been terminated. Stephen: If you are trying to update multiple records in the CUSTOMERS table based on SUM (AMOUNT) in the PAYMENTS table then you might try something like: UPDATE CUSTOMERS SET BALANCE = amount_sum from customers a inner join ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to draw an arbitrary segment of triangles from a VertexBuffer?
Good Evening- I basically have a VertexBuffer containing 20 triangles, but I want to be able to just draw 2 of them at a time and then change settings (for example the World matrix). I don't see how this is possible in Managed DirectX... for example if I use DrawPrimitives(), you can specify an offset to start rendering but it will continue rendering until the end of the buffer is reached. I want to specify an offset and a length... Could someone please show me how or point me in the direction of a different method of storing/drawing triangles that would Thanks, Philski http://msdn.microsoft.com/library/ url=/library/en-us/directx9_m/directx/ref/ns/microsoft.directx.direct3d/c/device/m/drawprimitives.asp ...Show All
Visual C# one simple question on compiling the program.cs
When I want to compile the following program code ,error happens: using System; using System.Collections.Generic; using System.Windows.Forms; namespace Application { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } } error: Error 1 The type or namespace name 'EnableVisualStyles' does not exist in the namespace 'Application' (are you missing an assembly reference ) Error 2 The type or namespace name 'SetCompatibleTextRenderingDefault' does not exist in the namesp ...Show All
Visual C++ Multiple Class instances and memory
Hi, I have a question about Classes. We define a Class with attributes and methods, then, when we create multiple instances of a Class, attributes are repeated in memory of course, but what about methods, are they repeated too, or are they only in memory once . I think that methods are not repeated, I suppose that they 'install' in memory as functions (once) and depending which Class instance call them simply we use diferent parameters. But I'd like to be more sure. Thanks. Marius Bancila wrote: No, the code for a method is not copied multiple times in memory. Method are nothing else than normal functions. And this is true of derived classes which implement interf ...Show All
Visual Studio Express Editions Help with Windows Media Player 10 component
Hi, I'm needing to put a logo when the player is closed, something similar to the behaviour of the old WMP6.4 version which shoed the Windows Media Player logo. The .baseURL property does nothing and there should be another command for this. Thanks. The problem of loading a JPG image is that I have to send the Play command to the player to show it. But when loading the form, this wont work, only on the Form_Activate event, in which I have to "play" the image for around 1 second, otherwise it won't show up. This results in the user seeing the player control playing during a small interval on startup, which is very nasty. For now I simply put a PictureBox in front of the player and hide it when loa ...Show All
SharePoint Products and Technologies how to quote content
I am new to moss. I encounter a problem: Say i have an Calendar in my site. And I want to quote the Calendar in another page. How to do Any suggestion Thanks sondergarrd. I add it successfully... And i want to ask another question. can i quote the calendar in a different site I try to add it in the parent site, but can't find the calendar webpart which i created in sub site... ...Show All
SQL Server Time dimension limits kills performance
Hi, I have a cube with a fiscal time dimension like that: Year = 2005, 2006, 2007 Quarter = 20051, 20052, 20053 Then months and weeks using format like 200501, 200502 etc. Cube is partitioned by quarters, 12 partitions in total. Now what puzzles me is this: - When I query this from an Excel pivot and set no limit on the time dimension so I get something like total 2005, 2006 by quarters and 2007 by weeks, the query processes in a few miliseconds - When I query this from an Excel pivot and exclude something from the time dimension so I would get only 2006 and 2007, the query now takes up to 30 minutes. The code generated by Excel is much different between the 2 situations however, since the cube is partitioned by ...Show All
Visual C# Saving User Settings on Version Update
Hi All! The new feature using which we can save user settings in the Settings.settings file is great and very easy to use. What I want to ask is on the assembly version update it null and voids the previous version user settings, my requirement is to use those settings in the next version as well. Like I take DBName, uid, pwd from the user on the first version and save it into the user settings (they need to be in the users settings as they change for each user), when I through an update on them, I'd like to retain those user settings, but they are unsaved and those settings are blank. How can I recover them in c#, so that I can continue to use them in the next version as well I need this urgently to solve my problem, hope you peo ...Show All
Visual C++ CaseSensitive Keyboard Hook
Hi, i made a programm. it displays the entered keys in a console window. But all letters are in "caps lock"! How can i prevent that eg. if i enter: aBcDeFg it displays: ABCDEFG [code] __declspec(dllexport) LRESULT CALLBACK KeyEvent (int nCode,WPARAM wParam,LPARAM lParam) { if ((nCode == HC_ACTION) && ((wParam == WM_SYSKEYDOWN) || (wParam == WM_KEYDOWN))) { KBDLLHOOKSTRUCT hooked = *((KBDLLHOOKSTRUCT*)lParam); DWORD dwMsg = 1; dwMsg += hooked.scanCode << 16; dwMsg += hooked.flags << 24; char key[16]; GetKeyNameText(dwMsg,key,15); std::cout << key; } return CallNextHookEx(hKeyHook,nCode,wParam,lParam); } [/code] Simple S ...Show All
Visual Studio 2008 (Pre-release) proper way to use BuildWindowCore params?
In the following code, I'm attempting to make my own .NET 2.0 form act as a FrameworkElement. I'm having trouble in the BuildWindowCore function. As I understand it, I'm supposed to take my existing form and make it a child of the input HWND. I don't know how to take the hwndParent.Handle and turn that into a System.Windows.Forms. Control. I've stepped through the code a number of times trying different things includeing WINAPI SetParent all with no luck. It's too bad Wrapper is null. That would at least give me an idea as to what type of object it is. public class AppWindow : HwndHost { private AppForm _appForm; // AppForm inherits from System.Windows.Forms.Form public AppWindow( AppForm appForm) ...Show All
