fruce's Q&A profile
Visual C++ Upgrade to VS2005 gives problem with atlcom.h
Hi all, I have been assigned a task to upgrade a solution to VS2005.The solution is originally written in VS2003 and Compile with 0 error and 0 warning in VS2003. This solution contains 48 Projects. When I build this Solution in VS2005 than it gives following error Error 5 error C2664: 'ATL::_CopyInterface<T>::copy' : cannot convert parameter 2 from 'ISTDBResource **' to 'ISTPlayListEvent **' C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlcom.h 5114 Error 1 error C2664: '_CopyBSTRtoBSTR::copy' : cannot convert parameter 2 from 'ISTDBResource **' to '_bstr_t *' C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\atlcom.h 5114 Error 6 error C2065: 'ISTDBResource' : undecla ...Show All
SQL Server Tran Log Backups Fail 40 minutes after the Differential backup.
Running SQL Server 2005 Standard Edition. Database is in Full Recovery mode. I have full backups scheduled weekly, differentails scheduled daily and tran log ackups scheduled for every 15 minutes. The tran log backups only work for the first 40 minutes or so after the daily backup. Once the daily has occured, the tran backups will work again, but for only 40 minutes. I run consistency checks on the db daily and there are no errors. The error returned from the tran log backup is 'BACKUP LOG cannot be performed because there is no current database backup' Any thoughts would be appreciated. It looks like you have some scheduled job which includes either BACKUP LOG WITH NO_LOG or ...Show All
Windows Forms Change scroll bar style...?
Hi... Can i change the scroll bar sytle of my form… I want to change the scroll bar style as same as microsoft’s Live website’s scroll bar… Can I change like that using my C# application… Thanks, Vinay Here we go: http://www.codeproject.com/vb/net/corescrollbar.asp the example is in VB.NET. You can compose your custom control out of some basic ones, and then handle mouse and keyboard events and fire the appropriat scroll up/down events. ...Show All
SQL Server Display Last 2 Comments to a Record
Ok, I'll try to explain this as best as I can... I have an Invoice Record in one table (Invoices) and in another table (Comments) I have multiple comments to an Invoice. I'm looking for a statement that will output the last 2 comments per Invoice Record. Example: The Comments table has multiple ID #'s corresponding to the ID # in the Invoices table. Invoice ID # 1 has 4 Comments; Invoice ID #2 has 3 Comments; ID# 3 has 2 comments. The output would be 6 records with 2 comments for each ID #1, 2, and 3. Something like this should work for you, Scotty. You may be able to tweak it a bit but hopefully this will get you a start. select InvoiceID , Comment , Date from Comments C1 ...Show All
SQL Server error 18456 when trying to connect to 2005 using odbc
Hi all I am using Windows XP SP2 with a Sql server 2005 Express installation. I created a test db with a user called test, schema also test. I gave the permission connect, db_datareader and db_datawriter. I can now connect into this user using WinSQL. But if I want to connect using a application which is using ODBC, then I get the error: [SQLSTATE=28000 - [Microsoft][SQL Native][SQL Server]Login failed for user 'test'.[Native Error=18456]] Because I connect using ODBC, I think there must be the problem. But I have to connect with ODBC. There is no other possibility. any ideas Regards, Waff I found this out: The server collation is defined to: Latin1_General_CI_AS If I create a new login id in lowercase, then ODBC w ...Show All
Windows Forms General paths problem
Hi there, I'm fairly new to winforms dev and I'm stuck on something I'm sure someone can help me with: I am using a 3rd party spellchecker control which requires an external dictionary file. The problem is that simply supplying the bare filename (without any form of path) works until the application's working directory changes. For example, if somewhere in my program the user invokes an OpenFileDialog and selects a file, the app's working directory is set to wherever the file was located (e.g. the Desktop). After this, the spellchecker pukes because it can't find the dictionary file in the Desktop. I could set an absolute dictionary path each time the spellchecker object is created but this seems like a bit of a fudge as it's used in ...Show All
.NET Development String and numbers
Hi there. I would like to khow how can I use only numbers from the following string: T 30 35. From this string I want to use the two numbers as x = 30 and y = 35. T may be a dummy variable. I would appreciate if you could send me an example code. Thank you in advance. NM This is a BCL question I'd do this: public static List<int> ParseNumbers(string s) { string[] fields = s.Split(' '); List<int> results = new List<int>(); foreach (string field in fields) { int value = 0; if (int.TryParse(field, value)) results.Add(value); } return results; } This code assumes that the fields in the string are separated by spaces and that "T" is not a number. ...Show All
Visual Studio 2008 (Pre-release) Problems with Setup (.NetFxRC1 & Orcas)
.Net Framework 3.0 Release Candidate 1 (RC1) and Windows SDK RC1 are both available for download. EID & Orcas Preview should both be available next week. A few more details are posted here . Enjoy and please keep the great feedback coming! Thanks, Rob Relyea Program Manager, WPF Team http://rrelyea.spaces.live.com Is this compatible with XP too SDK states: "M icrosoftR WindowsR Software Development Kit (SDK) for RC 1 of Windows Vista and .NET Framework 3.0 Runtime Components" ...Show All
SQL Server Custom Property for Remove Duplicates transform Input Row
Im working through the MS example of "removeDuplicates". I cant seem to figure out how to add custom property for input column. I added the helper method: private static void AddIsKeyCustomPropertyToInput(IDTSInput90 input, object value) { IDTSCustomProperty90 isKey = input.CustomPropertyCollection.New(); isKey.Name = "IsKey"; isKey.Value = value; } I call it from: public override void ProvideComponentProperties() { //... AddIsKeyCustomPropertyToInput(input, false); //... } public override void ReinitializeMetaData() { IDTSInput90 input = ComponentMetaData.InputCollection[0]; if (input.CustomPropertyCollection.Count == 0) { AddIsKeyCustomPropertyToInput(input, ...Show All
Visual Studio Express Editions brace (bracket) matching
I have both Visual C++ and C# Express Editions installed on my PC. When editing C# programs, brace matching works. i.e. when I highlight a brace in C# it's companion is highlighted. For some reason this does not work in C++ even though I think I have it enabled in the Tools - Options - Text Editor General - Automatic delimiter hightlighting. Am I missing something Thanks!! I notice that there is a box on the VC++ 2005 Express Edition Tools | Options | Text Editor | General pane for obtaining delimiter highlighting. (It doesn't appear to do anything on my version either.) In addition, on the Text Editor | C/C++ | Formatting pane there is control of Outlining which does appear to work (and may interfere ...Show All
Visual Studio 2008 (Pre-release) Vs2005 crashing using ObservableCollection
In my code i want to fill my two column listview from a xml string. I found some examples on msdn for doing this(How to: Group Items in a ListView That Implements a GridView). I itegrated this code into my project. But when i compile the code some times vs2005 crashes and close(every 3-5 time im compileing). I get this warning when i compile: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning : Type library exporter warning processing 'ShowDialog.myEmployees, ShowDialog'. Warning: Type library exporter encountered a type that derives from a generic class and is not marked as [ClassInterface(ClassInterfaceType.None)]. Class interfaces cannot be exposed for such types. Consider marking the type with [ClassInt ...Show All
Visual Studio 2008 (Pre-release) June CTP big problems with GridViewColumn controls
I'm having a big, big problem with new behavior that was introduced in the June CTP. The problem has to do with the automatic sizing of controls that are placed in GridViewColumns. I have working code (at least working prior to the June CTP) that uses a FrameworkElementFactory and DataTemplate that is added to the CellTemplate property of a GridViewColumn. This allows me to change the control used within a column. I have a number of custom controls that rely on the control being resized when the column is resized. The problem is that controls added in this way are no longer resized to the full available column size. To illustrate this problem, I modified the code for the standard "ListView that uses a GridView Sample" . I modif ...Show All
Visual Studio Team System Security Problem with Accessing Work Items
I have a security problem with accessing work items. I have created a team project based on a customized project template. Among the rest, there are a "Defect" work item and two team queries, "All Defects" and "Active Defects" . MyProject > "Team Project Settings" > "Group Membership..." context menu item shows "Project Groups on MyProject" dialog with the list of the team project groups, including [MyProject]\All that includes another team project group, [MyProject]\Developers that includes a Windows user MyDomain\John . MyProject > "Team Project Settings" > "Security..." context menu item shows "Project Security" dialog with the list of the team project groups and their permissions, particularly, the above-mentioned ...Show All
Smart Device Development how to send sms to Edge Technology through .net application.
hi all anybody can guide me how to send sms using Edge Technology through .net application Please help me . ...Show All
Visual Basic Set a timer from a combo selection
I am trying to figure out how to set a timer interval from a string that was stored from a collection of a combobox that is stored in My.Settings What the combobox has is a range of numbers from 1 to 60, representing one minute to 60 minutes. what I am wanting to do is something like this but, I havent learned my math yet, so dont laugh, Private t As New System.Timers.Timer(2000) I know this represents 2 seconds, but I am wanting to use the the string values to set the timer interval like, Private t As New System.Timers.Timer(My.Settings.MyTime * 60000) I know the above line is not correct, what do I need to do to get the desired results Davids Learning Before I didnt have ...Show All
