Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » DLI Problem...
DLI Problem... [message #34808] Tue, 13 December 2011 15:30 Go to previous message
Wolfgang is currently offline  Wolfgang
Messages: 146
Registered: November 2011
Location: Germany
Experienced Member
Hi,

I found an (maybe) interessting dll for use of imap
(http://hellowebapps.com/products/imapx/)
and want to play a little bit with it... so i try to include it in my upp project.

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_header.h>
test::test()
{
	CtrlLayout(*this, "Window title");
}
GUI_APP_MAIN
{
	test().Run();
}

test.h
#ifndef _test_test_h
#define _test_test_h

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

#define LAYOUTFILE <test/test.lay>
#include <CtrlCore/lay.h>

#define DLLFILENAME "E:\\Ultimate++\\MyApps\\test\\ImapX.dll"
#define DLIMODULE   ImapX
#define DLIHEADER   <test/imapx.dli>
#define DLLCALL     LNPUBLIC
#include <Core/dli_header.h>


class test : public WithtestLayout<TopWindow> {
public:
	typedef test CLASSNAME;
	test();
};

#endif

imapx.dli
FN(bool, Connection(), (void))


But with gives me
Quote:

E:\Ultimate++\MyApps\test/imapx.dli(1) : error C2146: syntax error : missing ')' before identifier 'Connection'
E:\Ultimate++\MyApps\test/imapx.dli(1) : error C2146: syntax error : missing ';' before identifier 'Connection'
E:\Ultimate++\MyApps\test/imapx.dli(1) : error C3646: '_type' : unknown override specifier
E:\Ultimate++\MyApps\test/imapx.dli(1) : error C2059: syntax error : ')'
E:\Ultimate++\MyApps\test/imapx.dli(1) : error C2091: function returns function
E:\Ultimate++\MyApps\test/imapx.dli(1) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


and so on... whats wrong?
 
Read Message
Read Message
Previous Topic: IMAP?
Next Topic: TheIDE refactoring and multiple packages build support?
Goto Forum:
  


Current Time: Sat May 04 21:04:02 CEST 2024

Total time taken to generate the page: 0.03249 seconds