Hi everyone, I tried to avoid posting this as I realise you lot are going to destroy my already fragile confidence, but you lot are my last hope. I realise DLL's are a dirty word and I know there are probably better ways to do things but my boss is trying to get rid of me and this is the way he wants it.
I am not sure if this should go in to a VB forum either, maybe you lot could recomend the best place for this if so.
I would like to write a VB program and a DLL in C where the VB program passes an array of strings (individual strings could be any length) to the DLL. I would then like to be able to open up that array so I can manipulate individual elements and generally play with it. Finally I would like to pass an array back to the VB again so that I can open the modified array and look at the individual elements.
The problem i am having is passing the arrays to and fro and opening the arrays both when I send them to the DLL and when it returns to the VB prog. I have done all sorts of searchs on MSDN and other places and have come up with nothing.
I think I need a dll file, a .def file ad a vb file. I would be grateful if anyone could give me any help or if they have ever written anything like this before and have an example. I think anyone with a wee bit of knowledge could probably whip this thing up in no time at all, unfortunatley I have failed. I have tried to do this with safearrays and all sorts of stuff but VB keeps crashing.
Any help would be truely appreciated