Well I have never written a DLL for VB so I was thinking the VB compatibility bit would be the tough part. Probably won't win you much in performance though. In the end, better algorithms will win out over faster execution.