Pass DWORD pointer by using 'calllib' to c function
Mostrar comentarios más antiguos
hi,
I'm trying to pass values by using 'calllib' to c function.
The input of the function is a dword pointer,how can i create dword pointer?
p.s I can't change the dll, the code must be on the matlab side.
c:
Counter(DWORD* Packets)
matlab:
my_pointer= libpointer('______'); % here is the question
calllib('c_dll','Counter',my_pointer)
TNX
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Call C from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!