Search found 474 matches

by BasicScience
Jan 10, 2019 19:46
Forum: Windows
Topic: dll entry point not found [Solved]
Replies: 31
Views: 1609

Re: dll entry point not found

@Joshy, Yeah, the C header provides a lot of hints at how to use Axoclampdriver.dll, but there are remaining challenges that I have taken up with the vendor. For example, I can successfully get the handle and serial number of the device using the dll, but if I try to open the device an error code of...
by BasicScience
Jan 09, 2019 20:54
Forum: Windows
Topic: dll entry point not found [Solved]
Replies: 31
Views: 1609

Re: dll entry point not found

@Joshy, Thanks!!!! I can now access all the functions in AxoClampDriver.dll. Now I just need to figure out how to use it with essentially no documentation. Also, thanks for correcting my pointer error in the nError parameter. BTW for your example, I think Len(SerialNum) needs to be SizeOf(SerialNum)...
by BasicScience
Jan 08, 2019 18:23
Forum: Windows
Topic: dll entry point not found [Solved]
Replies: 31
Views: 1609

Re: dll entry point not found

Almost there, happy to supply Johnnie Walker Black Edition when I can get it to work here. Here's a link to AxHIDManager.dll. The company didn't provide the .h file :-( https://sites.google.com/site/freebasicgui/Home/fb-examples/AxHIDManager.dll?attredirects=0&d=1 I'm still getting a problem wit...
by BasicScience
Jan 08, 2019 2:09
Forum: Windows
Topic: dll entry point not found [Solved]
Replies: 31
Views: 1609

Re: dll entry point not found

Thanks. I have been able to communicate with the DLL to confirm the API Version and to communicate with the hardware to retrieve the serial number (via AXC_FindFirstDevice). Here's the DLL https://sites.google.com/site/freebasicgui/Home/fb-examples/AxoclampDriver.dll?attredirects=0&d=1 and the a...
by BasicScience
Jan 07, 2019 23:10
Forum: Windows
Topic: dll entry point not found [Solved]
Replies: 31
Views: 1609

Re: dll entry point not found

Still getting the same error - Entry Point could not be located Here's a screen shot of the export table from PExplorer. All the functions with the "_" prefix cause the same error, whereas I can call any of the functions without "_". I have tried making a MyLIb.def file with and ...
by BasicScience
Jan 06, 2019 18:12
Forum: Windows
Topic: dll entry point not found [Solved]
Replies: 31
Views: 1609

Re: dll entry point not found

The FB compiler doesn't like the extern "Windows-MS" ... end Extern statements, which cause the error message "undefined reference to 'AXC_CheckAPIVersion'. If I remove the extern statements, then it complies and seems to work (Returns API version "1" but I'm not sure if tha...
by BasicScience
Jan 06, 2019 2:49
Forum: Windows
Topic: dll entry point not found [Solved]
Replies: 31
Views: 1609

Re: dll entry point not found

Yes, it's axoclampdriver.dll. I'll try tomorrow AM.
Thanks.
by BasicScience
Jan 06, 2019 1:00
Forum: Windows
Topic: dll entry point not found [Solved]
Replies: 31
Views: 1609

dll entry point not found [Solved]

Trying to call routines in a commercially provided dll. The company provides the .h file with the proc and func definitions. Part of the .h file is shown below // define the macro for exporting/importing the API entry points. // N.B. the symbol below should only be defined when building this DLL. #i...
by BasicScience
Jul 26, 2018 18:19
Forum: General
Topic: Big Endian -> Little Endian
Replies: 17
Views: 1051

Re: Big Endian -> Little Endian

@jj2007 - your ASM conversion is the fastest of the suggested approaches. I suppose this code would work for any 32-bit value (e.g. even for long integer)? It's been a while since I wrote code ASM, what modification would be needed for a 16 bit value (e.g. short integer)?
by BasicScience
Jul 24, 2018 21:25
Forum: General
Topic: Big Endian -> Little Endian
Replies: 17
Views: 1051

Re: Big Endian -> Little Endian SOLVED

@fxm, thanks for catching ptr issue with Zstring. With your byte ptr modification, the code runs correctly.

@jevans I'll do some timing tests, and then consider diving into your asm version.

Thanks to all
by BasicScience
Jul 24, 2018 21:00
Forum: General
Topic: Big Endian -> Little Endian
Replies: 17
Views: 1051

Re: Big Endian -> Little Endian

Thanks for the ideas.

@sarvaldez, I get a segment violation error at this line:

returnFloat[0] = floatToConvert[3]

Is Callocate needed to set aside memory for the arrays?
by BasicScience
Jul 24, 2018 19:43
Forum: General
Topic: Big Endian -> Little Endian
Replies: 17
Views: 1051

Big Endian -> Little Endian

Trying to read 32-bit floating point numbers from a binary data file created by LabView. Apparently LabView uses Big Endian since it was originally developed on a Mac OS. Anyone have a fast Big Endian -> Little Endian converter (to work on single float variable or array of single float)?
by BasicScience
Dec 23, 2017 17:21
Forum: Tips and Tricks
Topic: Faster file loading
Replies: 12
Views: 1157

Re: Faster file loading

I've used BLoad and BSave to move large chunks of data between disk and memory. It would be interesting to perform a quantitative test of the two methods.
by BasicScience
Dec 23, 2017 17:06
Forum: General
Topic: Point in a polygon
Replies: 7
Views: 421

Re: Point in a polygon - Solved

Many thanks for the code. All examples worked well. At first, I did not realize there is a simple solution to the area of a polygon, given the coordinates of the verticies. This site has a great review of geometric relationships and algorithms http://geomalgorithms.com/a01-_area.html For those who a...
by BasicScience
Dec 23, 2017 2:53
Forum: General
Topic: Point in a polygon
Replies: 7
Views: 421

Point in a polygon

Anyone have an efficient routine for the "point in a polygon" problem? The idea is that a set of connected points defines a closed polygon. Now, for any given new test point, is it inside our outside the polygon? This method will be used for a complex polygon with about 300 points (from tr...

Go to advanced search