View Single Post
Old 09-05-2006, 07:55 PM   #8 (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

I scanned the directory and deleted all the other compiles of the dll... I had it compile to several dirs... but that wasn't the problem. I tried commenting out the import of the RlCalc, but no dice there. I don't quite know if I am importing it right, but here is my calling code (minus th' windows stuff):XXXXXXXXXXXXXXXXX

(/*
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

CPPFILE:

/*
Rank Library Expantions
*/

#include <windows.h>
extern "C"
{
#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;

CONTEND X-ED

MessageBox(NULL, text, title, MB_ICONEXCLAMATION);

}

Yeah... so I though I fixed it once, but it turns out I was using a different project. The functions work if they are in a normal H file... so... whee.

Hey, should I be including the H file with my project too? I am linking to the .lib file, so I figured I didn't need to... should I?
Plasmarobo is offline