I am using VS 2010 to edit this C++ stuff - in a solution with 5 other VB.Net projects - so I guess VS is doing the compiling. What does the RTL give me - what types of functions?
Code is looking like this so far - I have had lots of #include's going while trying various things out - but I'm down to just the one now.
Code:
// StringLibrary.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
//#include <iostream>
//#include <vector>
//#include <string>
//#include <cmath>
//#include <algorithm>
//using namespace std;
//typedef std::vector<std::string> StringArray;
extern "C"
{
bool isValue(char *strLocation, const char *checkValue) {
int lenLocation = strlen(strLocation);
int lenValue = strlen(checkValue);
int i = 0;
if (lenLocation != lenValue) {return false;}
for(i = 0; i <= lenLocation; i++)
{
if (strLocation[i] != checkValue[i]) {return false;}
}
return true;
}
int mxstrcmp(char *strSearch, int x1s, int x1e, int x2s, int x2e) {
int rsc = 0;
int x1l = x1e - x1s + 1;
int x2l = x2e - x2s + 1;
int cc = 0;
do {
if ((x1s + cc <= x1e) && (x2s + cc <= x2e)) {
if (strSearch[x1s + cc] < strSearch[x2s + cc]){
rsc = -1;
} else if (strSearch[x1s + cc] > strSearch[x2s + cc]) {
rsc = 1;
}
} else {
if (x2l > x1l) {
rsc = -1;
} else if (x2l < x1l) {
rsc = 1;
}
}
cc++;
} while (rsc == 0 && cc <= x1l && cc <= x2l);
return rsc;
}
.
.
.