forked from len0rd/rockbox
Add example program + fix some mistakes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17933 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b42a51bf64
commit
936650104d
5 changed files with 10 additions and 2 deletions
Binary file not shown.
|
|
@ -9,3 +9,7 @@
|
||||||
#else
|
#else
|
||||||
#define MTP_DLL_API __declspec(dllimport)
|
#define MTP_DLL_API __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
__declspec(dllexport) bool send_fw(LPWSTR file, int filesize);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@
|
||||||
AdditionalDependencies="mssachlp.lib"
|
AdditionalDependencies="mssachlp.lib"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
AdditionalLibraryDirectories="d:\wmsdk\wmfsdk95\lib,d:\wmsdk\wmfsdk95\wmdm\lib"
|
AdditionalLibraryDirectories="d:\wmsdk\wmfsdk95\lib,d:\wmsdk\wmfsdk95\wmdm\lib"
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="false"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
OptimizeReferences="2"
|
OptimizeReferences="2"
|
||||||
EnableCOMDATFolding="2"
|
EnableCOMDATFolding="2"
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
* Link to "mssachlp.lib"
|
* Link to "mssachlp.lib"
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
extern "C" {
|
||||||
__declspec(dllexport) bool send_fw(LPWSTR file, int filesize)
|
__declspec(dllexport) bool send_fw(LPWSTR file, int filesize)
|
||||||
{
|
{
|
||||||
bool return_value = false;
|
bool return_value = false;
|
||||||
|
|
@ -158,6 +158,7 @@ __declspec(dllexport) bool send_fw(LPWSTR file, int filesize)
|
||||||
|
|
||||||
return return_value;
|
return return_value;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Example code:
|
* Example code:
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,8 @@ all: $(OUTPUT)
|
||||||
$(OUTPUT): sendfirm.c
|
$(OUTPUT): sendfirm.c
|
||||||
gcc $(CFLAGS) $(LIBS) -o $(OUTPUT) sendfirm.c
|
gcc $(CFLAGS) $(LIBS) -o $(OUTPUT) sendfirm.c
|
||||||
|
|
||||||
|
$(OUTPUT).exe: sendfirm_win.c
|
||||||
|
gcc $(CFLAGS) -o $(OUTPUT).exe sendfirm_win.c MTP_DLL.dll
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OUTPUT)
|
rm -f $(OUTPUT)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue