Hi,
I have just started C++ (I'm used to programming in VB).
I'm trying to pass a string to my C++ activeX object via a method which is similar to a MAC address (made up of Hex numbers) i.e. 10:1A:26:8F:20.
I need to split this string into an array (i.e. using : as the delimeter) - I'm not too sure on what kind of type I should pass between the ActiveX (i.e. BSTR or LPCTSTR) - and how I go about splitting this (in VB there is a Split() function?!?!)
If I pass it as a string none of the functions I have found to split this string work (I cant convert from CString to a Char*)??
Any ideas??
Thanks in advance
Daniel
I have just started C++ (I'm used to programming in VB).
I'm trying to pass a string to my C++ activeX object via a method which is similar to a MAC address (made up of Hex numbers) i.e. 10:1A:26:8F:20.
I need to split this string into an array (i.e. using : as the delimeter) - I'm not too sure on what kind of type I should pass between the ActiveX (i.e. BSTR or LPCTSTR) - and how I go about splitting this (in VB there is a Split() function?!?!)
If I pass it as a string none of the functions I have found to split this string work (I cant convert from CString to a Char*)??
Any ideas??
Thanks in advance
Daniel