variable in html file

Discussion to talk about software related topics only.
Post Reply
newmi
Posts: 4
Joined: Mon Nov 03, 2008 5:00 am

variable in html file

Post by newmi »

hi, im new and im trying to get the example from the network programming guide working.
i just want to show the value of a variable in a html-file
here is my html-code.

Code: Select all

<HTML>
<BODY>
here comes the variable: 
Value = <!--VARIABLE testvar -->
</BODY>
</HTML>
and here is my c++ code:

Code: Select all

#include "predef.h"
#include <stdio.h>
#include <ctype.h>
#include <startnet.h>
#include <autoupdate.h>
#include <NetworkDebug.h>
#include <stdlib.h>
#include <string.h>
#include <constants.h>
#include <basictypes.h>
#include <buffers.h>
#include <utils.h>
#include <iosys.h>
#include <dns.h>
#include <ip.h>
#include <tcp.h>
#include <htmlfiles.h>



extern "C" {
void UserMain(void * pd);
}

const char * AppName="helloworldvar";
int testvar=9;

void UserMain(void * pd) {
    InitializeStack();
    OSChangePrio(MAIN_PRIO);
    EnableAutoUpdate();
    StartHTTP();
	//EnableSmartTraps(); // Enable Smart Traps
	//EnableTaskMonitor(); // Enable Task Scan
	
	
	
    #ifdef _DEBUG
    InitializeNetworkGDB_and_Wait();
    #endif
	testvar=50;
    iprintf("Application started\n");
    while (1) {
        OSTimeDly(20);
    }
}
if i try to build, a build error occures:
**** Build of configuration Release for project helloworld ****

m68k-elf-g++ -mcpu=5208 -O2 -gdwarf-2 -fno-rtti -fno-exceptions -IC:\Nburn\include -ID:\Projekte\robotArt\code\netburner\helloworld\html -IC:\Nburn\MOD5270\include -IC:\Nburn\gcc-m68k\m68k-elf\include -falign-functions=4 -Wall -Wno-write-strings -c -fmessage-length=0 -DMOD5270 -DNBMINGW ..\main.cpp -omain.o
m68k-elf-g++ -mcpu=5208 -Wl -Wl,-n -TC:\Nburn\MOD5270\lib\MOD5270.ld -Wl,-RC:\Nburn\MOD5270\lib\sys.ld -Wl,-Map=helloworld.map main.o htmldata.o -Wl,--start-group,C:\Nburn\lib\MOD5270.a C:\Nburn\lib\NetBurner.a C:\Nburn\lib\FatFile.a -Wl,--end-group -ohelloworld.elf
m68k-elf-g++: htmldata.o: No such file or directory
Build error occured, build is stopped
i dont know whats the problem. i dont understand the documentation. there is the variable-part half explained, then it goes over to 'functioncall', then there are different names in use, grrrr.

i really dont understand it. could anybody help please?
where is my error?
thx
newmi
Post Reply