#ifndef ACKNET_H
#define ACKNET_H
#define PRAGMA_BIND "acknet.dll";
var http_proxy(char* proxy,var port);
var http_sendpost(char* url, char* data);
var http_status(var httpid);
var http_result(var httpid, STRING* result);
var http_free(var httpid);
var ftp_download(char* url, char* path, char* username, char* password);
var ftp_upload(char* url, char* path, char* username, char* password);
var ftp_getdate(char* url, char* username, char* password);
void ftp_stop();
long ftp_size();
long ftp_sent();
long ftp_timestamp();
var ftp_status();
var ftp_debug(var mode);
#endif
I was Basing my original idea of how things are constructed with the above code. Is the dll I create being declared differently than this one?
I just dont understand how to put stuff into my dll.. I looked up a tutorial and came up with this:
.cpp file
#include <iostream>
using namespace std;
#include "SimpleHeader.h"
namespace nmspace
{
void myclass::Crap()
{
cout << "I'm called within a crappy DLL!";
}
}
and a dot.h file
namespace nmspace
{
class myclass
{
public:
static __declspec(dllexport) void Crap();
};
}
I then built this and now have a dll (SimpleDll.dll).. how can I use it in 3dgs, so it displays that message?(as a test)
EDIT:
Inside header file mydll.h
void Crap();
#define PRAGMA_API Crap;SimpleDll!Crap
I tried the above, but it said that it can't find crap..
But it initialized the dll