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 » U++ Library support » U++ Core » DLI does not compile
DLI does not compile [message #13934] Fri, 01 February 2008 23:14 Go to next message
sheepdog is currently offline  sheepdog
Messages: 2
Registered: February 2008
Junior Member
I am new to U++ and attempting to write an app that calls a function in a DLL on Windows XP. The dli file looks like this:
FN(long,LabView_wrapper,(int *array1, int array1len, int *array2, int array2len, int *array3, int array3len, int *array4, int array4len, int num1, int num2, int num3, int *num4, int *num5, int *num6))

and the BeatPickerTest.cpp file looks like this:
#include <Core/Core.h>
#define DLLFILENAME "QrsOne_500sps.dll"
#define DLIMODULE   QRSONE_500SPS
#define DLIHEADER   <BeatPickerTest.dli>
#define DLLCALL     LNPUBLIC
#include <Core/dli.h>

CONSOLE_APP_MAIN
{
	
}


and the error says,
Quote:

BeatPickerTest.cpp
C:\MyApps\BeatPickerTest\BeatPickerTest.dli(1) : error C2146: syntax error : missing ')' before identifier 'LabView_wrapper_type'
C:\MyApps\BeatPickerTest\BeatPickerTest.dli(1) : error C2146: syntax error : missing ';' before identifier 'LabView_wrapper_type'
C:\MyApps\BeatPickerTest\BeatPickerTest.dli(1) : error C2059: syntax error : ')'
C:\MyApps\BeatPickerTest\BeatPickerTest.dli(1) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\MyApps\BeatPickerTest\BeatPickerTest.dli(1) : warning C4183: 'LabView_wrapper_type': missing return type; assumed to be a member function returning 'int'
C:\MyApps\BeatPickerTest\BeatPickerTest.dli(1) : error C2143: syntax error : missing ';' before '*'
C:\MyApps\BeatPickerTest\BeatPickerTest.dli(1) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\MyApps\BeatPickerTest\BeatPickerTest.dli(1) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\MyApps\BeatPickerTest\BeatPickerTest.dli(1) : error C2065: 'LabView_wrapper' : undeclared identifier
BeatPickerTest: 1 file(s) built in (0:01.64), 1641 msecs / file, duration = 1656 msecs


I would be grateful for any help.
Re: DLI does not compile [message #13936 is a reply to message #13934] Fri, 01 February 2008 23:46 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Do you have

using namespace Upp;

before it?

If yes, you can try Build/Preprocess and examine...

If still problem, you can zip the whole package and upload here....

Mirek
Re: DLI does not compile [message #13977 is a reply to message #13936] Mon, 04 February 2008 19:21 Go to previous messageGo to next message
sheepdog is currently offline  sheepdog
Messages: 2
Registered: February 2008
Junior Member
Added using namespace Upp; without fixing the problem. I looked at the preprocessor output but saw nothing obviously wrong. The entire project is attached.
Re: DLI does not compile [message #13993 is a reply to message #13977] Tue, 05 February 2008 18:41 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
#include <Core/Core.h>

using namespace Upp;

#define DLLFILENAME "QrsOne_500sps.dll"
#define DLIMODULE   QRSONE_500SPS
#define DLIHEADER   <BeatPickerTest/BeatPickerTest.dli>
//#define DLLCALL     LNPUBLIC

#include <Core/dli.h>

CONSOLE_APP_MAIN
{
	
}


(LNPUBLIC is not defined at that point, I guess you will have to add the definition, or maybe it will work without it....)

Mirek
Previous Topic: Limitation in Format() function?
Next Topic: Real newbie question about copying values
Goto Forum:
  


Current Time: Thu May 16 21:34:40 CEST 2024

Total time taken to generate the page: 0.02543 seconds