I'm working with a legacy class that looks like this:
class A
{
enum Flags { One = 1, Two = 2 };
};
I'd like to pull out all the enums into a new namespace defined in a new header:
// flags.h
namespace flags {
enum Flags { One = 1, Two = 2 };
};
Then pull these enums back into the class so that I can include just the flags.h...
I added #ifndef..#define..#endif to a file of my project and the compiler fails. As soon as I remove it or put any other name in the define it compiles fine. What could be the problem?
Sounds like the file is already declared, but I do not know where. I'm fine just removing it, but I really want to know why this is happening.
error:...
I realize that you can't 100% know that this will work in all browsers. All I care about is IE 8, Chrome, and Firefox. I need some base headers that I can put at the top of my PHP pages to allow the Forward/Back buttons to load the cache.
Update: on every page I have a logged in user box at the top of the page which gives the user acc...
import httplib
conn = httplib.HTTPConnection(head)
conn.request("HEAD",tail)
res = conn.getresponse()
print res.status
I am currently using this to get the HTTP header code of a file.
However, it seems like this code DOWNLOADS the file, and then gets the code.
However, some files are actually video files...and it would be ineffi...
I have a form that posts to a processing script which checks for errors in the post. Depending on the processing it header redirects to another location. This appeared to work but I have just noticed that is still executing stuff after the header.
What is going on?
...
Hi, i have this code in flex:
<mx:Application ... >
....
<mx:DataGrid id="filtros" styleName="grid" rowCount="10" dataProvider="{_larcFiltros}" allowMultipleSelection="true" >
<mx:columns>
<mx:DataGridColumn dataField="titulo" textAlign="left">
<mx:headerRenderer>
<mx:Component> ...
in C++ when i get an error that says xxxxx does not name a type in yyy.h
What does that mean?
yyy.h has included the header that xxxx is in.
Example, I use:
typedef CP_M_ReferenceCounted FxRC;
and I have included CP_M_ReferenceCounted.h in yyy.h
I am missing some basic understanding, what is it?
...
Hi,
Simple issue: I am using Accordion without any UI themes (just barebones, using my own CSS).
So far, so good, except that I cannot figure out how to set an "active" style for the currently selected header.
The jQuery code:
$("#menu").accordion({
event:"mouseover",header:"a.top"
});
The HTML code:
<a href="#" class="top">XXX1</...
Is there a blanket rule in terms of how javascript should be loaded. I'm seeing people saying that it should go on the end of the page now.
Thoughts?
...
I'm working on a site that was recently moved. After the move all the scripts that use the php mail() function AND have MIME-Version: and Content-type in the header fail to display correctly. They show up like this
Delivered-To: [email protected] Received: by 10.114.121.18 with SMTP id t17cs128223wac;
Thu, 19 Nov 2009 11:52:35 -0...
I have a site that uses a CSS sprite for all the images.
I set the .htaccess file to set the expired headers to a future time as they recommend to improve site performance.
However, when I updated the sprite image none of my browsers on two different computers seem to fetch the new image.
I deleted the .htaccess serveral times but no l...
I talked to my instructor the other day and asked him this question. He told me that I could go for smaller projects, but I'm starting a chess program and I was wondering what Stack Overflow thinks about this issue. Should I include all headers into one file, or separate them?
...
I am using the Infragistics' Ultra webgrid. What i am trying to do is this:
my grid has two levels. i have a checkbox in the header of each level,as well as on every row of the grid(using cell and header templates).
when i check the checkbox located in the header of the second level, all the rows below the header must get checked i.e. th...
I need to suppress an already set session cookie header, but I cannot find any way to do this.
Why?
I need to make an image, sent by a PHP script, cacheable by the end user; this image is used to track if a newsletter has been read by the receiver, so if the image is requested I know the newsletter has been read. I only need to know whe...
well am trying to use the header to send information, but my html is already outputting information, I tried to fix the problem by using the ob_start() function to no avail
ob_start();
require('RegisterPage.php');
if(isset($_POST['register']))
{
if(register($errormsg,$regnumber))
{
$to = $_POST['ema...
Does anybody have a nice well structured starting comment for a file? I'm looking for something that looks nice, either fancy or very professional.
By general comment I mean the comment at the top of a file showing your name and purpose of the file. Like this one:
/********************************************************
...
I have a php-apache website on which I am trying to track download conversions using Google Analytics. I want my users to initiate the download and be redirected to a "thank you" page in one click. The way I'm envisioning this is:
The user clicks one of several download buttons which sends them to a generic thankyou.php page, and passes...
I am using the PagedCollectionView for grouping. I have a DataGrid and a textbox with a search button. The ItemSource of the grid is my PagedCollectionView, and the PagedCollectionView wraps an ObservableCollection because items in the grid can have their bound objects updated by a background process. When you click search, I first clea...
Hello. So I have this output on my page.. not understanding why I have it popping up. I'm new to php though, so maybe it's something easy to fix
-I have a header.php file, which includes all important info, as well has the banner of the page. This header.php is included on every page.
-I have it checking the session value to make sure ...
Hi,
I have a strange problem here: If I try to download more than one file with the same download script (I've tried 5 different scripts found on php.net), the first goes well but the second has a delay of about 60 seconds from the time of its request. If I cancel the first download, then the second starts suddenly.
I've tested direct f...