Darren M. Bork's Q&A profile
Internet Explorer Development HTML Applications(.htas) and Cross Domain Scripting...
Hello, I am trying to debug one of my HTML Applications that stopped working all of the sudden. Let me tell you the problem. Features in my application depend on cross domain scripting. For those of you that don't know, an example of cross domain scripting is when you access data from another domain using javascript, the DOM and probably an IFRAME or FRAMESET. Well, my application used to work and now it doesn't. The example that I will provide below uses the same technique that I used in my application and I swear it worked before I upgraded from IE 5 to 6! Copy the code below to an .hta file and execute it. The application asks for an URL. Type in your favorite URL and click the 'go' button. Then, using the left button of the mouse ...Show All
Visual Studio Team System Problem with running Continuous Integration
I am going to be running CI, and I forsee some problems that are going to arise. I am going to be having approximately 26 team build projects that are going to be running on CI. If each of those are run say 3 times a day - that will leave me with almost 80 entries in the "integration build", "found in build", "resolved in build" fields. I would like to have these builds ignored, as I have a main build which will "sweep up" all of the work items and change sets. What is the best way to do this fyi, I tried to rename my build to CI but you can't overwrite one with the same name once it has built... Hi Johnny, I just finished a blog post that provides a simple filt ...Show All
Visual C++ VC2005: Auto-increment build information
How can we set-up projects with VersionInfo and/or Assembly Version information which get their VersionInfo and/or Assembly build version number incremented when a build is done in the IDE I'm left without a PC that doesn't have VS200x installed. I imaging that either VS2005 or the .NET framework installs a shell property sheet handler to display "Assembly version" in the Version tab. Can anyone else confirm this ...Show All
Visual C# Password?
Is it possible to password protect a program I love the idea of implementing hash algoritm in my password program.. but i guess the code u gave before is for C++ DO u have a VISUAL BASIC EXPRESS example THANKS ...Show All
Visual C++ How to create a simple DLL in Visual Studio 2005 which can be accessed in C# class?
I want to create a simple DLL in Visual Studio 2005. The DLL should expose a method 'ModifyWindow'. I want to access this DLL inside a C# program. I tried creating a MFC DLL project 'Modify'. The code snippets of the project are shown below: Modify.h #pragma once #ifndef __AFXWIN_H__ #error "include 'stdafx.h' before including this file for PCH" #endif #include "resource.h" // main symbols class CModifyApp : public CWinApp { public : CModifyApp(); // Overrides public : virtual BOOL InitInstance(); public : __declspec ( dllexport ) void ModifyWindow(HWND hnd); DECLARE_MESSAGE_MAP() }; Modify.cpp #include "stdafx.h" #inc ...Show All
Visual Studio Solution file in VS2005
I create a test project in VS 2005 and it put the solution in my user’s profile. It does not give me an option to copy it to a different folder, any idea why dont you copy over the project manually to the folder you wish to move it to Did you create the project initially in this user profile folder if not then you could change the default location where projects are saved by going to tools > Options > environment > Projects and Solutions and change the paths stated in here. ...Show All
Software Development for Windows Vista Writing only selected frames in AVI?
Greetings, I'm trying to pass to file writer filter only selected frames from a stream. I have written a transform-in-place filter that passes through only those frames that I need, but file writer writes the same frame several times (instead of writing it only once and waiting for the new frame to arrive). How can I invalidate frame once it has been written so that it won't be written again Thank you in advance, Murom AVI files do not have a per-frame timestamp. They only support a fixed frame rate. So you cannot pick and choose when to write a frame. If you have started at 25fps, then you must keep 25 fps. MPEG-4 files do not have this limitation; nor do stream-based container formats such as mpeg-2 PS. G ...Show All
Visual Studio Team System Data Quality testing.
I have a database project that has a handful of sql scripts written to find data quality errors in our system. Is there a way to automate the execution of these queries from a test project using unit tests that reference the .sql files in the database project I would also suggest checking out my blog to learn just how to leverage Team Edition for Database Professionals to increase quality of your database tier through database unit testing. You'll find lots of info on exactly how the database unit testing functionality can be used. http://blogs.msdn.com/sachinre Sachin Rekhi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Distributing games with XNA runtime
So what's the best way to distribute the XNA framework with a game Just point people at the framework download on the Microsoft site Include the XNA framework installer with the game I was clicking around and found in the project properties-> "Publish" -> "Application Files..." options, I can set the publish status of Microsoft.Xna.Framework.dll and Microsoft.Xna.Framework.Game.dll to "Include", which copies the dlls with the game. Is this enough to get the game running on another PC, assuming Framework 2.0 is present and DirectX is up to date Thanks! Jim Perry wrote: Why include it if you don't have to True, I don't have to, but it's one less step for the p ...Show All
Visual Basic GetChange problem
Hello. A question please. I have a dataset. I inserted a new row. Then I show the data on screen. The user does his changes. Now I'd want to insert that row in the database. I do a getchanges on a dataset but I get a rowstate=added with the data that I create in the first time, not with the changes made by the user. What happens.... Thanks... I only retrieve 1 change with the getchange. Hi, I think you would need to refresh the view of the datagrid after the user has done His / Her changes too. That is show the data on the screen again. Try putting in a line similiar to.>> DataGrid1.Refresh() as the data is written to the database 1st ( not to the screen view ), it sound ...Show All
.NET Development how to change the data type size?
i'm using microsoft access and oledb. i create a table which name "Product". Inside the "Product" table have 3 field: id, name, price. The name field i set as varchar and size is 50. But now i want to change the name field size to 100 programitically is that possible How to do that If cannot change the size then i think drop table is posible right but how to copy all the name field data to another field The ALTER TABLE syntax is like this (same as for SQL Server): ALTER TABLE testChange ALTER COLUMN col1 VARCHAR(100) I think that is the easiest way to do something simple like this. You don't need ADOX until you try to do something more complicated (more than just mani ...Show All
SQL Server Parameter not working
I am pretty new to reporting services and hope some of you experts can help. I created a report from AS cube that has a column "Description" with 30 distinct values. The report has a multi-value parameter "Description" with the following details: Data Type : String Value Field: Description Label Field : Description The filter that i have on the table is =(Fields!Description.Value) = Cstr(Parameters!Description.Value(0)) When i preview the report i only see the top 1 item from the values that i select from the parameter list. What am i doing wrong Any help is appreciated. Thanks Thanks for replying. I just tried that. Now when i select more than one ...Show All
Visual Studio Team System Saving an object rebuilds entire database?
I'm using CTP5 and have imported one fairly large DB with around 500 SPs. Every time I save an object (Stored Proc, etc.), it appears that the entire database is rebuilt which temporarily freezes the UI (I presume because it is not done on a separate thread). It would be great if it only rebuilt the current object and didn't rebuild the entire project until you ran a build/rebuild. Please let me know if I'm missing something. Hmmm... Here's the situation: I imported a db schema and am in the process of correcting some of the errors that VS discovered with naming, etc. When I save one stored procedure, it seems like the whole list of 500+ stored procedures is reloaded and then I see the list of ...Show All
SQL Server Can I Use Non-empty Behavior for These Calculated Members?
I still find myself extremely confused about using the non-empty behavior for calculated members. We have a series of calculated members that we refer to as "Velocity", such as "Velocity Sales". The basic definition for these velocity measures is to get the total from the previous 63 business days and then annualize that total (i.e. multiply by 4), with the 63rd business day belonging to the previous month. For example, Velocity Sales for any day in September 2006 would be totaling the sales $ for the business days in the range of 06/05/2006 through 08/31/2006, and then multiplying it by 4. Perhaps not surprisingly, these measures result in extremely poor performance. Since I'm confused on the non-empty behavior, this p ...Show All
Windows Forms how to get the values from grid view in textboxes
hi all may be my question will be simple for you but am new to this so please let me know how to do this... am using a gridview control in my form.. am enabling edit and update control for the grid view when i click on the edit the label controls changes to textboxes... and when i enter the new values and clicking on update i should get the values from the textboxes and display it in my form there are 5 columns in my row which am editing and i ve 5 textboxes in my form please tell me how to get the values from the edited row to the textboxes .. tnx Go to the design mode of the web form, select grid and attach (in the properties window select the events icon) a handler to the RowUpdating event handler (double click the RowUpdating e ...Show All
