Click here to Skip to main content
15,897,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read form serial port Pin
K. Shaffer9-May-03 10:18
K. Shaffer9-May-03 10:18 
GeneralRe: Read form serial port Pin
Toni789-May-03 14:36
Toni789-May-03 14:36 
GeneralRe: Read form serial port Pin
daima_8879-May-03 14:57
daima_8879-May-03 14:57 
GeneralRe: Read form serial port Pin
Jan759-May-03 19:24
Jan759-May-03 19:24 
GeneralDialog screen freezes Pin
yashraj9-May-03 8:22
yashraj9-May-03 8:22 
GeneralRe: Dialog screen freezes Pin
David Crow9-May-03 8:49
David Crow9-May-03 8:49 
GeneralRe: Dialog screen freezes Pin
Mahesh Varma9-May-03 18:11
Mahesh Varma9-May-03 18:11 
QuestionCalling a pure "C" function from a class: How? Pin
Cesario Simoes, jr9-May-03 8:14
Cesario Simoes, jr9-May-03 8:14 
Another problem when mixing pure "C" code and C++...
I'm adapting a DLL to use some pure "C" functions.
I have some modules in pure "C" puro and othersin C++.
In my module "ExportedFunctions.cpp" I have declared DLL exported functions... In this module the call to functions of class "login" are made:
login.createWindow(hwnd);
login.makeConexion(CString(operador), CString(senha), &lservidor );
In the file "ExportedFunctions.cpp" I have declared the class:
CLogin login;
In the module "login" I have declared as "public:" this functions:
public:
void createWindow(CWnd *pParent);
void makeConexion(CString operador, CString senha, CStringArray servidores);
These is working...;)

But now I have another modul (contcp.c), in pure "C"... And I have tried many ways to call fnEntrada from inside "ExportedFunctions.cpp" to a Function of "C" module without success! I #include "contcp.h" in "ExportedFunctions.cpp" and/or in "ExportedFunctions.h", but always occurs link error:

ExportedFunctions.obj : error LNK2001: unresolved external symbol "int __cdecl fnEntrada(void)" (?fnEntrada@@YAHXZ)
../dlls/Axsceovs2.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.Cry | :((

Somebody may help me??
Cesario
http://cesariosimoes.hpg.ig.com.br

Cesario Simoes, jr
Working with computers since 1970 (Burroughs/GTE). Programming in assembly DSP (TMS320c2x and TMS320c5x), C and C++. Using C++ and MFC, developping GUI to telecommunication equipment (PABX, ACD, RAS, etc.)
AnswerRe: Calling a pure "C" function from a class: How? Pin
David Crow9-May-03 8:24
David Crow9-May-03 8:24 
GeneralRe: Calling a pure "C" function from a class: How? Pin
Cesario Simoes, jr9-May-03 8:37
Cesario Simoes, jr9-May-03 8:37 
GeneralRe: Calling a pure "C" function from a class: How? Pin
David Crow9-May-03 8:53
David Crow9-May-03 8:53 
GeneralRe: Calling a pure "C" function from a class: How? Pin
Cesario Simoes, jr9-May-03 9:12
Cesario Simoes, jr9-May-03 9:12 
GeneralRe: Calling a pure "C" function from a class: How? Pin
Cesario Simoes, jr9-May-03 9:34
Cesario Simoes, jr9-May-03 9:34 
GeneralNM_RCLICK Pin
MemLeak9-May-03 7:51
MemLeak9-May-03 7:51 
GeneralRe: NM_RCLICK Pin
MemLeak9-May-03 8:09
MemLeak9-May-03 8:09 
GeneralRe: NM_RCLICK Pin
Hari Krishnan (Noida)11-May-03 18:52
Hari Krishnan (Noida)11-May-03 18:52 
Generalprinting VC++ files Pin
Makover9-May-03 7:31
Makover9-May-03 7:31 
GeneralRe: printing VC++ files Pin
David Crow9-May-03 7:49
David Crow9-May-03 7:49 
GeneralRe: printing VC++ files Pin
Makover9-May-03 7:53
Makover9-May-03 7:53 
GeneralRe: printing VC++ files Pin
David Crow9-May-03 7:56
David Crow9-May-03 7:56 
GeneralRe: printing VC++ files Pin
Makover9-May-03 8:00
Makover9-May-03 8:00 
GeneralRe: printing VC++ files Pin
Mahesh Varma9-May-03 18:18
Mahesh Varma9-May-03 18:18 
Generalinclude issues Pin
Themis9-May-03 7:27
Themis9-May-03 7:27 
GeneralRe: include issues Pin
Joseph Dempsey9-May-03 7:39
Joseph Dempsey9-May-03 7:39 
Generalchar[] problem Pin
Mazdak9-May-03 6:53
Mazdak9-May-03 6:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.