-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hallo
I want to connect my c++ class to tntnet.
I followed your example at the tntnet website.
My Class contains a function returning a string,
but if i want to output the string in tntnet, a page not found 404 occurs.
If i replaced the function claa with a static string, all works fine.
Code example:
version.ecpp
<%pre>
#include "cronback.h"
</%pre>
<{
CronBack backend;
}>
<$ backend.version() $> // at this point, if i replaced
//
backend.version() with "foobar"
// all works fine
cronbak.cpp
#include "cronback.h"
#include <string>
using namespace std;
string CronBack::version(){
string version;
version = "Some String \n";
version+= "Some other String";
return version;
}
cronback.h
#ifndef _CRONOSBACKEND_H_
#define _CRONOSBACKEND_H_
#include <string>
#include <time.h>
#include <iostream>
using namespace std;
class CronBack{
public:
string version();
};
#endif
what goes wrong?
All compiles fine, and i got a version.so, and thtnet starts
Greetings fom Germany
Christopher
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjc0wEACgkQTpMZF0Xd94sY3QCgnBA47y9xmuxmpR1gX1Gr7pRm
4hoAn25VMF5u7K9CTlm1/DekwQcgajir
=bJrl
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general