2024-11-07 09:46 AM
I want to make a custom software (usb dfu programmer) under Windows with the help of Visual Studio, but I have no experience in the field of Windows until now (I was embedded side guy ). I have done some research now, but there are still bugs in my mind :
int downloadFile ( const wchar_t *filePath,unsigned int address,unsigned int skipErase,unsigned int verify, const wchar_t * binPath )
in C#-->
[DllImport("CubeProgrammer.dll", EntryPoint = "downloadFile", CallingConvention = CallingConvention.Cdecl)]
public static extern int downloadFile( const wchar_t* filePath,unsigned int address, unsigned int skipErase, unsigned int verify, const wchar_t* binPath ) ;