Accessing functions and member variables of a C++ class in NASM
Posted on 2003-12-02
I was curious about accessing C++ classes in NASM. I have loaded arguments passed to a function written in nasm before, but this doesn't do me a lot of good. The class Record has three member functions to return the three private member variables: Id, Age, and Sex. I have a flat-file database, where one record is stored per line in the following format:
and so forth
I am trying to write a program to search through the loaded database (which right now is loaded into an array of Records) with a nasm function, searchRecord, as well as print all the records loaded, printRecord. I am having great difficulty accessing the member variables of this class, and would appreciate any help on this case.