making a really simple dll.

Charles McAnany mcanance at rose-hulman.edu
Thu Aug 18 10:12:00 PDT 2011


Hi, all. I'm trying to write some efficient code for a macro in vba using a language
that I enjoy. I don't need any fancy operating system interaction, I just want to
write
int foo(int arg){
   return arg; //actual computation a bit more involved.
}

Compile it to dll and call it with vba.

I looked at the dll documentation and I'm baffled by the time I get to the first
line: __gshared HINSTANCE g_hInst; and then it starts talking about
dll_process_attach. I don't want to attach processes, I want to compute an integer.

Is there a simple way to make dlls, or is it going to be ugly to even write the
"Hello World" of dlls?
Cheers,
Charles


More information about the Digitalmars-d-learn mailing list