Software Development Network Logo
  • Visual Studio
  • Visual C++
  • Visual Basic
  • Smart Devicet
  • SharePoint Products
  • VS Team System
  • Audio and Video
  • Windows Vista
  • .NET Development
  • Visual FoxPro
  • IE Development
  • SQL Server
  • Microsoft ISV
  • Visual C#
  • Windows Forms

Software Development Network >> Mason Chang's Q&A profile

Mason Chang

Member List

Ashish P. Ruparel
Kevin Dente
Larry Smith
Jassim Rahma
huabing78
BrianXXX
Caioshin
Dmylrea
js06
Priti Phadke
Margotta
Leandro Rodrigues
Swati Handa
Ashish Derhgawen
GetCode
BIG S
pharaonix
Kasic Slobodan
kamil nowicki
Ravi Santha
Only Title

Mason Chang's Q&A profile

  • SharePoint Products and Technologies Moving MySites to a different farm in BTR

    Don't ask why I am trying to do this but I need to migrate a few MySites from a BTR installation to a different BTR installation so I then can upgrade them to RTM. It seems like the stsadm -backup/restore doesn't capture all the meta data and other dependencies tied in with MySites. Does anyone out there know a good way to achieve this I've tried the stsadm -export -includeusersecurity but I am getting all these "access denied" errors on export AND import. Needless to say, this is messy. Thanks, Rabbit I am getting the following error [2/27/2007 11:13:17 PM]: Progress: Initializing Import. [2/27/2007 11:14:17 PM]: Progress: Starting content import. [2/27/2007 11:14:17 PM]: Progress: D ...Show All

  • Visual Studio Team System QueryLabels error

    Hello guys, We have been using QueryLabels in order to retrieve the list of labels for specific item. It has been reported that in some case the following error occurs: A database error occurred (SQL error 2627) ---> Violation of PRIMARY KEY constraint 'PK__#labelItems_______4D84EF49'. Cannot insert duplicate key in object 'dbo.#labelItems' We see that the error occurs in some temporary tables on TFS database. The strange thing that it occurs and may be reproed only in one installation (RTM w/out SP), and what's more will occur only for some items. Additionally, the items that cause error are seemingly the same as the items that do not. May that be connected to scope parameter - but then, again the full item server path is s ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Price?

    does anyone know how much XNA will cost i mean it can't be free... Q: Can I use the XNA Game Studio Express or XNA Framework to build a commercial Xbox 360 game A: XNA Game Studio Express will enable you to create Windows and now Xbox 360 console games much more easily. These games are limited to non-commercial scenarios for 360 titles created with XNA Game Studio Express. However, XNA Game Studio Express may be used to create commercial games which target Windows. We will be releasing XNA Game Studio Professional next spring which will allow developers to create commercial games for Xbox addition to Windows. The licensing is similar to old Academic Visual Studio licensing models. Obviously by the t ...Show All

  • Visual Basic Vvarious user controls need to reference Module1.vb

    Module1.vb needs to be available to various user controls which utilize methods in this file. Where do I put this file and then how do I reference it from within the user control projects Can I wrap these interop Functions into a class and instantiate it I can create a class library within a solution but not a 'module library' Thank you for allowing stupid questions. -Greg Module1.vb Imports System.Runtime.InteropServices Module Module1 Public Declare Function SetSelectedAxis Lib "foo.dll" ( ByVal Index As Long ) As Long Close! But you cannot declare an object as object.function. So, try changing your code to: Dim obj As New Common Jam ...Show All

  • Software Development for Windows Vista About GetClientRect in AERO

    I use GetClientRect function to retrive the coordinates of a window's client area and then draw a bitmap into client area in WM_PAINT callback function. But when AERO is enabled and the minimized main window is restoring, the bitmap is presented before the main window being restored. It is no problem when AERO is disabled. There is a slow animation when a window being restored in AERO. How to detect the animation is over Or, should I try another way Don't call SetWindowPos() in WM_PAINT, that's asking for recursion death. The *only* thing applications should do on WM_PAINT is BeginPaint()/paint to ps.rcPaint/EndPaint(). ...Show All

  • Visual C++ ref friend class?

    I'm using the Unit Testing framework of VS2005 and I'm running into a problem I'm trying to access private member functions of a NONmanaged class with a managed test class like so: class CBob { private:     static int PrivateFunctionToTest();     friend class TestCBob; }; [TestClass] ref class TestCBob {     [TestMethod]     void TestPrivateFunction()     {         Assert::AreEqual(0, CBob::PrivateFunctionToTest());     } }; This doesn't work, however, because when it goes to compile the TestCBob, I get this error: Error 29 error C3816: 'class TestCBob' was previously declared or ...Show All

  • Windows Forms ComboBox SelectedValue

    Hi, i have a doubt, I have a combobox and I'm binding it using BindingSource. The problem is that I show in the combobox the name of the field that is in the data base, but I store the key number in the database. My problem is that I can't insert the SelectedValue inside the database and it returns me that this field cannot be null, I really don’t know what to do, any ideas I tried setting the key using ValueMember, but this didn’t worked either. This is when I set the name I want to display and the key behind it. comboBox_grupo.DataSource = grupoBindingSource; comboBox_grupo.DisplayMember = "NomeGrupo" ; comboBox_grupo.ValueMember = "CodGrupo" ; Here I have a table named ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How can I pass Cubemap texture into Pixal Shader ?

    Q1: How to contruction a samplerCUBE in   .fx file 1. I import my static cubemap texture into content pipeline  TextureCube mySkybox; 2. In LoadGraphicsContent()   mySkybox = content.Load<TextureCube>("Contents\\skybox");   and now everything is ok. The question is  how can I contruct a samplerCUBE in myEffect.fx file   Q2: How to create a dynamic cubemap  Q3: How can I setup VC# express so that I can have HLSL language higt light when I  edit *.fx   in VC#   OK, I recreated the cube map so that it was of 1280X1024 and saved it as a DXT5 format and still got the same error, but I noticed that the stock ...Show All

  • Visual Studio Team System Web Tests during build fails Http 404 from website

    I am upgrading a 2003 solution to 2005 and am using Web Application add-in but, I am afraid that the set up of a team build that includes web tests is not clear to me. In addition to that deploying the app to multiple servers seems as easy as a 500 page soduku puzzle. Anyway, the build I have set up fails when trying to run the web tests. When I recorded the web test, it was done using on the built in IIS at localhost:2435. I went ahead and created a web site on the build server to run on port 2435, but when the test task runs the web test receives a 404 error because the web application was not deployed. Shouldn't the script deploy the site prior to ru ...Show All

  • Windows Forms Problem refreshing DataGridViewComboBoxColumn

    Hello everybody, I already read a lot of stuff on the problem but none helped me. Here's the situation. I've got a component named CtlGeneric, which is embedded in differents forms. It manages updates, creation of record for every form of the application (generic component). It contains a DatagridView, which is dynamically populated from the database. On a form, each row contains a DataGridViewTextBoxColumn named "Currency Code", a DataGridViewCheckBoxColumn named "Is Base Currency", and a DataGridViewComboBoxColumn named "Reference Currency". The DataGridViewComboBoxColumn is populated with "Currency Code" values wich are base currencies. Here are some lines to make it clear : Code Is Base R ...Show All

  • Windows Forms Need to abort uninstall based on user input

    Hi, I am creating an MSI using Visual Studio 2005, setup wizard. the install and uninstall are done silently. One of the uninstall custom action is to stop a service (using a VB script, i basically open up a shell and execute a net stop), the service name is given as parameter of the silent uninstall, i want to be able to abort the uninstall if the service name is invalid or null. Any suggestions Thanks Dinesh it is not just stopping the service that is the key, there will be a bunch of custom actions thereafter. so i would not want any of them to run. one way would be to check for that parameter in each action and not perform them in the case where the service name is invalid, but what i was trying to ...Show All

  • Software Development for Windows Vista Use Service to Run an Application

    Hello, We wrote a Service Program to run an application, which just shows an Form for displaying and then close the application. It works fine in XP SP2, but cannot show the Application under Vista. We tried to use "ShellExecute" method and "CreateProcess" method, but it still cannot work. I noticed that there are some people have familar problem like us. I am wondering that is there any soluation/method you can tell us. Hi Mathwew, I need to write a service which will be invoked by my application in windows vista. Could you please provide me an sample which would do this My contact email id is nkarunanidhi@ipass.com Thanks in Advance. ...Show All

  • Smart Device Development UDP Client mobile Client For Communicating to desktop pc

    Hi, I developed the socket client application on mobile and socket server application on the desktop pc using the SOCK_STREAM both application commnunicating through active sync . But when i am creating same application for UDP using SOCK_DGRAM the application can not communicate through active sync . in client app sendto function of the winsock is succeeded (not returning any error ) but data not receive at the server end . Whats reasons is active sync not supporting the UDP socket communication how this can achieve Give me any details to make this possible . Thanks in advance Hi, Anant, Could you give more details of how you got that Without act ...Show All

  • Software Development for Windows Vista Help! Cannot get two input filter working.

    Hi I am trying to write a simple 2 input video filter that does a simple wipe. I used the CTransformFilter and created one that has 2 inputs (CTransform2Filter). However when I run into problems: 1. I get flickering when I view it in Graphedt and output to a vide renderer I would expect that I get something like: Receive Sample 1; Receive Sample 2; Receive Sample 1; Receive Sample 2.. However I get sometimes many Samples from one input repeated. This results in an incorrect looking result (sometimes the wipe is correct, often the result is just the first input - so it basically flickers) 2. In graphedt, if I connect the output to a File output filter then I get the error: "The graph could not change state. The ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Xbox 360 Project to Windows Project

    I was wondering if there is a easy way to recompile an Xbox 360 project to a Windows project, because I can't always be connected to my xbox to test out what i'm working on since the xbox is shared by the family. So can I make a change to my program an recompile it for windows so I can see if my change worked and once i'm done making changes to the program I can then build it for the xbox and try it out. Thanks Yeah, the assembly reference issues are the trickiest/nastiest, but this definitely works (at least at build/deploy time). My little group of developers tends to work based on documentation anyway; intellisense is just a bonus. For a project with minimal reliance on external assemblies though, this ...Show All

©2008 Software Development Network