Hello W., WD> Now having problems with Winsock functions and WD> associated pointers. For some reason, I can't WD> seem to "recv" data uncorrupted. I've WD> tried it using a string buffer and as a PChar.
A Delphi string as whell as a pointer (like PChar) may contains as many NULL as you want, however you have to take in account that many of PChar functions will not work correcly if NULL's are in it. In case of a pointer you need a 'length' variable. In case of communication programs I mostly work with a kind of TBuffer class thta does the deal. To give an example, if you use Pos() on a PChar, the function will stop at the first #0. In a string you can use it without problem even if NULL's are there. WD> Please tell me what I am doing wrong!!?? Difficult to say, it is a lots of code. Can you schrink it to a few lines to show where the problem is ? --- Rgds, Wilfried http://www.mestdagh.biz __________________________________________________ Delphi-Talk mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi-talk
