Efren Molina's Q&A profile
Visual C++ 2005 Resource Editor trashes non-English languages when you edit any dialog
I have an application that has resources in 11 languages, including Chinese (CHS), Hungarian and Polish. These three are especially challenging because they use a non-English code page - Chinese uses 936 and Hungarian and Polish use 1250 (English and western-European languages use 1252). I am not using Unicode but rather just single byte characters sets for all languages except Chinese which requires MBCS (two byte characters). MFC an ...Show All
Visual Basic Event subscribers
I am creating an address control that exposes some events For example… Public Event AddressDelete(ByVal sender As Object, ByVal e As AddressControlEventArgs) I want to throw an exception if the event has not been subscribed to similarly to how the GridView does if the RowDeleting event is not subscribed. My question is, how do I check an event for a count of how many subscribers are attached You can probably ...Show All
SQL Server Page or File Restore - Warning Message
Hi, When testing out file or page level restores, I get the following message: The roll forward start point is now at log sequence number (LSN) 17000000031000001. Additional roll forward past LSN 17000000031800001 is required to complete the restore sequence. I've been restoring the full backup, and then the latest tail backup - so I'm not sure why I'm still getting this message Best Regards, Joe I am glad to ...Show All
SQL Server Simple recovery and Full backup
Hi MVPS/MS Experts: Pardon me and my ignorance for asking this question. I just want to understand the backup architecture more clearly. According to BOL (both in SQL 2k and SQL 2k5) in simple recovery mode trasaction log backup is not possible since the log is truncated on checkpoint which is true. Also we know that FULL backup backups both the db and transaction log as well. My question is what happens when a database is in simple recove ...Show All
SQL Server UK Datetime parameter problem SQL 2005 RS
Hi, I am having a problem with the DateTime parameter option in SQL 2005 reporting services. Note that Server, workstation and database are set to British/English (UK) date/time localisation (dd/MM/yyyy) for example 25 th December 2005=25/12/2005. I create a simple query with a parameter on a datetime column and set the report parameter to Data type: DateTime in the report parameters dialog. On preview or after deploy ...Show All
Visual C++ How to find out the current window that is active due to your mouse click?????
Hello, I am writing a dialog based program that will take screenshots while the dialog is minimized. The trigger to take a screen shot is through WM_HOTKEY. I like to use the correct API to take the a window that is active due to user's mouse click while the dialog of the program is minimized. Now, I am using : CWnd * pWnd = CWnd::GetActiveWindow() ; while the window I like to take screenshot is active after mouse click. But when I debu ...Show All
Visual Studio 2008 (Pre-release) Another listbox question
Hi, One of the good points of a listbox in WPF is that you can add anything to it. Well, I added for each item a richtextbox. Problem now is that when I want to select the item in particular, I have to click outside my richtextbox Anything I can do about this thanks, Kimme I think you can just set Focusable = false on the RichTextBox. HTH, Drew ...Show All
Visual Basic Please, how to populate treeview
Hi all, please help me with treeview control with database access treeview with 3 nodes! node1 subnode subnode othersubnode node2 subnode2 othersubnode2 othersubnode2 othersubnode2 subnode...... how to put in table of mdb and fill treeview control please.. help! A couple of links which may help you in populating the treeview http://support.microsoft.com/ kbid=320755 http://www.develope ...Show All
Visual C++ Using DataGrid
I've to change the values displayed in a datagrid (I mean I have to change the database). I watched in the code generated by the .NET, but it's ununderstable for me yet... Assuming you are using VS2005, right click on your datagrid and click on properties. Under the Data section, take a look at the DataBindings property and click advanced. I believe you can specify the source of your data there. If you are not using VC2005, you can probably ...Show All
.NET Development IrDA in 2.0 .NET Framework?
Will the IRDA assembly which is present in the 1.1 .NET Compact Framework be available in the 2.0 .NET Framework When is 2.0 .NET expected to be released Vikram, Yes all of this strongly suggests that System.Net.IrDA.dll will be included in 2.0. Thanks for your help!! Liam ...Show All
SQL Server Unable to access MSSQLSERVER from client
Hi, I have SQL Server 2005 installed and functioning (it does everything I've asked it to do locally). I also have the Express and Standard Editions installed on a computer running WinXPPro SP2 with all the WinUpdates applied. I also have VS2005 installed on this computer. I've done some development work on this computer, using VS2005 to create a SQLDB, connect to it, add data, etc. This is all okay. The problem is I cannot connect to the& ...Show All
Visual C# Setting CommandButton's BackColor programmatically.
I am trying to set the BackColor of a CommandButton in the Load event of my Windows Form. However, when I set the BackColor via the code it does not change the BackColor - instead it appears to set the outline of the CommandButton to the Color. I am using Express Edition. Thank you. strColor = "16776960" ; cmdReadyColor.BackColor = Color .FromArgb( Convert .ToInt32(strColor)); Is the code ...Show All
SQL Server How to turn off Auto Recovery in SQL Server Management Studio 2005?
Auto Recovery kicks in about every 5 minutes in SQL Server Management Studio 2005. Over a slow network connection, SSMS stops responding until the Auto Recovery completes. Auto Recovery can be turned off in Visual Studio 2005 but I have been unable to find how to turn it off in SSMS. This has nothing to do with the Auto Recovery feature of SSMS. I am also looking for how to change/turn off the Auto Recov ...Show All
Visual C# Whats New in System.Xml
Where can I read through the new stuffs added to/under the System.Xml in 2.0. The MSDN documentation is a good place to start: http://msdn2.microsoft.com/en-us/library/1k76xshy.aspx MSDN Magazine and Visual Studio Magazine both have numerous articles on the new XML stuff in 2.0. Michael Taylor - 1/25/06 ...Show All
.NET Development system.objectdisposedexception
Hi, I have a multithreaded application that crashes with the following msg in event log ... EventType clr20r3, P1 smartserver2005.exe, P2 1.0.0.0, P3 43f6cc52, P4 system, P5 2.0.0.0, P6 4333ae87, P7 3ad8, P8 a5, P9 system.objectdisposedexception, P10 NIL. I have provided try catch block in all routines in the code & still the appl crashes with the above msg. Note that crash is not consistent for a particular se ...Show All
