Jump to content

Never worked with a DLL...need some help.

Recommended Posts

I'm trying to write a script that will take the info gathered on my scuba dive computer via a open-source libdivecomp so I can offl-load the data and run my own analysis on the numbers.


The DLL is fully documented but I've never worked a DLL into my scripts (I usually just code all this stuff myself; I'm halfway tempted to do that here as well).

I'm 25 years out of using C++ so I'm having a time with this. I'm looking over his device.h, hw.h, and suunto_vyper.h but not seeing anything that will help me out.

I'm using commg.dll 2.76 posted in the forums here and I know that the device settings are COM5,2400,8,2,1,0 (port,rate,bits,parity,stop,flow)

I just can't figure out what I need to send in order to get a response back from the device. AT commands just get echoed back (but then again that's a Hayes thing)

The flipside of this is that the com dll just doesn't work in x64 and that's the reason I'm not seeing anything... :D IDK.

Any help would be appreciated.


Edited by sshrum

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'


Link to post
Share on other sites

Compile your script as 32-bit and use the dll normally. That should work.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...