View Single Post
Old 09-03-2006, 06:00 PM   #2 (permalink)
Plasmarobo
 
Newb Techie

Join Date: Aug 2006

Posts: 11

Plasmarobo

Send a message via AIM to Plasmarobo Send a message via Yahoo to Plasmarobo
Default

Okay, I figured out most of the dll... but now I have it built and ready to go...mostly. There is one problem. When I try to use it, I get a Entry point not found error at runtime. The error specifies the last function in my dll... Here, I'll post the dll:
(HEADER FILE):
/*
Austens Rank Library Header
*/

#include <windows.h>


#ifndef RANKLIB_DLL_
#define RANKLIB_DLL_

extern "C" __declspec(dllexport) void RlSplash();
extern "C" __declspec(dllexport) void RlCalc(int iPerc, int iCode);

#endif

(CPP FILE (cut out the specific content))
/*
Rank Library Expantions
*/

#include <windows.h>
#include "RankLib.h"



int WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
{
return true;
}

extern "C" __declspec(dllexport) void RlSplash()
{
MessageBox(NULL, L"Austen made this Program!", L"Austen's Translator", MB_ICONASTERISK);
}

extern "C" __declspec(dllexport) void RlCalc(int iPerc, int iCode)
{

wchar_t *text;
wchar_t *title;

MessageBox(NULL, text, title, MB_ICONEXCLAMATION);

}
(END OF CODE)

If this forum supports code tags, let me know and I'll fix it.
Plasmarobo is offline