As far as I know, there is no way to stop using a particular namespace once you start using it with the "using namespace" statement. Also, when you use multiple "using namespace" statements, you will be using all the namespaces simultaneously. Maybe an example will help...
hi, I've never worked with MFC before so I don't know the specifics of using CString. Still, I don't see why there would be a problem unless some of the declarations in the std namespace were identical to those in the CString header (the whole point of using a namespace). Its possible that the...
Nothing to it. Suppose you wanted to create a namespace called "MyNamespace", this is all you would have to do:
//In some header file, maybe "MyNamespace.h"
namespace MyNamespace
{
//Declarations go here
}
And when one of your .cpp files needs to see the declarations in...
hi, Great effort for just 1 week of study :) There are a few things you can do to improve your code though. First, to get it to compile, you'll need to place opening and closing parenthesis around the code in your if statement. This is necessary whenever you have more than one line of code to...
hey, Have you downloaded the Adobe Acrobat SDK? With it, you can write a plugin that will do that. All the tuts and reference information on how to do it is contained in the download. You can find it here:
http://partners.adobe.com/asn/tech/pdf/acrobatsdks.jsp
Hope thats what you were...
Thanks for the speedy reply :) Sounds like a good approach, I will definately give it some consideration. Might know of another way but I don't know if it would even be feasible and how to go about implementing it. I was thinking that maybe the client could go through an enumeration process...
Hello,
I'm writing a client using winsock that needs to be able to detect or locate a server (writing this one too) running on the same LAN. The client will not know in advance what the server's IP is and does not prompt the user for this information. Does anybody know how I can go about...
Hi, I'm having a problem with the following code. What I would like it to do is to print out two lines of text. I use the characters' height (obtained from a call to GetTextMetrics) to place the second line of text below the first line. For some reason though, when it prints, the second line...
All of a sudden all my reports and any new reports that I create don't export to excel correctly if they contain a time field. When I export to excel and the report contains a time field the cell in excel just appears as ############################ for ever regardless of the format of the time...
In my report I group by day and in each day the agents working a phone system are listed with information like logged in time, calls answered etc. At the end of each group I work out the average for that day (i.e. average logged in time). However, I only want to find the average of agents...
I guess I could manually create a legend using the drawing and text tools but that would be a major inconvenience. Also my chart is not based on a fixed period but rather a random number of days so it wouldn't work.
I think I'm going to have to export to excel.
I must say that the charting tools in crystal reports are very poor indeed. Excel is far superior. For one time doesn't seem to work properly in my charts (see my other post) and you can't do a range of times either. 8:00, 8:01 and 9:00 appear the same distance apart when they should be...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.