Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Call a dll from a dll Pin
Sarath C26-Jun-06 5:06
Sarath C26-Jun-06 5:06 
GeneralRe: Call a dll from a dll Pin
hli126-Jun-06 5:19
hli126-Jun-06 5:19 
GeneralRe: Call a dll from a dll Pin
hli126-Jun-06 5:23
hli126-Jun-06 5:23 
GeneralRe: Call a dll from a dll Pin
hli126-Jun-06 5:30
hli126-Jun-06 5:30 
GeneralRe: Call a dll from a dll Pin
Sarath C26-Jun-06 5:24
Sarath C26-Jun-06 5:24 
GeneralRe: Call a dll from a dll Pin
hli126-Jun-06 5:35
hli126-Jun-06 5:35 
GeneralRe: Call a dll from a dll Pin
Zac Howland26-Jun-06 5:55
Zac Howland26-Jun-06 5:55 
GeneralRe: Call a dll from a dll Pin
hli126-Jun-06 7:42
hli126-Jun-06 7:42 
Hi,

Thank both of you first. I am wondering that in my case I have to use LoadLibrary/GetProcAddress. I am attaching the example below which caused the link error. Please let me know if I can use Zac's suggestion instead of LoadLibrary/GetProcAddress approach.

A head file in the second dll project is named as DBArea.h. There are several classes in the second dll that are defined in dataWork.h. So dataWork.h is included in the DBArea.h file. The first dll is designed to use member functions "rowInsert" and "getConnection" in class DBArea.

#include "dataWork.h"
#if !defined(AFX_DBAREA_H__93C879DF_44A0_4D6E_87E4_87EA36BE815A__INCLUDED_)
#define AFX_DBAREA_H__93C879DF_44A0_4D6E_87E4_87EA36BE815A__INCLUDED_

#if _MSC_VER >> 1000
#pragma once
#endif // _MSC_VER >> 1000

class DBArea
{

public:
__declspec(dllexport) int rowInsert(char *SQLStr);
__declspec(dllexport) int GetConnection(char *connectionStr);
__declspec(dllexport) DBArea();
__declspec(dllexport) virtual ~DBArea();

protected:
CADORecordset m_pRs;
CADODatabase m_pDb;

};

#endif // !defined(AFX_DBAREA_H__93C879DF_44A0_4D6E_87E4_87EA36BE815A__INCLUDED_)


hli
GeneralRe: Call a dll from a dll Pin
Zac Howland26-Jun-06 9:02
Zac Howland26-Jun-06 9:02 
GeneralRe: Call a dll from a dll Pin
hli127-Jun-06 3:28
hli127-Jun-06 3:28 
GeneralRe: Call a dll from a dll Pin
Zac Howland27-Jun-06 4:24
Zac Howland27-Jun-06 4:24 
GeneralRe: Call a dll from a dll Pin
hli127-Jun-06 7:43
hli127-Jun-06 7:43 
QuestionDebugger issues Pin
capricious_00126-Jun-06 4:39
capricious_00126-Jun-06 4:39 
QuestionRe: Debugger issues Pin
David Crow26-Jun-06 4:42
David Crow26-Jun-06 4:42 
AnswerRe: Debugger issues Pin
capricious_00126-Jun-06 4:59
capricious_00126-Jun-06 4:59 
AnswerRe: Debugger issues Pin
Sarath C26-Jun-06 4:51
Sarath C26-Jun-06 4:51 
GeneralRe: Debugger issues Pin
capricious_00126-Jun-06 5:01
capricious_00126-Jun-06 5:01 
GeneralRe: Debugger issues Pin
Sarath C26-Jun-06 5:05
Sarath C26-Jun-06 5:05 
GeneralRe: Debugger issues Pin
capricious_00126-Jun-06 5:19
capricious_00126-Jun-06 5:19 
Questiona map Resizing a map file; Pin
hatemtalbi26-Jun-06 4:27
hatemtalbi26-Jun-06 4:27 
QuestionRe: a map Resizing a map file; Pin
David Crow26-Jun-06 4:37
David Crow26-Jun-06 4:37 
AnswerRe: a map Resizing a map file; Pin
hatemtalbi26-Jun-06 4:50
hatemtalbi26-Jun-06 4:50 
QuestionRe: a map Resizing a map file; Pin
David Crow26-Jun-06 5:05
David Crow26-Jun-06 5:05 
AnswerRe: a map Resizing a map file; Pin
hatemtalbi26-Jun-06 5:10
hatemtalbi26-Jun-06 5:10 
GeneralRe: a map Resizing a map file; Pin
James Brown26-Jun-06 6:42
James Brown26-Jun-06 6:42 

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.