Jazzbo's Q&A profile
Visual C++ Templates Error
I using visual C++ 2003 as a IDE and I'm trying to work through Jesse Liberty's Learn C++ in 21 days I have reached chapter 19 without problems. But I can't seem to create a friend operator that overloads the << operator I keep getting the error: error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class Array<int> &)" ( 6@$$FYAAAV $basic_ostream@DU $char_traits@D@std@@@std@@AAV01@AAV $Array@H@@@Z) Can anyone tell me how I can compile fix the error Below is the source code: //Listing 19.4 Using Operator ostream #include <iostream> using ...Show All
SQL Server Backing Up and Restoring Transactional Replication
From Help Transactional replication includes the sync with backup option, which can be set on the distribution database and the publication database: It is recommended to set this option on the distribution database in all cases. Setting this option on the distribution database ensures that transactions in the log of the publication database will not be truncated until they have been backed up at the distribution database. The distribution database can be restored to the last backup, and any missing transactions are delivered from the publication database to the distribution database; replication continues unaffected. Does database will not be truncated until they have been backed up at the distribution database mean that the d ...Show All
Software Development for Windows Vista Computer freezes when using Vista
I am testing Windows Vista RC1, and I tested Beta 2 too. In the two builds, I have the same major problem while working in Windows: unexpectedly, without doing anything special, the screen freezes completely, and I have to reset power. As far as I know, it doesn't create any report/log/debug to send. When I restart Vista, it reports some corrupted files (normally apps that I was running, shortcuts or folders). ScanDisk can't correct most of that errors, leading me to reformat the partition where Vista is installed. I have no problems installing Vista, and I have no performance problems while using it. I have no problem using XP too (XP is installed in a separate hard drive). I don't know if this is the right place to show my problem. If yo ...Show All
Windows Forms One Click Installation of a deployment Project From the Web?
How do set up a web page to install A deployment project with a Setup.Exe and a Setup.msi When you publish your program it can automatically create a .htm webpage for you with the links with "launch" and "install". In solution explorer right click you project and select properties. Then select the "publish" tab| Option button. I didn't like the default publish.htm so I created my own version and made one change to the install link. ...this part is the same... Launch < a href ="Software.application">software </ a > here the change I made to the other link... < asp : Button ID ="bssInstallButton" runat ="server" Text ="Install Prere ...Show All
Visual C++ Hello World code compiles succesfully but doesn't run
I will apreciate if you can help me with my following trouble as I'm trying to find a solution for the last 2-3 days. I've got a simple hello world code (see below) and I'm trying to build an executable. For compiling and linking I'm using "cl -GX hellow.cpp" and the operation completes succesfully without errors. hellow.cpp: #include <iostream> using namespace std; int main() { cout << "hello world\n" ; return 0; } However, when I execute the derived executable the "hello world" text isn't displayed. Any clues why Note: I'm using Visual Studion 2003 .NET and the compiler is ver. 13.10.3077 for 80x86. Also, I've tested the code on another PC with the same software and works like a swe ...Show All
SQL Server SQL Server 2000 Connects to Remote DB but not Local DB. Why?
I am using MS SQL Server 2000, installed on my local machine. I use JCreator 3.50 as my development IDE for Java. I have Norton Internet Security, but it does not block port 1433, which I use for SQL Server. Windows Firewall is turned OFF. My hard drive died, and my backup died then as well (it had been fine 1 week before). I had to start from scratch. I installed Windows XP SE2, JDK version 5 (version 1.5.0_06, I had previously used 1.40) and SQL Server 2000 with SP 2 as well. When it didn't work, I uninstalled SQL Server 2000 and did a clean install of SQL Server 2000. Instead of the default instance, I gave the instance a specific name, so I would know what to put in the Java code. I can connect with a remote DB using the standard URL a ...Show All
SQL Server Schedule backup SQL Server 2000
Hi all, How can I schedule backup in SQL Server 2000 for ALL databases With SQL Server 2005 I can create maintenance plan to do this, but in the 2000 version I don’t know. thanks!!!! Have you tried one of the many different online backup solutions for sql server there's one from 4backuponline.com that works with sql server and it has been working beatiful for me for that last couple of months. You set it up once and you can forget about it. ...Show All
Visual Studio 2008 (Pre-release) IParameterInspector and Faults
I've been playing a bit with IParameterInspector implementations in WCF, and I've found them very useful and very cool. That said, one thing that's been bothering me a bit and that I find limiting is that there's no way to know if the operation dispatched on the server side throws an exception/returns a fault, because in such a case the AfterCall() method is never called. While this makes some sense, it makes certain things you might want to do on an IParameterInspector implementation impossible to do, because you can't be sure that AfterCall() will be called. Mostly, this makes things that require "reasonable" assurance [1] that the AfterCall() method gets called impossible. An example of those might be tracing infrastructor that has a ...Show All
Visual Basic Assigning two properties two different values results in the same value on both. VS2003
Hi Everyone, I could use some help on a problem that has everyone where I work stumped.. We have a class with simple properties and are assigning different values to each property from a data reader from an SQL server 2000 instance. We have checked all the information we can, we are definately getting the correct data from the database, there are no overloads for the properties, the variables we are assigning are different and the two calls are definately following each other. A breakpoint following the assiging shows that the values are incorrect as soon as the values are assigned. Following the "go to definition" link in visual studio takes me to the expected properties. Breaking and following the code shows nothing ...Show All
SharePoint Products and Technologies Document Library Web Part -> link to DispForm.aspx
Hi there. I'm trying to solve a problem that appeared when I tried to create a simple page with the list of documents from my document library. I need Title field displayed as a hyperlink to DispForm.aspx, not to Document itself, and not to a dropdown menu with Edit option. The reason of this requirement is that we don't like to allow users to download document w/o reading metadata assosiated with it. On the other hand, ordinary user must not see Edit links in menu, because we don't want to tempt them to try edit document at all. Of course, I can customize the data view in Sharepoint Designer - go to Code View and manually change <xsl:value-of select="@FileRef "/> to something like ..../dispform.aspx ID=<xsl:value ...Show All
Visual Studio how to validate checked in comment using ole automation c#
Hi all, I've sucessful testing c# VSSAddinSample. Now I'd like to validate comment before user checked in file. I'm specifically want user to start comment with "abc" that I defined in ssaddin.ini. If they don't enter comment, call checked dialog. Anybody, please help me by pointing me to some resource or sample code so that I could start. I've searching msdn but their documentation is very poor. Thanks so much for your help. Best Regards, Hi Roman, Is there anyway that I could call checked in dialog public bool BeforeCheckin( VSSItem vssItem, string localSpec, string comment) { if ( string .IsNullOrEmpty(comment)) { cal ...Show All
Visual C++ Need real answers regarding deployment of VC++ Libraries
Hello, As far as I can see, most of the blog topics on this subject written by the Visual C++ team are "ideal world" topics, but I really need some real-world answers on this subject. 1. For example, I had my app compiled with Visual C++ 2005 and distributed it using MFC and CRT 8.0 in the app's directory. This worked fine (of course, I had to use the manifests from the WinSxs folder instead of the ones from Redist folder which did not work), until I have upgraded to Visual C++ 2005 SP1. I have rebuilt all binaries, replaced the CRT and MFC with the new ones (8.0.50727.762) and now I receive the ERROR_SXS_VERSION_CONFLICT in the event log, and nothing works. Why could this be I have studied the binaries with an editor and the em ...Show All
Visual C++ Problem with CFileDialog::OnTypeChange()
Hi, We have recently migrated our code base from VS 2003 to VS 2005 and we seem to have a problem with OnTypeChange() method of CFileDialog. We have sub classed from this class and have overridden the method OnTypeChange(). The problem here is when the "Open Save As" dialog appears, and we change the extension type from the "Save As Type" combo box, the file name is not getting updated properly. So I debugged this OnTypeChange() of our class method and found that this method is getting called twice when the "Save As Type" is changed. Inside this function we are using the function call GetFileName() and this method is not returining the correct file name when OnTypeChange() is called for the second time. Can ...Show All
SQL Server rollback doesnt work in begin try ---catch
Hi , In the below procedure in emp table name column is not null. so when i try to update null value it should rollback previous transactions and should not commit. but it is updating the previous queries and raising error on 3rd query. not rolliing back. I need to rollback previous queries. the xactstate i get here is 1. Please help me with this. ALTER PROCEDURE [dbo] . [tran] AS BEGIN SET NOCOUNT ON ; BEGIN TRY BEGIN TRANSACTION declare @name varchar ( 50) set @name = null update dept set d name = 'ddd' where id=10 update emp set name = 'eee' where id=354 update emp set name=@name where id=354 COMMIT TRANSACTION END T ...Show All
Visual C++ Tunnel over net
Hello, I have two computer with non-public IP and one server with public IP. How I create tunnel between two computer with non-public ip For such issues, please use the newsgroups at http://msdn.microsoft.com/newsgroups as these forums are dedicated for VC2005 specific issues. OTP Thanks, Ayman Shoukry VC++ Team ...Show All
