summaryrefslogtreecommitdiffstats
path: root/utils/MTP/MTP_DLL
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-03 23:30:28 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-07-03 23:30:28 +0000
commit936650104dc1ecf0114ea606f86741e18c7f3465 (patch)
treec1e69acd3a6a7488a6059c2bd985593e0dd38374 /utils/MTP/MTP_DLL
parentb42a51bf6425539793326cfec4a1f4219b0be8ff (diff)
downloadrockbox-936650104dc1ecf0114ea606f86741e18c7f3465.tar.gz
rockbox-936650104dc1ecf0114ea606f86741e18c7f3465.tar.bz2
rockbox-936650104dc1ecf0114ea606f86741e18c7f3465.zip
Add example program + fix some mistakes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17933 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/MTP/MTP_DLL')
-rwxr-xr-xutils/MTP/MTP_DLL/MTP_DLL.dllbin90112 -> 0 bytes
-rw-r--r--utils/MTP/MTP_DLL/MTP_DLL.h4
-rw-r--r--utils/MTP/MTP_DLL/MTP_DLL.vcproj2
-rw-r--r--utils/MTP/MTP_DLL/sendfirm_win.cpp3
4 files changed, 7 insertions, 2 deletions
diff --git a/utils/MTP/MTP_DLL/MTP_DLL.dll b/utils/MTP/MTP_DLL/MTP_DLL.dll
deleted file mode 100755
index 01e7c1f72d..0000000000
--- a/utils/MTP/MTP_DLL/MTP_DLL.dll
+++ /dev/null
Binary files differ
diff --git a/utils/MTP/MTP_DLL/MTP_DLL.h b/utils/MTP/MTP_DLL/MTP_DLL.h
index a2d7c76fdb..45352830a3 100644
--- a/utils/MTP/MTP_DLL/MTP_DLL.h
+++ b/utils/MTP/MTP_DLL/MTP_DLL.h
@@ -9,3 +9,7 @@
#else
#define MTP_DLL_API __declspec(dllimport)
#endif
+
+extern "C" {
+__declspec(dllexport) bool send_fw(LPWSTR file, int filesize);
+}
diff --git a/utils/MTP/MTP_DLL/MTP_DLL.vcproj b/utils/MTP/MTP_DLL/MTP_DLL.vcproj
index d7234bb610..295ef49d80 100644
--- a/utils/MTP/MTP_DLL/MTP_DLL.vcproj
+++ b/utils/MTP/MTP_DLL/MTP_DLL.vcproj
@@ -140,7 +140,7 @@
AdditionalDependencies="mssachlp.lib"
LinkIncremental="1"
AdditionalLibraryDirectories="d:\wmsdk\wmfsdk95\lib,d:\wmsdk\wmfsdk95\wmdm\lib"
- GenerateDebugInformation="true"
+ GenerateDebugInformation="false"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
diff --git a/utils/MTP/MTP_DLL/sendfirm_win.cpp b/utils/MTP/MTP_DLL/sendfirm_win.cpp
index 12c3e3e88b..9a46e51cbd 100644
--- a/utils/MTP/MTP_DLL/sendfirm_win.cpp
+++ b/utils/MTP/MTP_DLL/sendfirm_win.cpp
@@ -20,7 +20,7 @@
* Link to "mssachlp.lib"
*
*/
-
+extern "C" {
__declspec(dllexport) bool send_fw(LPWSTR file, int filesize)
{
bool return_value = false;
@@ -158,6 +158,7 @@ __declspec(dllexport) bool send_fw(LPWSTR file, int filesize)
return return_value;
}
+}
/*
* Example code: