I've had this lingering problem ever since I converted a project over to
.NET in VB
I am using an ActiveX library that was originally compiled with C++, I
suspect with MS Visual C++ .
according to the documentation it exports the following method:
Function *ReadFFT*(pArray As Long, wCount As Integer) As Integer
prior to .NET is was a simple matter of using the following code to get
the array of FFT amplitudes as integers
Dim dwAmp(1023) As Long
ReadFFT(dwAmp(0), 1024)
If I try this now I get the message that says something has croaked in
the CLR and the application will closed, even when running it inside of
the IDE (VB Express 10)
if I hover over the function, Intellisens say it is called as follows:
Function *ReadFFT*(byref pArray As integer, byval wCount As Integer) As
Integer
I am assuming I need to marshal a pointer for the array, but I have had
absolutely zero luck with this.
Can anyone help with this?
--
Jeff K. Steinkamp N7YG
Tucson, AZ
SCUD Missile Coordinates:
N032-13-55.02 W110-55-52.79
Registered Linux User: 420428
------------------------------------------------------
This message entered while onboard an alien ship...
--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net