Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionread/write function working in linux Pin
rupeshkp72810-May-10 0:56
rupeshkp72810-May-10 0:56 
AnswerRe: read/write function working in linux Pin
Michel Godfroid10-May-10 1:18
Michel Godfroid10-May-10 1:18 
GeneralRe: read/write function working in linux Pin
rupeshkp72810-May-10 1:56
rupeshkp72810-May-10 1:56 
AnswerRe: read/write function working in linux Pin
Randor 10-May-10 6:13
professional Randor 10-May-10 6:13 
GeneralRe: read/write function working in linux Pin
Moak10-May-10 10:26
Moak10-May-10 10:26 
GeneralRe: read/write function working in linux Pin
rupeshkp72812-May-10 1:59
rupeshkp72812-May-10 1:59 
QuestionVirtual function in DLL Pin
john56329-May-10 23:17
john56329-May-10 23:17 
AnswerRe: Virtual function in DLL Pin
CPallini10-May-10 0:44
mveCPallini10-May-10 0:44 
As I said before, there's nothing special in using abstract classes coming inside a DLL.
I have done a little test:
// the DLL: just a bit more of the Visual Studio generated Skeleton
#ifdef CPPDLL_EXPORTS
#define CPPDLL_API __declspec(dllexport)
#else
#define CPPDLL_API __declspec(dllimport)
#endif

// This class is exported from the CppDll.dll
class CPPDLL_API CCppDll 
{
public:
  CCppDll(void);
  virtual int foo();
  virtual int goo(int x)=0;
};


// the dumb test application
#include "stdafx.h"
#include "..\\..\\CppDll\\CppDll\\CppDll.h"
#include <iostream>
using namespace std;


class MyDer: public CCppDll
{
public:
  int goo(int x){ return x*x;}
    
};

int _tmain(int argc, _TCHAR* argv[])
{
  
  MyDer m;
  cout << m.foo() << " " << m.goo(5) << endl;
	return 0;
}


I compiles and works fine.
Smile | :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Virtual function in DLL Pin
john563210-May-10 1:47
john563210-May-10 1:47 
GeneralRe: Virtual function in DLL Pin
john563210-May-10 2:48
john563210-May-10 2:48 
GeneralRe: Virtual function in DLL Pin
CPallini10-May-10 2:59
mveCPallini10-May-10 2:59 
GeneralRe: Virtual function in DLL Pin
john563210-May-10 3:17
john563210-May-10 3:17 
GeneralRe: Virtual function in DLL Pin
CPallini10-May-10 3:22
mveCPallini10-May-10 3:22 
GeneralRe: Virtual function in DLL Pin
john563210-May-10 3:36
john563210-May-10 3:36 
GeneralRe: Virtual function in DLL Pin
Richard MacCutchan10-May-10 3:49
mveRichard MacCutchan10-May-10 3:49 
GeneralRe: Virtual function in DLL Pin
CPallini10-May-10 4:03
mveCPallini10-May-10 4:03 
GeneralRe: Virtual function in DLL Pin
john563210-May-10 3:45
john563210-May-10 3:45 
GeneralRe: Virtual function in DLL Pin
Cedric Moonen10-May-10 3:57
Cedric Moonen10-May-10 3:57 
GeneralRe: Virtual function in DLL Pin
john563210-May-10 4:18
john563210-May-10 4:18 
GeneralRe: Virtual function in DLL Pin
Cedric Moonen10-May-10 4:31
Cedric Moonen10-May-10 4:31 
GeneralRe: Virtual function in DLL Pin
john563210-May-10 5:52
john563210-May-10 5:52 
GeneralRe: Virtual function in DLL Pin
Cedric Moonen10-May-10 7:29
Cedric Moonen10-May-10 7:29 
AnswerRe: Virtual function in DLL Pin
Iain Clarke, Warrior Programmer10-May-10 0:59
Iain Clarke, Warrior Programmer10-May-10 0:59 
QuestionTranscoding using ffmpeg Pin
gmallax9-May-10 22:37
gmallax9-May-10 22:37 
AnswerRe: Transcoding using ffmpeg Pin
Code-o-mat9-May-10 23:13
Code-o-mat9-May-10 23:13 

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.