177 Topics

Member Avatar for
Member Avatar for yye

Hi, I want to declare an array of constant values in my header file, and this array cannot be changed in the main code. const uchar x[4] = {1, 2, 3, 4} does not work, cos the linker will complain that the address space overflow. Is there any way to …

Member Avatar for Moschops
0
340
Member Avatar for harryhaaren

Hey All, I've been stumbling into the same (annoying little) problem a couple of times, and I'd like to find out how to fix it properly. Pseudo code [code=c++] // file A.hpp #include "classB.hpp" class A { A() }; // file A.cpp A::A() { } [/code] [code=c++] // file B.hpp …

Member Avatar for mazzica1
0
164
Member Avatar for lastgame2007

anyone can help me with this error what does it do? im working on with my LOGIN script, and when i tried to run the script. what does it mean? anyone, thanks!:) Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\MEA\connect.php:7) in C:\xampp\htdocs\MEA\testlog.php on line …

Member Avatar for pritaeas
0
123
Member Avatar for phfilly

Just something small and I'm not sure how to do it. What I want to do when the user cannot be found in my DB then it should: 1. Print out -I wanted to use a pop-up to inform the user that he has entered incorrect log in details. Which …

Member Avatar for phfilly
0
249
Member Avatar for Zssffssz

I am MAD. Google was useless in this sense. I want to make a header file/ external reusable .cpp. AND I WANT EVERY LITTLE DETAIL. I just can't find anything. I just want to put a few functions I use all the time in it. PLEASE... Great now I'm sad. …

Member Avatar for Zssffssz
0
133
Member Avatar for cgull

Hello, I know this question was answered many times, and I looked at the answers but still can't find a solution. I have an index file that includes a contact form. The contact form action is itself, and if the form succeeds it should redirect to index.php?content=thankyou Althought the form …

Member Avatar for cgull
0
192
Member Avatar for James19142

i made a header file with my function declarations and the cpp file with the definitions. While making the definitions in the .cpp file i included the header and from the highlighted text the definitions seemed to match declarations in the header. In the header the the declarations were able …

Member Avatar for James19142
0
852
Member Avatar for MichaelBerh

I am trying to make my website display a different header depending on the page. If the page is 'index.php', it should include 'index-header.php'. If it isn't 'index.php', then it should include 'page-header.php'. So far, I have the following code: [CODE] <?php if($_SERVER[SCRIPT_NAME] == '/index.php'){include (index-header.php);} else { include ('page-header.php'); …

Member Avatar for cwarn23
0
159
Member Avatar for Zssffssz

How much longer until I'm the king of typos and stupid questions? Ok well in a different thread of mine there was a reference to BIOS.h. Does anyone know where to download it (If I don't have it comp making tarball sooo slow) or/and what's in it. I want to …

Member Avatar for pseudorandom21
0
324
Member Avatar for dgreene1210

This is my header file i want to use [CODE]#include <stdio.h> #define my #define LABOR_COST 0.35 #define TAX_RATE .085 void read_data(int* length, int* width, int* customerdiscount, double* costpersquarefoot); void calculate_values(int length, int width, int customerdiscount, double costpersquarefoot, int* area, double* carpetcharge, double* laborcharge, double* installedpricecharge, double* discountcharge, double* subtotalcharge, double* …

Member Avatar for gerard4143
0
167
Member Avatar for Triarius

Can somebody please tell me what am I doing wrong? I have created a so called "game" and I have decided to add some random events. That's where I got this nasty error which I do not know how to dispose of. [CODE] #ifndef FUNC_H #define FUNC_H #include <iostream> #include …

Member Avatar for Narue
0
223
Member Avatar for Epicurus

I've created a new class called BulletList2(linked list) using the built in dialog(File>New Class) which created a header file called bulletlist.h (in project folder>include) and a source file called bulletlist2.cpp(in project folder > src). header file [CODE=c++]#ifndef BULLETLIST2_H #define BULLETLIST2_H class BulletList2 { [...] } #endif // BULLETLIST2_H [/CODE] In …

Member Avatar for Epicurus
0
3K
Member Avatar for whiteyoh

Hi All, Im trying to get my mail to display like the following From: Paul "paul@paul.com" Reply to Customer Services // with the email only showing when clicking reply my current headers are set to [code] $headers .= "To: " . $dsv_to . " <" . $dsv_to . ">\r\n"; $headers …

Member Avatar for pritaeas
0
86
Member Avatar for cgull

Hello, I have a new website that I have created, and when I test it and submit the contact form I get this error: Warning: Cannot modify header information - headers already sent by (output started at /home/breadan1/public_html/clunyanimaltrust.za.org/index.php:7) in /home/breadan1/public_html/clunyanimaltrust.za.org/content/fgcontactform.php on line 143 I googled it, tried everything that I …

Member Avatar for cgull
0
492
Member Avatar for techlawsam

