I have come across a problem while working with Windows Forms in Visual C++ 2005. I will include the relevant snippet of my code below. Basically, I am passing the text from two textboxes into a function as parameters. The debugger correctly reads the values, however the function fails, saying that the values are "null".
Hopefully, someone here will be able to help?
Ah... excuse my stupidity, but have you any idea on how to make it work? It worked as a console app when I was using Dev-Cpp...
Well actually, in Dev-Cpp I dynamically allocated memory for it using malloc. However, I just realised that I removed malloc as it didn't appear to work with .NET. Any solution?
Thanks,
Chris
It's all OK, I worked it out. I replaced char* ret;
with char* ret = newchar;