|
-
September 16th, 2002, 07:17 AM
#1
calling "c" functions from c++
I have a .h File as follows.I have got The dll & lib files concerning this file.I dont have the source files.
I have included the .h file to say that its plain 'C' code.
I want to call the 'c' function defined in the library from my c++ enviornment.
How is that possible.
I have included the library,but still its shoeing me Link Errors.
#if !defined(AFX_PJT_H__68E69803_22EA_11D2_838F_00A0243D3A7E__INCLUDED_)
#define AFX_PJT_H__68E69803_22EA_11D2_838F_00A0243D3A7E__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif
/* _MSC_VER >= 1000 */
#ifndef _GLOBALDEF
#define _GLOBALDEF
#endi
#ifdef M_UNIX
#define __stdcall
#endif
//Function
_GLOBALDEF int __stdcall pjtOpen(const char* filename, const char* stepid);
#endif
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|