03-22-2022 08:58 AM
#include <stdio.h>
#include <string.h>
#include "API.h"
#include "extcode.h"
#pragma pack(1)
void main()
{
LStrHandleArray Mono_name = NULL;
LStrHandleArray Mono_ID = NULL;
GetAllComponentsFromConfigBrowser(&Mono_name,&Mono_ID);
printf("Mono_name.dimsize = %d\n", (*Mono_name)->dimSize);
printf("Mono_name.String = %d\n", (*Mono_name)->String);
printf("Mono_name.String[0] = %d\n", (*Mono_name)->String[0]);
return;
}
It triggers the following error when I call the function and doesn't get to the prints. So there's no point in writing any other code after calling the function right now.
> ntdll.dll!_RtlReportCriticalFailure@120()
ntdll.dll!_RtlpReportHeapFailure@40()
ntdll.dll!_RtlpHpHeapHandleError@120()
ntdll.dll!_RtlpLogHeapFailure@240()
ntdll.dll!RtlSizeHeap()
combase.dll!7622e2cb()
combase.dll![Frames below may be incorrect and/or missing, no symbols loaded for combase.dll]
[External Code]
03-22-2022 11:28 AM
I meant the LabVIEW project and VIs to create that DLL!
It's still not much more than showing the instruction manual for your car. The car is still somewhere totally different!
03-22-2022 12:53 PM
I can't share the LV VI as it is for Horiba company and they sell it to the customers. This VI specifically is supposed to get names and IDs of all the spectrometers that are connected to the PC. I have to reach out to them probably for further troubleshooting.
03-22-2022 01:34 PM
Then make a dummy VI instead that has the same connector pane and returns some static string arrays! And upload that with the according project!