[CODE]// This is traditionally the first program written using System; namespace HelloWorldProgram { class HelloWorld { static void Main() { Console.WriteLine("Hello World!"); } } }[/CODE] I dont get why the statements in the body end with a " ; " but nothing is placed at the end of method headings. …

Member Avatar for Momerath
1
140
Member Avatar for LloydFarrell

Hi, I have been going round in circles for the past few hours and I need some help please with the following header location. [code]header("location: http://www.websitename/members/securecode/index.php");[/code] I have a login script that works great until i get to line 81 ?? the above header location. here is my script - …

Member Avatar for Kadafiz
0
479
Member Avatar for ben1996123

I just watched this tutorial: [url]http://www.youtube.com/watch?v=NTip15BHVZc[/url] and tried it myself, but I could not get it to work, I get these errors: [CODE]||=== 15. Placing classes in separate files, Debug ===| C:\Program Files (x86)\CodeBlocks\programs\tutorials\15. Placing classes in separate files\src\testClassFile.cpp|1|error: testClassFile.h: No such file or directory| C:\Program Files (x86)\CodeBlocks\programs\tutorials\15. Placing classes …

Member Avatar for ben1996123
0
1K
Member Avatar for TrustyTony

This does not look very efficient with transponation, sort and transponation back, so I am happy to hear about better alternatives.

Member Avatar for TrustyTony
0
328
Member Avatar for tobeeornot

Hi all, I am new to this forum. It looks very helpful. Any solutions to this problem would be greatly appreciated. I have created a main nav area set just below the header container to reveal rounded rollover images as buttons using css but I am having a lot of …

Member Avatar for tobeeornot
0
215
Member Avatar for katties

I wonder which one is better: adding header image with img src in html, or as a background in CSS. Also, in source code I can specify alt (for accessibility). I know IE6 has issues with transparent png. What is your practice?

Member Avatar for twiss
0
119
Member Avatar for tikoti

Hi all! I've read forward declaration is much prefered than include in header files mainly because it reduces the compilation time. Other reasons? My particular situation is that all header files that I use are within a namespace. I've seen two different ways for forward declaration in this case: [CODE] …

Member Avatar for tikoti
0
194
Member Avatar for psyb0rg

I'm trying to upload a file to a remote server using curl. The server requires that the file contents should be in the post body and the file name should be in the header. This is the code I', using : [CODE] $fp = fopen($fileLocation, "r"); $ch = curl_init(); curl_setopt($ch, …

Member Avatar for gieseni
0
1K
Member Avatar for jrotunda85

Let's say I have the majority of my site in the 'root' WWW directory on the server, such as: [url]www.domain.com/index.php[/url] My current header & footer files are set to respect this configuration and work beautifully. I am now in the process however of creating a new directory which will be …

Member Avatar for almostbob
0
472
Member Avatar for arjani10

Hello!I need help about this code[CODE]<? Header( "Location: http://mysite.info/video.php?id=myid" ); ?>[/CODE] can someone help me please how to get id in that header? i try this [CODE]<? Header( "Location: http://mysite.info/video.php?id=$id" ); ?>[/CODE] but i get error in that code.Thank you in advance.

Member Avatar for arjani10
0
448
Member Avatar for geekman92

Hi i need to make a [B]BASIC[/B] HTTP server for a project using [B]JUST[/B] TCP/IP Sockets so please don't suggest anything that would use some of C#'s higher level networking components, Thanks =). [B]Anyway my problem:[/B] i have created the server and it all works so far but i haven't …

Member Avatar for geekman92
0
245
Member Avatar for ukfreak

Hi, I'm a newbie to C sharp and ASP.Net. I have created a web form header.aspx, so i would like know to how to make that header page appear on the master page so that it will appear all the time when the content is loaded. On the header page …

0
86
Member Avatar for jackmaverick1

Hi, I'm trying to make my own library so that I know the names of the functions and can use them more simply. Also, I normally don't get the File I/O right so if I write the Library once, then I can use it over and over again (without having …

Member Avatar for jackmaverick1
0
176
Member Avatar for ChaosCoder

What I'm trying to do is parse a CSV file that has column headers, and map those headers - ideally to a class. The tricky part is that I need to be able to support various mappings because it will be interacting with different systems that give the headers different …

Member Avatar for ChaosCoder
0
1K
Member Avatar for Kniggles

can anyone see where i am not reciving the results I am looking for ? please, [CODE] ?><META name=GENERATOR content="MSHTML 8.00.7600.16722"><?session_start();if(!session_is_registered(myusername)){header("location:main_login.php"); } ?> <P> <? echo "PLAYER:" .'($myusername)';?>[/CODE] this code is spose to echo out the players login name from the check_login.php page from before. thanks.

Member Avatar for Kniggles
0
203
Member Avatar for fcvolunteer

Hi, I'm new to this forum and need a little bit of help. I made a site using tables rather than css for the format but when it wasn't showing up correctly in different browsers and screen resolutions I decided to fix it (with help from some people who know …

Member Avatar for fcvolunteer
0
256

The End.