Board index » cppbuilder » New problem
Gary
![]() CBuilder Developer |
New problem2004-01-05 10:09:50 AM cppbuilder1 I guess I don't remember how to call a Pascal function after all. I get an unresolved external '__Stdcall RtfToHtml(System::AnsiString) referenced.... I tried this it in my h file and my cpp file but either way I declared it as such: extern pascal AnsiString RtfToHtml(AnsiString textstuff); my code looks like this where I call it. It's been changed trying to get around errors. Previously Memo1->Lines->Text replaced HTMLString. And HTMLString is of type AnsiString. HTMLString = RtfToHtml(RichEdit1->Lines->Text); Memo1->Lines->Text = HTMLString; Memo1->Lines->SaveToFile(FileName); I added Rtf2Html.pas to my project. I've never tried to call a Pascal function from c before. I was taught how around 94 or 95 so it's been a while. Does it show? ;) |