Roger Cheng - MSFT's Q&A profile
Visual C++ AfxBeginThread error.
Hi again! I don't know that what did I wrong! this my code: void CThreadTestDlg::OnRunth() { ///-----------------CWinThread* m_pThread as public HANDLE hThread= m_pThread-> m_hThread; ::WaitForSingleObject(hThread,INFINITE); m_pThread=AfxBeginThread(ThreadSimple,(LPVOID)NULL); } UINT CThreadTestDlg::ThreadSimple(LPVOID pParam) { CTest *pTest=( CTest *)pParam; pTest-> AddToListBox (&m_list); UpdateData(FALSE); return 0; } ...Show All
Visual Studio Express Editions Unable to copy from obj\debug to bin\debug
I get the following error when I try to run my program. Error 1 Unable to copy file "obj\Debug\HomeInventory.exe" to "bin\Debug\HomeInventory.exe". The process cannot access the file 'bin\Debug\HomeInventory.exe' because it is being used by another process. HomeInventory Thanks Petr. works for me as well !! ...Show All
Visual Studio 2008 (Pre-release) WindowState.Maximized hides the TaskBar
Hi, I was wondering if this was intended or not, but when you set a WPF Window's WindowState property to WindowState.Maximized, it hides (overlays) the taskbar. In WinForm's, when you set the WindowState property to WindowState.Maximized, the taskbar is still visible. If this is the way WindowState.Maximized is supposed to operate, how would I go about retrieving the position and the size of the taskbar, so that I can adjust the size of t ...Show All
SQL Server installation bug found SQL Server 2005
Hi! I had the earlier builds and this did not happen but: just downloaded SQL Server 2005 (RTM) from msdn When selecting to install integration services (amoungst other options), whilst installating it gives me an error saying I do not have admin privledges to install one of the .NET libraries/runtime files I cannot remember the file name at all im afraid. Error: 0x80131501 So I cancelled the install and just installed everything but the in ...Show All
Windows Forms How to select multiple rows in datagridview by using datagridviewCheckBox?
The datagridview is already binded to table. I need add a new checkbox column in the datagridview. How to make rows selected when user check each checkbox. No databinding for checkbox. Any idea would be appreciated. In response to the CellContentClick event for the check box column, set the row's Selected property to true using the RowIndex provided in the CellContentClick event. -mark DataGridView Program Manager ...Show All
SQL Server How to run SSIS package
How can I: 1) Create a Job in 2005 to run my SSIS project Specifically syntax and where I would place the all in the job's properties 2) Can I run an SSIS package from the command prompt what would be the syntax You should read BOL as it has extensive information on these topics. 1) ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/541ee5ac-2c9f-4b74-b4f0-13b7bd5920b0.htm This is general info on ...Show All
Windows Forms RegionMaster C# to VB.NET References
I'd like to use the RegionMaster functionality in my VB .NET application. I have followed Mike Harsh's instructions on MSDN TV - though the components have been coded in C#. When I add a reference to my VB project by browsing to the RegionMaste ...Show All
Windows Forms beta2 deploy web application
I am using Beta 2 IDE environment. I build the code successfully and now I am ready to deploy the code to another server. I am using aspnet_compiler.exe utility to precompile my code. However, I get below error everytime I try to do this. Can you please help error ASPRUNTIME: Object reference not set to an instance of an object. Hi, to upload your pages on a server you just have to copie your files onto a asp.net server and it works. Ca ...Show All
Visual Studio Tools for Office Outlook 2003 Addin doesn't work on Windows 2003 Terminal Server
Hello all, I 've develop and deployed an Outlook 2003 Addin using VSTO 2005. The project runs succesfully on Windows 2000 and Windows XP I setup the project with no errors on a Windows 2003 Server which runs as a Terminal Server, but the AddIn does not loaded when Outlook starts. Also there is no Addin in COM AddIn s dialog. I also did this : http://support.microsoft.com/kb/908004/ but nothing seems to work. Any idea ...Show All
Visual C++ Need help with a program...
Hey everybody. I've written this program and cannot figure out why it won't work. Here are my requirements... A teacher wants a program which will test students’ memory of the values of small integers squared. She asks for a program which prompts the students for an integer. It then asks them for that number’s square. If their answer is correct they are congratulated if it is incorrect the correct value is given. Because she wants t ...Show All
SQL Server Creating a double entry book keeping system
Can anyone please tell me how to create a basic double entry book keeping system database using SQL Server or Access. I need to know what tables amd fields I need to create, and what relationships need to be defined. I just need to know the db structure here. Also how should I go about designing the forms ( I use visual Basic 2005 Express and SQL Server 2005 Express, and Access 2002 ), the front end user interface for creating journal entries, h ...Show All
.NET Development Implementing a custom Permission
I've developed the following 2 classes: - class SomePermission : IPermission, IUnrestrictedPermission, ISecurityEncodable (like PrincipalPermission) (ISecurityEncodable isn't implemented yet) - class SomePermissionAttribute : CodeAccessSecurityAttribute (with CreatePermission() overrided to return a instance of SomePermission) I'm using Beta 2 framework (v2.0.50215). I've only tested this code in an ASP.NET WebServices application so far bu ...Show All
Visual Studio Team System List of files updated?
Our development team has just converted from CVS to Team System. One of the things we can't seem to find is the output of updated files when you get latest. I have gotten this output once in Team System, but only when I have a conflict. We'd really like to be able to see this output any time we get latest. Is there any way to get Team System to show it to us even when there isn't a conflict Thanks, Patrick ...Show All
Windows Forms Internetconnect problems
Ok, I'm working with wininet and i'm having some problems. Whenever I call hConnection = InternetConnect(hOpen, baseURL, INTERNET_DEFAULT_FTP_PORT, baseUID, basePWD, INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, &H0) I always get 0. Is there anyway to make my connection using sys ...Show All
Smart Device Development WM5 .NET 2.0?
Hi! Sorry, title maybe misleading.... Basically in the UK the next version of the smartphone (SPV) is C600 (after the successor C500) and it will be launching at the end of the month now, I know it has WM5 (hurray!!) BUT would like to know, if anyone knows (esp the MSFT guys)... will it have .NET CF 2.0 I know it was in beta etc... for the past few months but now for MSDN subscribers VS.NET 2005 has been officially launched but the of ...Show All
