Click here to Skip to main content
15,880,469 members
Articles / Desktop Programming / WTL

JCB - A Java Class Browser written in C++ using WTL

Rate me:
Please Sign up or sign in to vote.
4.67/5 (3 votes)
23 Aug 2000 74.4K   1.2K   18  
A Java Class Browser written in C++ using WTL
#include "stdafx.h"
#include "global.h"

void replaceChar(cstring &aString, TCHAR aReplace, TCHAR aChange)
{
	for(int i  = aString.find(aReplace); i != cstring::npos; i = aString.find(aReplace, ++i))
		aString[i] = aChange;
}

void reverseByte(void *value, int size)
{
    unsigned char *p1 = (unsigned char *)value;
    unsigned char *p2 = p1 + size - 1;
    unsigned char temp;
    while (p2 > p1)
    {
        temp = *p1;
        *p1++ = *p2;
		*p2-- = temp;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Belgium Belgium
Programmer since 1991 using C/C++/Visual Basic and Java. Playing with wxWindows at home.

Comments and Discussions