hey all
once again i need your technical expertise.
i am using DEV-C++ 4.9.9.2
and when i compile my dll i get the following Error
GetdefaultPrinerA undeclared (first ust this function)
this is the code of my dll
Code:
#include "NativeWindowsPrinter.h"
#include <windows.h>
#include <stdio.h>
#include <Winspool.h>
BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ ,
DWORD reason /* Reason this function is being called. */ ,
LPVOID reserved /* Not used. */ )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
/* Returns TRUE on success, FALSE on failure */
return TRUE;
}
JNIEXPORT jstring JNICALL Java_be_ikmo_print_NativeWindowsPrinter_ngetDefaultPrinter
(JNIEnv * env, jobject obj)
{
LPTSTR pPrinterName;
LPDWORD pdwBufferSize;
if(!GetDefaultPrinter(pPrinterName, pdwBufferSize))
return env->NewStringUTF("sdfqsdfqs");
return env->NewStringUTF(pPrinterName);
}
can anybody help me out with this problem
thanks in advance