Information générale
Catégorie:
Fonctions Windows API
Titre:
_edOpenFile() API Call
I have been trying to compile the c code but have found this to be a difficult task . Especially for one who is not very familiar with VC++ 4.0. First attempting to compile it in MSD was swiftly abandoned because I am not very familiar with the interface. 2nd attempting to compile it shelled out to DOS was more fruitful but more complicated than I first anticipated.
After setting the environment variables INCLUDE and LIB and setting the proper path, I ran into the problem of unresolved linker errors. Then, I included all the files necessary to build this one c function but ran into many more problems. Redefinition errors. After changing the name of a few of the functions and adding a few #ifdefs's, I realized that I may need to use the "extern" key word to show that the other API C functions that are being called externally to this function.
After placing the "extern" key word for each function now I'm getting more redefinition errors and Body already defined errors. I realize I'm making a lot of mistakes but I'm pretty rusty in C and I'm just trying to get one clean compile so I can figure what I'm doing wrong or right then clean up all the mess. I know, probably the wrong way to approach this. I remove all the externs except for one
extern _HUnlock ;
and I get a "Levels of indirection error for unsigned int (unsigned long )"
This is not exactly the error but its close.
I guess all of this could really be summed up in one word.
HELLLLLLLLLLLLPPPPPPPPPPPPPPPP!!!!!!
Thx in advance
Dan
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement