Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Daemon
Newbie


Joined: 19 Feb 2006
Posts: 1

PostPosted: Sun Feb 19, 2006 12:59 am   

Borland C Builder 6 plugin help needed
 
I am trying to write a plugin for zmud and I am using Borland C Builder 6 as you have already seen in the topic title.

In the project I have included zmudapi.lib which was created using implib
The code looks like this:

//file: headerfile1.h

__declspec(dllimport) void InitAPI(unsigned); //also tried with integer type as argument

//file: dll module

#include <vcl.h>
#include <windows.h>
#include "headerfile1.h"
#pragma hdrstop
#pragma argsused

int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
InitAPI(0);
return 1;
}

I always get the error : "Unersolved external InitAPI(unsigned int) from ...."

Can someone point me what is wrong?

Thank you.[/code]
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net