Tryin2Bgood's Q&A profile
Software Development for Windows Vista Cannot install .NET Framework 3.0 after removing WinFX
I have previously installed the Beta 2 of the WinFX Runtime Components. Actually I have only installed the Workflow Foundation and the Workflow Extensions for Visual Studio 2005. After manually uninstalling these in the Software section I tried to run the installer of the .NET Framework 3.0. This gave me following error message (sorry in german): http://www.diegeneration.net/uninstall_error_winfx.jpg I tried to translate the error: "Thank you for attenting the Beta program. You have to deinstall all products of the Preview version in a certain order, before you can continue the setup process. You can find additional information on the support page for the unistallation and in the info file. - Microsoft Windows Communicatio ...Show All
Visual Studio Express Editions noob question: what do windows applications use as a db?
sorry but I have this totally noob question. I'm completely new at writing windows applications, and want to learn. I have a book (sams learn in 24hours), and it briefly goes over ADO. My question is, besides writing to a flat txt file, what do windows applications use as a database Obviously your standard XP desktop doesn't have a db server, so how do programs save information I'm basically creating a database, but want it to be an installable program, not an MS Access db. But I'm having trouble figuring out what to do in regards to a DB. I see you can use localized db's inside VB, but I keep reading that the user would still need sqlserver express or is that wrong spotty - from the impression ...Show All
Visual C++ DLL calling static function in main app
Hi, I'm trying to develop a pluginsystem for a project I'm working on. During inititalization of the global section in the DLL a call is made to a static function in a class named "Instantiator" which registers the plugin class with it's name in a map. However both the application and the DLL share a instance of the "Instantiator" class. I thought that because the member function are declared static that both the application and the DLL would use the same instance of the "Instantiator" class Is there a way to get the required behavior Regards, Christian I think I understand now. It looks as though the static function has code also in the header, and the linker will use ...Show All
Visual Basic Using IsNullOrEmpty and SelectedValue
I want to use a combobox to select an EmployeeId and pass the selectedvalue to a parameter for an SQL insert stored procedure. I want to set the combobox.selected value = (-1000) when the combobox.text is null or empty. I am having trouble setting the selectedvalue to this specific value. I have used the code below, however it does not seem to pass any value to the stored procedure: If String.IsNullOrEmpty(combobox1.Text.ToString) = True Then cmd.Parameters.AddWithValue("@intEmpId", "-1000") Else cmd.Parameters.AddWithValue("@intEmpId", combobox1.SelectedValue) End If Can someone help me out with this Thanks. Since you are really interested in the combobox1.SelectedValue, ...Show All
Visual C# DateTime formatting in 2005
Having converted a medium to large website from .NET 1.1 to 2.0, I found that some machines displayed datetimes in en-GB format while one in particular (running under server 2003) displayed datetimes in en-US format. The code was identical as were the regional settings. I discovered that IIS on this machine had the default web-site still pointing to 1.1 (the virtual website for my system was set to run under version 2). When I pointed the default website to version 2 and pressed the Edit Global Configuration button and selected the Application tab, I found that the culture was set to af-ZA. I set this to en-GB and restarted IIS. Lo and behold, the datetimes were displayed properly. I then pointed the default website back to version 1.1 ...Show All
SQL Server "Could not open SQLEVN70.RLL"
"Your SQL Server installation is eigher corrupt or has been tampered with (could not open SQLEVN70.rll). Please uninstall then re-run Setup to correct this problem." What do I do It says to uninstall/reinstall, but what DO I install I need a step-by-step procedure to follow to get rid of this. I had the same problem, and I didn't have the duplicate/empty folders that the previous reply mentioned. Here's how I solved it: I went to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\Resources\1033 and found that there resided a good copy of the offending file (sqlevn70.rll). So I copied it from here and pasted it into every subfolder within the main folder of C:\Program Files\Microsoft SQL Server\ whic ...Show All
Visual Studio How to create a "custom build" project with VS2005?
I am designed a "custom build" project under VS2005, the purpose of this project is to initialize a database environment (the build is based on NAnt but it could have been MSBuild). Question: how can I define a "custom build" project under VS2005 For now, I have simply used a "solution directory" instead of a project. Is there a better way to proceed Thanks in advance, Joannes http://www.peoplewords.com Could you be more specific about what a "custom build" is . When you say it is based on nant it makes me think that you have a target as part of a nant build file which has tasks which will fill the database. You could rewrite this in MSBuild (or just call nant on your nant ...Show All
Visual C++ AfxBeginThread() error C3867?
Hello all, I'm trying to launch a worker thread from within my view class. I have a class ("LiveVideoThreadData") that I've created that has been loaded with data the thread needs during operation. I'm getting compile-time error C3867 at the "AfxBeginThread" call. I'm following the MSDN documentation closely but can't get it to work. I've done the following: UINT CMyView::LiveVideoThreadFunction(LPVOID pParam) { //Cast to type LiveVideoThreadData: LiveVideoThreadData* videoData = (LiveVideoThreadData*)pParam; . . . } void CMyView::OnDraw(CDC* pDC) { videoThreadData.InitializeWithData(); AfxBeginThread(LiveVideoThreadFunction, (LPVOID)&videoThreadData); } Compiler produces: "error C3867: 'CMy ...Show All
Smart Device Development How to create the equivalent of a JTabbedPane in C# ?
I would like to use them in a Windows Mobile 5.0 application written in C# is it possible Thanks ...Show All
Visual C++ Help! problem with CFile class
This is code void func(CString string) { pFile.Open( m_FilePath, CFile::modeWrite | CFile::modeCreate); pFile.Seek( 0, CFile::end ); if ( pFile.GetLength() > (m_iFileSize) * 1024 * 1024 )//when file have some size { pFile.Close(); //close a file DeleteFile( m_FilePath + CString(".old") );//delete old file MoveFile( m_FilePath, m_FilePath + CString(".old"));//move information from main file to old if(!pFile.Open( m_ FilePath, CFile::modeWrite | CFile::modeCreate))return;//open file again and write from begin } //here i write some information in file pFile.Close();//close file //end function } in this code MSVS always thow CFileExeption error i can`t understa ...Show All
Internet Explorer Development Strange problem with focus in Internet Explorer 6 (and 7?)
Hi, I have a strange problem. A very basic web form (an aspx file) has a textbox in it. The textbox has focus. The user is entering keystrokes. The user hits backspace to delete some of the text (while the textbox still has focus) and the browser navigates back a page (as the backspace key would if no controls had focus). Also, the spacebar doesn't work while data is being entered in the textbox. To fix this, the user has to refresh the page they are currently on, and everything works normally. Any ideas It is driving me insane. ...Show All
Windows Forms ODBCDataAdapater.Update
Good afternoon, I'm having an issue right now when I try to update a datagrid. It can currently insert, but only 1 time. Same goes with the updating. If I try to insert/update an error would pop up saying the following: Concurrency violation: Updatecommand affected 0 records. This happens regardless whether I insert, update, or delete. Any thoughts EDIT: I found the problem. What my problem was, was that I didin't want to see any (null) in the datagrid, and got rid of this by doing IsNull(<Name of Column>, '') as <Name of Column>. THis messed things up, but I got rid of it, and now works. ...Show All
Visual C++ _ttoi() family portable way for 32-bit and 64-bit
Hi, Is there a more cute way to use the string conversion functions then this : CString szCategories; ... #if defined(WIN64) INT_PTR nCategories = _ttoi64(szCategories) #else int nCategories = _ttoi(szCategories) #endif Is there a function like this exist _ttoi_ptr() Regards, Eric allstar1234 wrote: CString szCategories; #if defined(WIN64) INT_PTR nCategories = _ttoi64(szCategories) #else int nCategories = _ttoi(szCategories) #endif If there are chances of szCategories containing more than the value range of int32 it's bett ...Show All
Windows Forms DataGridView frustration
I have been searching for the past couple of days for articles on the CheckBox in a DataGridView and I haven't found anything that is remotely helpful (at least to me). I want to allow the user to check the CheckBox in the first cell of a row. Then, when a button is clicked, I want the app t loop thru the rows in the GridView and when a CheckBox has a value of checked, the code will update the values of two other cells in that row. I hit the "last straw" when I went to this site (MSDN) and thought I had finally found a solution. But nope, the C# example shows how to perform a foreach loop on the rows of a DataGridView control http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridviewrow(VS.80).aspx So ...Show All
SQL Server Cannot install SP1 on SQL Server 2005 (64bit)
Hi, I'm having problems installing SP1 on one of our servers. If I try to install the x64 version of SP1 setup says it can not update my server and I should use x86 version. Trying to install the x86 version results in the message I should use x64 version.... Any ideas Regards, Jan Hi, no I didn't run this package but SQLServer2005SP1-KB913090-x64-ENU.exe (most of our server are german version). With the englisch version installation worked - thanks for the great support. Anyway, the error message is a bit misleading... Regards, Jan ...Show All
