I know this can be done. Do you have a "main" function declaration in your program e.g.:
int main(int argc, char** args) or some variant of the above. -- Keith PS. You might want to check out the following URL: http://support.microsoft.com/?id=814472 -----Original Message----- From: Akshay Arora [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 1:31 PM Subject: Why can't I call C and managed C functions at the same time? I'm having serious problems doing both. Currently I'm making do with using managed C++, but I've run into problems because I have to utilize a C .lib file which has structs that have time_t and other various defined types in there. This is all fine. The problem arises when I try to use any of the following: printf, sscanf, mktime and other C functions of the sort. I get a compile time error: error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Is there a way to use both the C functions and Managed types and not have a problem like this? Thanks, Akshay =================================== This list is hosted by DevelopMentor� http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com
