Home » Community » Newbie corner » DLI Problem...
Re: DLI Problem... [message #34809 is a reply to message #34808] |
Tue, 13 December 2011 15:55  |
Wolfgang
Messages: 146 Registered: November 2011 Location: Germany
|
Experienced Member |
|
|
Found a post that said that
is a problem, edited it and it compiles without error:
main.cpp
#include "test.h"
#define DLLFILENAME "E:\\Ultimate++\\MyApps\\test\\ImapX.dll"
#define DLIMODULE ImapX
#define DLIHEADER <test/ImapX.dli>
//#define DLLCALL LNPUBLIC
#include <Core/dli.h>
test::test()
{
CtrlLayout(*this, "Window title");
if (ImapX()) PromptOK("OK");
/*
if (ImapX())
{
//Value client = ImapX().ImapClient("imap.gmail.com", 993, true);
} else PromptOK("NO INSTANCE");
*/
}
GUI_APP_MAIN
{
test().Run();
}
imapx.dli
FN(Value, ImapClient, (String,int,bool))
FN(bool, Connection, (void))
But the application never appears, it gets killed just after its execution. If i change the link to the dll to a wrong place it compiles and runs.. (i think cause of the dll dont get loaded..)
|
|
|
Goto Forum:
Current Time: Mon Jul 07 07:14:49 CEST 2025
Total time taken to generate the page: 0.05082 seconds
|