include

Saving js file with c# commands...

<head runat="server"> <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title> <link href="../../Content/css/layout.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/Areas/CMS/Content/js/jquery-1.3.2.min.js"></script> <script type="text/javascript" ...

When is .h not needed to include a header file?

This works: #include <iostream> using namespace std; but this fails: #include <stdio> When is .h not needed? About the namespace issue,I didn't find such logic in cstdio: #pragma once #ifndef _CSTDIO_ #define _CSTDIO_ #include <yvals.h> #ifdef _STD_USING #undef _STD_USING #include <stdio.h> #define _STD_USING #else /* _STD_...

Xerces-c and XERCES_TMPLSINC

I have found some strange lines in xerces-c. For example, in BaseRefVectorOf.hpp, there is the following at the end: #if !defined(XERCES_TMPLSINC) #include <xercesc/util/BaseRefVectorOf.c> #endif What is the purpose of this? Should I define XERCES_TMPLSINC or should I leave it as is? ...

Solving a difficult incomplete type error

I get an incomplete type error when trying to compile my code. I know that it is related to includes, but my project is large and it uses several templates so I can't find which type is actually incomplete. The error message doesn't help either: Compiling: ../../../addons/ofxTableGestures/src/Graphics/objects/CursorFeedback.cpp In file ...

PHP - How can I check if return() was called from an include()'d file?

How can I tell if return() was called from within the included file. The problem is that include() returns 'int 1', even if return() wasn't called. Here is an example... included_file_1.php <?php return 1; included_file_2.php <?php echo 'no return here, meep'; main.php <?php $ret = include('included_file_1.php'); // This file...

Xerces C++ SAX Parsing Problem: expected class-name before '{' token

I'm trying to run through an example given for the C++ Xerces XML library implementation. I've copied the code exactly, but I'm having trouble compiling it. error: expected class-name before '{' token I've looked around for a solution, and I know that this error can be caused by circular includes or not defining a class before it is ...

What does the .. in #include "../somefile.h" mean

Does it mean search the previous folder for somefile.h or the project folder for somefile.h? ...

How can I tar multiple files in Perl?

How can I tar multiple directories and also append files with some pattern like '.txt' and exclude some directories and exclude some patterns like '.exe' all into a single tar file. The main point is the number of directories are unknown(dynamic), so I need to loop through I guess? ...

Passing parameters to classic ASP include files

I have to use classic ASP to build a website. I want to be able to use include files for the header and footer. How do I pass variables to the include files so that I can affect such things as titles etc. Here is some examples of what I want to do: index.asp <% dim title title="TITLE" 'Server.Execute("header.inc") <--- Note I tried t...

IIS 5.1 virtual directory usage gives "The referenced account is currently locked out and may not be logged on to" for server-side include

I am attempting to use a virtual directory on my Windows XP machine that has IIS 5.1 installed. I have configured the virtual directory as "When connecting to this resource, the content should come from: A share located on another computer." I typed the network directory in the box (ex. \comptername.companyname.com\sharename), and in t...

C++ include header conventions

Suppose I have a file X.h which defines a class X, whose methods are implemented in X.cc. The file X.h includes a file Y.h because it needs Y to define class X. In X.cc, we can refer to Y because X.h has already included Y.h. Should I still include Y.h in X.cc ? I understand that I don't need to and I can depend on header guards to pr...

Tiles vs. JSP includes

We have a large web-app with hundreds of jsps pages. To avoid repeating markup up blocks we are considering making use of apache tiles. Now it seems messy to have a combination of both <t:insertTemplate template="/WEB-INF/templates/xxxxx.jsp"> and <%@ include file="xxxxx.jsp"%> statements so we are considering converting all includ...

cURL PHP: Connecting to Invoicing System

I am attempting to use cURL to connect to a page like this: https://clients.mindbodyonline.com/asp/home.asp?studioid=851 with the following code; <?php $curl_handle=curl_init(); curl_setopt($curl_handle,CURLOPT_URL,'https://clients.mindbodyonline.com/asp/home.asp?studioid=851'); //curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2); cur...

Enabling <> for headers in g++

I'm having an issue getting some code to work. Is there a way to enable headers to be included like so #include <boost/asio.hpp> Instead of #include "boost/asio.hpp" ...

PHP Included files writing their own content from Importer values ...

Hello, I have a index.php file that will include several external files: "content/templates/id1/template.php" "content/templates/id2/template.php" "content/templates/id3/template.php" etc. All these files are loaded dynamically into index.php (it reads all folders inside "templates" directory and then includes every "template.php" fil...

C++ include .h includes .cpp with same name as well?

I have text.cpp which includes header.h and header.cpp which includes header.h. Will header.cpp be compiled as well? I'm following a guide here, and I am thoroughly confused. Also, what is the correct terminology for what I am asking? I know I sound like a moron, and I apologize, but I'm ignorant. Oh, int main() is in test.cpp. Also,...

Including/Organzing HTML in large javascript project

Hi, I've a got a fairly large web app, with several mini applets on each page. These applets are almost always identical jquery apps. I am looking for advice on how I should organize/include smaller parts of these jquery apps within my larger project. For example, each app has several independent tabs. If possible, I would like to stor...

fatal error C1014: too many include files : depth = 1024

I have no idea what this means. But here is the code that it supposely is happening in. //======================================================================================= // d3dApp.cpp by Frank Luna (C) 2008 All Rights Reserved. //======================================================================================= #include "d...

EF4 LINQ Include(string) alternative to hard-coded string?

Is there any alternative to this: Organizations.Include("Assets").Where(o => o.Id == id).Single() I would like to see something like: Organizations.Include(o => o.Assets).Where(o => o.Id == id).Single() to avoid the hard-coded string "Assets". ...

PHP include once.

Is it more efficient to use PHP's include_once or require_once instead of using c-like include with a header guard? i.e, include_once 'init.php'; VERSUS include 'init.php'; //contents of init.php if (!defined('MY_INIT_PHP')) { define('MY_INIT_PHP', true); ... } ...