Click here to Skip to main content
13,000,324 members (57,619 online)
Click here to Skip to main content
Add your own
alternative version


8 bookmarked
Posted 11 Aug 2004

Base To Base Converter

, 11 Aug 2004
Rate this:
Please Sign up or sign in to vote.
The project converts numbers from one base to another - windows forms front end


This small .NET windows forms project contains a function which converts a user-entered number from one base to another. Within this context the function takes a number stored as a std::string but would easily be edited to take an integer etc. if required.

Using the code

convdef.cpp and convheader.h comprise the conversion function with arguments std::string thestlstring, int base & int base2 - it returns the converted number stored as an std::string.

Points of Interest

I have been learning standard c++ for about 18 months and this project was an excuse to try making a little graphical front end for my conversion program which was originally a console program. What took me some time, being completely new to .NET, was converting the managed string which was the user-entered original number to an std::string - I found the two functions ManagedToSTL and STLToManaged somewhere on the web after much searching - they are defined in Form1.h of my upload if of any use to you.


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


About the Author

Phil Sykes
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralManaged conversion Pin
mav.northwind12-Aug-04 0:48
membermav.northwind12-Aug-04 0:48 
GeneralRe: Managed conversion Pin
norm.net12-Aug-04 4:45
membernorm.net12-Aug-04 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170624.1 | Last Updated 12 Aug 2004
Article Copyright 2004 by Phil Sykes
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid