// JP opened flex table

Click to See Complete Forum and Search --> : 3rd Party dll in plain C


Rigsby
June 28th, 2008, 03:19 PM
I have a 3rd party dll (ActiveX) used for sending text messages over a Mobile Phone network (aspsms.dll).

This is very easy to use in VB, as follows:


Dim SMS As ASPSMS.Booster

Set SMS = New Booster


after that I have access to evrything I need.

My question is how would I even start going about this in plain C (Not c++ or c#)?

So far I have read about #import and actually included a cpp file in my c project that:

#import "C:\WINDOWS\system32\aspsms.dll" no_namespace named_guids


The import does not throw an error, and VS created two new files:

aspsms.tlh
aspsms.tli

So where do I go from here?

I guess, just like in VB, I now have to create an instance of the aspsms booster object, but how? Any advice would be great.

//JP added flex table