Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: importing from Gallery Pin
Antti Keskinen26-Jan-04 5:42
Antti Keskinen26-Jan-04 5:42 
GeneralReading pixel color values from a DIB Pin
harwanegg26-Jan-04 4:51
harwanegg26-Jan-04 4:51 
GeneralRe: Reading pixel color values from a DIB Pin
John R. Shaw26-Jan-04 5:59
John R. Shaw26-Jan-04 5:59 
GeneralIPersistPropertyBag question Pin
Vermithrax26-Jan-04 4:51
Vermithrax26-Jan-04 4:51 
Generalvirtual functions and dlls Pin
Achim Mueller26-Jan-04 4:51
Achim Mueller26-Jan-04 4:51 
GeneralRe: virtual functions and dlls Pin
Diddy26-Jan-04 6:17
Diddy26-Jan-04 6:17 
GeneralRe: virtual functions and dlls Pin
Achim Mueller26-Jan-04 7:00
Achim Mueller26-Jan-04 7:00 
GeneralRe: virtual functions and dlls Pin
Diddy26-Jan-04 10:41
Diddy26-Jan-04 10:41 
How are you then going about importing this class into the other project? Is the code you provided for Test the actual code? I ask because here you have a inline and virtual method - by defination a virtual function can't be inline, it needs an entry in the v-table to work correctly - though compliers do tend to work with them, its worth a try removing it. If you are just directly including the Test header file into your other project, this may be causing you problems. Try declaring the class as you usually would, and splitting up the deifination. Ie in the .H

class __declspec(dllexport) Test
{
public:
Test();
~Test();
virtual long GetCountRows();
};

Then in the .CPP

Test::Test()
{
}

Test::~Test()
{
}

long Test::GetRowCount()
{
return 1;
}

Generalenum type Pin
Jerome Conus26-Jan-04 4:46
Jerome Conus26-Jan-04 4:46 
GeneralRe: enum type Pin
J. Eric Vaughan26-Jan-04 5:08
J. Eric Vaughan26-Jan-04 5:08 
GeneralRe: enum type Pin
John R. Shaw26-Jan-04 6:16
John R. Shaw26-Jan-04 6:16 
Generalexcel to C++ Pin
Goh Hui Beng26-Jan-04 3:50
Goh Hui Beng26-Jan-04 3:50 
GeneralRe: excel to C++ Pin
Carlos Antollini26-Jan-04 4:02
Carlos Antollini26-Jan-04 4:02 
GeneralRe: excel to C++ Pin
Goh Hui Beng26-Jan-04 4:24
Goh Hui Beng26-Jan-04 4:24 
GeneralRe: excel to C++ Pin
David Crow26-Jan-04 4:30
David Crow26-Jan-04 4:30 
GeneralRe: excel to C++ Pin
Carlos Antollini26-Jan-04 6:39
Carlos Antollini26-Jan-04 6:39 
GeneralRe: excel to C++ Pin
Carlos Antollini26-Jan-04 6:40
Carlos Antollini26-Jan-04 6:40 
GeneralRe: excel to C++ Pin
David Crow26-Jan-04 4:29
David Crow26-Jan-04 4:29 
GeneralRe: excel to C++ Pin
mcsherry27-Jan-04 1:59
mcsherry27-Jan-04 1:59 
QuestionHow can i run my dialog in max. mode? Pin
P-Rex26-Jan-04 3:36
P-Rex26-Jan-04 3:36 
AnswerRe: How can i run my dialog in max. mode? Pin
David Crow26-Jan-04 4:33
David Crow26-Jan-04 4:33 
AnswerRe: How can i run my dialog in max. mode? Pin
P-Rex26-Jan-04 20:26
P-Rex26-Jan-04 20:26 
Generalbasic_istream::get calls setstate(failbit) if no elements was extracted Pin
Per G26-Jan-04 3:31
Per G26-Jan-04 3:31 
QuestionAmpersand usage in C++ ? Pin
LudaLuda26-Jan-04 3:27
LudaLuda26-Jan-04 3:27 
AnswerRe: Ampersand usage in C++ ? Pin
David Crow26-Jan-04 4:36
David Crow26-Jan-04 4:36 

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.