cgMarcos's Q&A profile
.NET Development Combining Interfaces
Hi I have the following two interfaces: interface IFirst { .... } interface ISecond { .... } i need to combine these two interfaces without using third one or any other class. is there any way It is used in the .NET Framework all the time. Rather than implementing the same methods and properties as another interface, you can simply inherit that interface. For example, IList inherits ICollection and IEnumerable. ...Show All
Visual C# Linked list
Hi, I want to keep several strings (maybe pairs of strings) in memory (kind of linked list). The problem is that the number of strings is dynamic and initially unknown, therefore I can not use an array. Unlike in C++ I can not use Struct because in C# there is no possibility to create a pointer to next member. Can somebody give me a hint how I can do it Thank you. Use one of the classes from System.Collections ...Show All
Visual C++ Why is the linker displaying such an error? (LNK2019)
Hi, can anyone help me out with this The linker keeps giving me this error: Sprite.obj : error LNK2019: unresolved external symbol "public: void __thiscall Sprite::SetPosition(struct tagPOINT)" ( SetPosition@Sprite@@QAEXUtagPOINT@@@Z) referenced in function "public: virtual void __thiscall Sprite::Update(void)" ( Update@Sprite@@UAEXXZ) Sprite.obj : error LNK2019: unresolved external symbol "public: void __thiscall Sprite::SetVelocity(int,int)" ...Show All
.NET Development .net 2.0 instable?
After converting web app to .Net 2.0, once in few hours it dies. I've seen people having same problem with different apps on .Net 2.0, web and winforms, and haven't seen one yet saying the problem solved or at least understood. I'm trying to narrow it down from event log entry. Can anybody help on P7 and P8 values I was not able to find any info. Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category:  ...Show All
Visual Studio Team System Unit Test: How do I enter the table name with SQL Mobile as data connection?
I have a connection string that.NET Framework Data Provider for SQL Server Mobile Edition, but when I select this, I am unable to select the table from the properties. I suspect that I can insert the table name at the point of the double quotes [ DataSource ( "Microsoft.SqlServerCe.Client" , "Data Source =\"D:\\Program Files\\Microsoft Visual Studio 8\\SmartDevices\\SDK\\SQL Server\\Mobile\\v3.0\\Northwind.sdf\"" , "" , DataAccessMethod .Se ...Show All
.NET Development installing .net framework SP1 problem
I was just trying to install the sp1 for 1.1 on a media center pc and i need it because i want to connect to my 360.. Anyways, the message: (Microsoft Visual C++ Runtime Library runtime error! Program: C;/WINDOWS/system32/msiexec.exe This application has requested the Runtime to terminate in an unusal way. Please contact the application;s support team for more information) i have windows installer 3.1 and framewark 2.0 and 1.1 installed and it ...Show All
Windows Forms Standalone Form Designer application
I am currently creating a Form Designer Application, that makes heavy use of the Features introduced with .net 2.0 ( DesignSurface ,...) Currently i am trying to implement Copy,Cut,Paste and Undo/Redo. I am using the the CodeDomComponentSerializationService Implementation of ComponentSerializationService to get serialized objects. For the copy command i tried to attach a new EventHandler to StandardCommands.CopyCommand. Currently i put a serial ...Show All
Visual Studio Team System Logon with the object model in RC
In beta 3 I used a NetworkCreditials object to create a conenction to a TFS server. NetworkCredential objNetworkCredential = new NetworkCredential (strUserName, strUserPassword, strDomain); TeamFoundationServer objTFS = TeamFoundationServerFactory .GetServer(strVstsURL, objNetworkCredential); But in the RC version the factory uses a Microsoft.TeamFoundation.Client.ICredentialsProvider in the GetServer method. In Cli ...Show All
Visual C++ Visual Studio 2005 MFC Applications on Windows 98
Hi, I am tring to build a unicode app to work on win 98/nt/xp. Built a sample MFC application in Visual Studio 2005 Team suite Beta 2. A unicode dialog app with a button. When run on windows 98 it shows this message. Installed VCredist_x86 and .NET framework 2.0 latest versions downloaded from web. Also coped mfc80u.dll to the exe folder. Microsoft Visual C++ RuntimeLibrary Runtime Error! This application has requested the runtime to te ...Show All
Visual Studio Team System Is the Team Suite trial compatable with TFS Beta 3 Refresh
I am currently having a problem accessing Documents in Team Explorer using the client shipped with TFS Beta 3 Refresh and wondering if I will have better luck with Team Suite Trial edition. Anyone know You must use the version of Team Explorer that ships with the version of Team Foundation Server you're trying to access. Team Suite Trial Edition (and for that matter, all other Visual Studio products) do not i ...Show All
Windows Forms Converting .text to money
Hi, does exists a way to convert a value that is in a textbox, to money in order to insert it into a money field in Sql Server... thanks.... Eng. Reynaldo Thanks anyway, the problem is when the string is going to be con ...Show All
Visual Basic Detect if a file sitting on a network drive opened by another user
How can I detect if a text file sitting on a network drive is open by another network user I am using VB.NET 2003. Your help is highly appreciated Regards Hello. You can use something like the following to accomplish this: Dim fileTest As New System.IO.Filestream(<enter some file here>,FileMode.OpenOrCreate,FileAccess.Write,FileShare.None) If fileTest.CanWrite Then Debug.WriteLine("The file connecte ...Show All
Visual Studio Team System VS2005 RTM Team Suite Setup Starts When Outlook Starts
I have installed VS2005 Team Suite and the TFS Client Beta 3 Refresh. This system has never had any previous betas. Now when I launch outlook 7 times out of 10 Team Suite setup starts! Any ideas why How to fix it Thanks, Chris Chris, Sorry for the delay getting back to you on this. I've not seen this particular problem before. I'll try and find someone who can help you out with this. Thanks, ...Show All
Visual Studio 2008 (Pre-release) RichTextBox How To!
Hi, I have searched the net and the documentation that shipped with Beta 2 and have not found any results or information that was able to aid me. Hopefully there are some RichTextBox experts that could please help me with the following things: How can I make the RichTextBox single line (this was possible in Win32, and no, changing the control template to a textbox does not work! Because then it essentially is a t ...Show All
.NET Development PInvoke HIWORD/LOWORD LParams and WParams in 64-bit
I have an implementation regarding how HIWORD and LWORDs should be handled for LParam and WParam WndProc values. I'm currently trying to handle the EN_UPDATE notification sent to a textbox via a WM_COMMAND message. The documentation states that the EN_UPDATE notification is sent in the high-order word of the wParam. lParam and wParam are defined as IntPtr, which is the same as the native integer size on the platform (32bit or 64bit). My ...Show All
