I'm trying to port some of my DBPro functions over to a C++ plugin (I'm using Visual C++ Express 2008), to try and speed up my compile times, but I can't figure out how to create dynamic arrays that are global within the plugin.
In DBPro I can write two functions like this:
Function One()
Global Dim TestArray()
EndFunction
Function Two()
Array Insert at Bottom TestArray()
EndFunction
But how would I write this in C++? I can't figure out how to create a global variable within a C++ function, or how to extend an array the way I can in DBPro (though I have seen refrrence to vector classes, whatever they are). Any ideas?
We spend our lives chasing dreams. Dark Basic lets us catch some of them.