i want to know some functions in vb to vc++
-
hi string Str; Asc(Mid(Str, i, 1)) in vb and i want in vc++ Chr$(Str(i)) in vb and i want in vc++ i donot vb...please help any one
-
hi string Str; Asc(Mid(Str, i, 1)) in vb and i want in vc++ Chr$(Str(i)) in vb and i want in vc++ i donot vb...please help any one
Member 3653751 wrote:
i donot vb...please help any one
There is the documentation, by the way.
Member 3653751 wrote:
Asc(Mid(Str, i, 1))
The ASCII value of a the ith character of the string. (in
C++
is the character value itself, if you have achar
array).Member 3653751 wrote:
Chr$(Str(i)) in vb and i want in vc++
You dont't need it in
C++
(neither inVB
, AFAIK). :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
hi string Str; Asc(Mid(Str, i, 1)) in vb and i want in vc++ Chr$(Str(i)) in vb and i want in vc++ i donot vb...please help any one
native C++:
static_cast(Str[i - 1]);
static_cast(Str[i]);C++/CLI:
Convert::ToInt32(Str[i - 1]);
safe_cast(Str[i]);David Anton Convert between VB, C#, C++, & Java www.tangiblesoftwaresolutions.com