Linking...
Main.obj : error LNK2001: unresolved external symbol "int __cdecl ConvertANSI(char)" (?ConvertANSI@@YAHD@Z)
Debug/szStub.exe : fatal error LNK1120: 1 unresolved externals

Defined:

#include <windows.h>
#include <math.h>
#include <iostream>
using namespace std;

int ConvertANSI(char sChar);

Function:

// Credits to Dave
int ConvertANSI(char szText[])
{
	return static_cast<int>(szText[0]);
}

Usage:

if(ConvertANSI(szChar) >= 48 && ConvertANSI(szChar) <= 57)
	{
		szToggle = true;
	}

any ideas lol?

The prototype and the definition mismatch ..

int ConvertANSI(char sChar [] );
int ConvertANSI(char szText [] )
{
	return static_cast<int>(szText[0]);
}

EDIT: Fixed the next set of errors :D

thanks for all the help :)

^^^
EDIT: became obsolete

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.