Code:
#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
Code:
#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
Code:
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 grin


Last edited by DLively; 04/27/15 01:44.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com