The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Problem with vector<string> ...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rlewis

Canada
253 Posts

Posted - 01/09/2005 :  4:59:57 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (OriginPro 7.5-SR5 (B870)):
Operating System:WinXP-SP2
The following OC snippet illustrates the problem ...
Is there a way around this ..

void TestOne()
{
vector<char> vcbObj; // Compiles and executes with all casts except vector<string>
//vector<string> vcbObj; // OC Compiler does not like this ...
if(vctProcedure(vcbObj)==true)
{
out_str("Success");
return;
}
out_str("Failure");
}

bool vctProcedure(vectorbase &vcbObj)
{
int vcbType=vcbObj.GetInternalDataType();
switch (vcbType)
{
default:
return (false);
break;
case FSI_DOUBLE:
// Do Something
break;
case FSI_REAL:
// Do Something
break;
case FSI_SHORT:
// Do Something
break;
case FSI_LONG:
// Do Something
break;
case FSI_CHAR:
// Do Something
break;
case FSI_TEXT:
// Do Something
break;
case FSI_MIXED:
// Do Something
break;
case FSI_BYTE:
// Do Something
break;
case FSI_USHORT:
// Do Something
break;
case FSI_ULONG:
// Do Something
break;
case FSI_COMPLEX:
// Do Something
break;
}
return (true);
}
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000