/trunk/DLL Usage Demo/C++/CurConv.h |
---|
16,11 → 16,8 |
const HRESULT E_VTSCONV_GENERIC_FAILURE = 0xA0000000; // Failure, Customer defined, Facility 0, Code 0 |
const HRESULT E_VTSCONV_BAD_ARGS = 0xA0000001; // Failure, Customer defined, Facility 0, Code 1 |
#ifdef BUILDING_DLL |
#define CURCONV_API extern "C" __declspec(dllexport) __stdcall |
#else |
#define CURCONV_API extern "C" __declspec(dllimport) __stdcall |
#endif |
//#define CURCONV_API extern "C" __declspec(dllimport) |
#define CURCONV_API extern "C" __stdcall |
CURCONV_API HRESULT DeleteAPIKey(BOOL UserMode, BOOL DontShowErrors); |
30,8 → 27,8 |
CURCONV_API HRESULT ReadAPIKeyW(LPWSTR key, BOOL DontShowErrors); |
CURCONV_API HRESULT ReadAPIKeyA(LPSTR key, BOOL DontShowErrors); |
CURCONV_API float ConvertW(float Value, LPCWSTR CurFrom, LPCWSTR CurTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate); |
CURCONV_API float ConvertA(float Value, LPCSTR CurFrom, LPCSTR CurTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate); |
CURCONV_API double ConvertW(double Value, LPCWSTR CurFrom, LPCWSTR CurTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate); |
CURCONV_API double ConvertA(double Value, LPCSTR CurFrom, LPCSTR CurTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate); |
CURCONV_API int AcceptedCurrenciesW(LPWSTR WriteTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate); |
CURCONV_API int AcceptedCurrenciesA(LPSTR WriteTo, int MaxAge, CURCONV_FLAGS Flags, DATE HistoricDate); |
/trunk/DLL Usage Demo/C++/Makefile.win |
---|
0,0 → 1,33 |
# Project: Demo |
# Makefile created by Dev-C++ 5.11 |
CPP = g++.exe -D__DEBUG__ |
CC = gcc.exe -D__DEBUG__ |
WINDRES = windres.exe |
RES = Projekt1_private.res |
OBJ = main.o $(RES) |
LINKOBJ = main.o $(RES) |
LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib32" -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32" -static-libgcc CurConv.dll -m32 -g3 |
INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" |
CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++" |
BIN = Projekt1.exe |
CXXFLAGS = $(CXXINCS) -m32 -g3 |
CFLAGS = $(INCS) -m32 -g3 |
RM = rm.exe -f |
.PHONY: all all-before all-after clean clean-custom |
all: all-before $(BIN) all-after |
clean: clean-custom |
${RM} $(OBJ) $(BIN) |
$(BIN): $(OBJ) |
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) |
main.o: main.cpp |
$(CPP) -c main.cpp -o main.o $(CXXFLAGS) |
Projekt1_private.res: Projekt1_private.rc |
$(WINDRES) -i Projekt1_private.rc -F pe-i386 --input-format=rc -o Projekt1_private.res -O coff |
/trunk/DLL Usage Demo/C++/Projekt1.dev |
---|
0,0 → 1,82 |
[Project] |
FileName=Projekt1.dev |
Name=Demo |
UnitCount=2 |
Type=1 |
Ver=2 |
ObjFiles= |
Includes= |
Libs= |
PrivateResource=Projekt1_private.rc |
ResourceIncludes= |
MakeIncludes= |
Compiler=_@@_ |
CppCompiler=_@@_ |
Linker=CurConv.dll_@@_ |
IsCpp=1 |
Icon=Projekt1.ico |
ExeOutput= |
ObjectOutput= |
OverrideOutput=0 |
OverrideOutputName=Projekt1.exe |
HostApplication= |
Folders= |
CommandLine= |
UseCustomMakefile=0 |
CustomMakefile= |
IncludeVersionInfo=0 |
SupportXPThemes=0 |
CompilerSet=4 |
CompilerSettings=0000000100000000001000000 |
LogOutput= |
LogOutputEnabled=0 |
[Unit1] |
FileName=main.cpp |
CompileCpp=1 |
Folder= |
Compile=1 |
Link=1 |
Priority=1000 |
OverrideBuildCmd=0 |
BuildCmd= |
[VersionInfo] |
Major=0 |
Minor=1 |
Release=1 |
Build=1 |
LanguageID=1033 |
CharsetID=1252 |
CompanyName= |
FileVersion=0.1.1.1 |
FileDescription=Developed using the Dev-C++ IDE |
InternalName= |
LegalCopyright= |
LegalTrademarks= |
OriginalFilename= |
ProductName= |
ProductVersion= |
AutoIncBuildNr=0 |
SyncProduct=0 |
[Unit3] |
FileName=testdll.cpp |
CompileCpp=1 |
Folder= |
Compile=1 |
Link=1 |
Priority=1000 |
OverrideBuildCmd=0 |
BuildCmd= |
[Unit2] |
FileName=CurConv.h |
CompileCpp=1 |
Folder= |
Compile=1 |
Link=1 |
Priority=1000 |
OverrideBuildCmd=0 |
BuildCmd= |
/trunk/DLL Usage Demo/C++/Projekt1.ico |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/DLL Usage Demo/C++/Projekt1.layout |
---|
0,0 → 1,24 |
[Editor_0] |
CursorCol=1 |
CursorRow=10 |
TopLine=1 |
LeftChar=1 |
Open=0 |
Top=0 |
[Editor_1] |
CursorCol=1 |
CursorRow=7 |
TopLine=1 |
LeftChar=1 |
Open=1 |
Top=0 |
[Editor_2] |
CursorCol=1 |
CursorRow=10 |
TopLine=1 |
LeftChar=1 |
Open=1 |
Top=1 |
[Editors] |
Focused=1 |
Order=1,0 |
/trunk/DLL Usage Demo/C++/Projekt1_private.h |
---|
0,0 → 1,23 |
/* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ |
/* DO NOT EDIT ! */ |
#ifndef PROJEKT1_PRIVATE_H |
#define PROJEKT1_PRIVATE_H |
/* VERSION DEFINITIONS */ |
#define VER_STRING "0.1.1.1" |
#define VER_MAJOR 0 |
#define VER_MINOR 1 |
#define VER_RELEASE 1 |
#define VER_BUILD 1 |
#define COMPANY_NAME "" |
#define FILE_VERSION "0.1.1.1" |
#define FILE_DESCRIPTION "Developed using the Dev-C++ IDE" |
#define INTERNAL_NAME "" |
#define LEGAL_COPYRIGHT "" |
#define LEGAL_TRADEMARKS "" |
#define ORIGINAL_FILENAME "" |
#define PRODUCT_NAME "" |
#define PRODUCT_VERSION "" |
#endif /*PROJEKT1_PRIVATE_H*/ |
/trunk/DLL Usage Demo/C++/Projekt1_private.rc |
---|
0,0 → 1,5 |
/* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */ |
/* DO NOT EDIT! */ |
A ICON "Projekt1.ico" |
/trunk/DLL Usage Demo/C++/Projekt1_private.res |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/DLL Usage Demo/C++/main.cpp |
---|
0,0 → 1,13 |
#include <cstdlib> |
#include <iostream> |
#include "CurConv.h" |
using namespace std; |
int main(int argc, char *argv[]) |
{ |
printf("10 USD = %f EUR\n", ConvertA(10, "USD", "EUR", 1*60*60, CONVERT_FALLBACK_TO_CACHE, 0)); |
system("PAUSE"); |
return EXIT_SUCCESS; |
} |
/trunk/DLL Usage Demo/C++ |
---|
Property changes: |
Added: svn:ignore |
+*.o |