cancel
Showing results for 
Search instead for 
Did you mean: 

CUSTOM USB DFU WINDOWS application

hkane.1
Associate II

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 :

  1. Is the algorithm and what we need to do in general be the same as in the related examples? If yes, then practically we should take the given example to another language and environment, right??   :        (Identification   ,Connection ,File transfer, etc.)                                                                                                                                                 
  2. When we use the dll file, we import the required functions, the problem I have is that some functions have variables that are created through typedef, or they are structures, or sometimes wchar_t, for example, what should be done in this case? thank you.

 

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  ) ;

 

0 REPLIES 0