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

Software Development Network >> William Xie's Q&A profile

William Xie

Member List

LouisPeter
David Scherf
DanielS1140
Adrian Betschart
JP.DEV
Bin Ali
Ken_Bussell
sniwas24x7
KarlC
arogan
chris65
nojetlag
Kevin Stephens
fbdf
T-MeK
Rames Gantanant
guyinkalamazoo3
Harish1
E. Rijsdijk
Kudzu22
Only Title

William Xie's Q&A profile

  • Visual Studio 2008 (Pre-release) VS 2005 XAML IntelliSense - SOLVED!

    Hello, I have installed everything I can find on .Net 3 including the extensions. I am currently having issues with the XAML Intellisense not working. Not only will it not pick up my own project references eg xmlns:custom="clr-namespace:SDKSample;assembly=SDKSampleLibrary" <custom: does not work. But also when I try to tap into TextBox.Text for the <Binding> It does not recognise it. Have I missed something to install Thanks, Brett. Have you installed " Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF), November 2006 CTP " There are two different extension for .NET 3.0. The one above which focus on WCF & WPF technologies and one that ...Show All

  • Visual Basic thanks guys

    when running this code, the hscrollbar will accept any value. however, once the form is finally displayed, the hscrollbar will change it's maximum value to either 0, 22, 54, or 246. in binary "0", "10110", "110110", or "11110110". i have stepped through the code with the debugger and have verified that i am specifically setting it to other numbers (i.e. 7, 31, 255, etc.). i have also specifically set hbar.maximxum = 7 for debug purposes but when the form becomes visible the hscrollbar acts as if i have set the maximum to 0. is this a known bug i have searched MSDN to no avail... For Each symbol In symbolList 'some code here hBar = New System.Windows.Forms.TrackBar() hBar.Mini ...Show All

  • Visual C++ Multithreading in api calls

    my problem is: i am working on a vb6 code which basically uses a dll written in vc++6 to send some data through socket to a server. as the software is being redesigned to run on web we need to make the data upload part run in a separate thread. the problem is that the api call by the vb passes some parameters to the dll. int __stdcall sendDataFile(char* sfileName, char* sfileNameAs, char* sipAddress, int sport) { //initializing the globalvariables fileName=sfileName; fileNameAs=sfileNameAs; ipAddress=sipAddress; port=sport; AfxBeginThread(sendDataFileWorkerThreadProc,NULL,THREAD_PRIORITY_NORMAL); return 0; } sendDataFileWorkerThreadProc is the worker procedure the problem is that when accessed from the worker procedure ...Show All

  • Windows Forms Datagridview background colour

    I have code (as follows) that is designed to change the background colour of a datagridview depending on the value of the third column. foreach ( DataGridViewRow dr in dgCustomerList.Rows) {      if (( Boolean )dr.Cells[3].Value == false )      {           dgCustomerList.Rows[dr.Index].DefaultCellStyle.BackColor = Color .LightBlue;           dgCustomerList.Rows[dr.Index].ReadOnly = true ;      } } During runtime, this code is executed but the new style is not applied however, when the refresh button is pressed, the style is applied. (The refresh basically call s the form lo ...Show All

  • SQL Server cannot create jobs on x64

    Hi all, Just installed sql 2005 x64 (DB Server + Client Tools incl. management tools) on a win2003 x64 server and encountered the following problems: 1) Could not create jobs Getting Error: Unable to cast object of type 'Microsoft.SqlServer.Management.Smo.SimpleObjectKey' to type 'Microsoft.SqlServer.Management.Smo.Agent. JobObjectKey '. (Microsoft.SqlServer.Smo) - Tried several different job types, always same result. - Installing SP1 does not help. - Installing with or without Integration Service does not help. Any help is highly appreciated TIA Dan Hi Guys We succeded create job remotly (from another computer 32 bit SQL (x86)) but when you open it from x64 edition you cannot see t ...Show All

  • Visual C# Change Service Logon information programatically?

    Hello, I need my C# application to modify the Logon settings for a particular Service. To clarify, I don't need help with installing a C# Service, I just need help in changing the Logon credentials once the service is installed. There must be a way, I just can't seem to find it anywhere... ServiceController does not seem to have any hooks to this info. I am simply trying to mimic the same functionality as: Control Panel->AdminTools->Services....Right-Click Service, Click on LogOn tab, change Credentials. Any suggestions would be greatly appreciated! Jason ChangeServiceConfig should do it. http://windowssdk.msdn.microsoft.com/en-us/library/ms681987.aspx http://pinvoke.net/default ...Show All

  • SQL Server log shipping between sql 2005 clusters

    hi I am working for a small govt dept.We are planning to implement sql 2005. We will be having sql 2005 instance in active/passive cluster mode We will also have a standby sql server 2005 in active/passive cluster mode. i need to know how to configure log shipping between my primary and secondary Is logshipping the best option Thanks Options are Database Mirroring Can be operated in Synchronous mode which means your standby will be an exact replica of your primary database. Switching between the two is easy. However it doesn't support replication and in synchronous mode the data has to be written to the standby and so may impact performance of your app if your network connection ...Show All

  • Visual C++ Raising exception in one thread, handling in another..

    Hi, I am a bit curious.. Can I raise exception (with RaiseException() ) in one thread and get it handled in another thread This is needed for operation stop-functionality. I thought it would be nice to have one dialog where is stop button, and it stops whatever the main thread is doing.. To the visual studio part of the question ;) Does anybody know how it is done in Visual Studio It's possible to freeze the debugged process anytime, when debugging. Best wishes, Andy In c++ exceptions are separate for each thread. You can access existing exceptions either through your own list or one from Windows. http://msdn2.microsoft.com/en-us/library/4t3saedz.aspx valikac ...Show All

  • Visual Basic passing variables between forms

    I am having serious issues trying to take data from one form and passing it to another form... I have a 3 form new employee application that gets information from the new employee in textboxes and then sends it to a database... my problem is that once i make an instance of the form: dim theFirstForm as new Form1... and dime theSecondForm as new Form2. i cant seem to figure out how to access it and store it in variables... so that on the third form i can access it and populate a database with all the information. My programming teacher made the suggestion to make a new class and send all the info to the class and then on the submit button access it from there and then populate the database... any suggestions on the best way to do this i hav ...Show All

  • Internet Explorer Development Protected -> Medium Integrity, elevation policy

    I have an ActiveX control which needs to start a process with medium integrity. I am trying to get ieuser to elevate the process without prompting the user to ok the elevation. On install, I generate a GUID and add it to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Low Rights\ElevationPolicy, and set the 'AppName' and 'AppPath' to reference the application to run (I do not set the CLSID). I set the 'Policy' value to 3. Even after restarting the PC, IE still prompts the user with the dialog seen in: "Understanding and Working in Protected Mode Internet Explorer" Any suggestions on what I am doing wrong The ActiveX control and application to be launched are both signed, and the application has the manifest trust level s ...Show All

  • SQL Server Codepage 932 is not supported by the Java environment.

    I have a JDBC type 4 driver, connecting to a Japanese SQL Server 2000. The connection gives this SQL exception: SQLException: Codepage 932 is not supported by the Java environment. SQL State: null SQL Code: 0 This same software has been in use and working just fine for over 2 years with other servers. Does anyone know the solution to this problem Thanks! pds2 Hi, The Microsoft SQL Server 2005 JDBC Driver relies on nio Charset support in the JVM to map from CHAR/VARCHAR/TEXT values with SQL collations to Java String instances. To do that, it needs to have charsets.jar, provided by your JVM vendor, installed and accessible via your application's classpath. Some JVM vendors choose not in ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. FileNotFoundException

    Running the game get's me: System.IO.FileNotFoundException was unhandled Message="The specified module could not be found. (Exception from HRESULT: 0x8007007E)" Source="MySpacewar1" StackTrace: at Spacewar.Program.Main(String[] args) at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.Threa ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. My 1-week XNA evaluation

    Hi! I've been evaluating XNA Game Studio Express for about a week now. Writing this little report to get some thoughts and ideas out of my system. If you just want to download the game I made, here it is: http://www.artplant.no/Johan/XNATest.rar Everything is original and copyright (c) Artplant, except for the sound assets and the sound code, which was ripped from the SpaceWar sample in XNA. Someone please give me a heads-up if that's illegal for some reason, and I'll take it out. You'll need a shader model 2.0 GPU to run the game. Also, you'll need a 360 gamepad or similar. (Don't know if XNA is compatible with other pads yet.) Both of the thumb sticks fire cannons independently when pushed. Enough of that, here's a quic ...Show All

  • Software Development for Windows Vista When does workflow instance released?

    Hi,   I wrote simple sequential workflow. The application sequence is very simple: 1. WebService gets a call and instantiates a processing object (that gathers parameters) 2. Processing object executes the workflow with parameters.   Now the problem: I noticed that corresponding process (w3wp.exe) memory grows and hardly goes down (if at all) till the application pool's "idle timeout" reached and the process is shut down. I assume that workflow instances stay in memory and that's a reason why process' memory doesn't go down. Here is a only configuration I have in web.config regarding the workflow:  <WorkflowRuntime Name="WorkflowServiceContainer">   <Services>   & ...Show All

  • Visual Studio 2008 (Pre-release) A question regarding trace viewer

    Hello, I have a question. When I enable a logging on, and open the message log file, there seems to be two messages for each action and I don't know why. Why is there two messages or activities all the time for one soap message Here's an example <E2ETraceEvent xmlns=" http://schemas.microsoft.com/2004/06/E2ETraceEvent "> <System xmlns=" http://schemas.microsoft.com/2004/06/windows/eventlog/system "> <EventID>0</EventID> <Type>3</Type> <SubType Name="Information">0</SubType> <Level>8</Level> <TimeCreated SystemTime="2006-10-18T02:58:03.8287806Z" /> <Source Name="System.ServiceModel.MessageLogging" /> <Corr ...Show All

©2008 Software Development Network