Our application uses GUIDs for primary keys in the database. We are using CoCreatGUID just like the Microsoft example in
Http://support.microsoft.com/support/kb/articles/Q176/7/90.aspBecause there are several applications which hit the database, I thought I would be clever and write a DLL in VB to return a guid upon request so we wouldn't be actually copying code.
Unfortunately, I get a compile error when I try to run the code. The error is: Variable uses an Automation type not supported in VB.
My questions are:
Can I call ole32.dll from inside an ActiveX dll or should I stick with copying code?
Can you call APIs from ActiveX dlls at all?
Any input provided would be appreciated.