ok, i do this code in C in visual studio:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ClassLibrary1
{
public class Sum
{
public double SumNumber(double num1, double num2)
{
return num1 + num2;
}
}
}
now, in rpg maker, i try use the dll as well
Win32API.new('ClassLibrary1','SumNumber','ll','l')
but i get error: GetProcAddress: SumNumber or SumNumberA
so i think my code is missing something.
Question:
Someone know that code I need to put in the DLL to avoid that error?
Question 2
Someone could put the code in the dll to build a "Hello World!" and in the RPG maker call this as well
helloworld=
Win32API.new('HelloWorld','talkme','','P')
p
helloworld.call => Hello World!
thanks all and sorry for my english
PS) These examples serve me long to start building some dll that I have thought