Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multiple text lines and ellipsis? Pin
Moak14-Mar-08 6:42
Moak14-Mar-08 6:42 
GeneralRe: Multiple text lines and ellipsis? Pin
David Crow14-Mar-08 6:50
David Crow14-Mar-08 6:50 
GeneralRe: Multiple text lines and ellipsis? Pin
led mike14-Mar-08 7:49
led mike14-Mar-08 7:49 
GeneralRe: Multiple text lines and ellipsis? Pin
Moak15-Mar-08 10:08
Moak15-Mar-08 10:08 
GeneralHRESULT function confusion Pin
rowdy_vc++14-Mar-08 3:07
rowdy_vc++14-Mar-08 3:07 
GeneralRe: HRESULT function confusion Pin
CPallini14-Mar-08 3:47
mveCPallini14-Mar-08 3:47 
GeneralRe: HRESULT function confusion Pin
Rajesh R Subramanian14-Mar-08 8:13
professionalRajesh R Subramanian14-Mar-08 8:13 
GeneralExporting entry points in a dll with classes Pin
Klive814-Mar-08 2:58
Klive814-Mar-08 2:58 
When I don't have classes I do this to export my entry points:
//########################
//C++

extern "C" __declspec(dllexport) int __stdcall SumUp_unmgdCPP(int a, int b, int* c)
{
c[0]=4; c[1]=3; c[2]=2; c[3]=1;


//########################
//C#
[DllImport("NameOfDLL", CallingConvention = CallingConvention.StdCall)]
public static extern int SumUp_unmgdCPP(int a, int b, int[] f);

public int SumUp(int a, int b, ref int[] f)
{
return SumUp_unmgdCPP(a, b, f);


How do you do it in a C++ dll-project with classes? I did this:


class FMS
{
public:
extern "C" __declspec(dllexport) int __stdcall SumUp_unmgdCPP(int a, int b, int* c);

private:
float m_WheelSpeed; // 1
}

It complains about the string "C" above being part of the declaration above. I don't think this is the way you do it when you have classes. Just paste the equivalent of what I'm doing in at the top in a dll-project with no classes but now instead in a C++ dll-project with classes and I will be very thankful.

/Lars
GeneralRe: Exporting entry points in a dll with classes Pin
David Crow14-Mar-08 3:02
David Crow14-Mar-08 3:02 
Generalpath via property sheet Pin
john563214-Mar-08 2:46
john563214-Mar-08 2:46 
QuestionChrash at UpdateData(FALSE) Pin
merh14-Mar-08 2:45
merh14-Mar-08 2:45 
GeneralRe: Chrash at UpdateData(FALSE) Pin
Cedric Moonen14-Mar-08 3:03
Cedric Moonen14-Mar-08 3:03 
QuestionRe: Chrash at UpdateData(FALSE) Pin
merh14-Mar-08 3:14
merh14-Mar-08 3:14 
GeneralRe: Chrash at UpdateData(FALSE) Pin
jhwurmbach14-Mar-08 3:51
jhwurmbach14-Mar-08 3:51 
AnswerRe: Chrash at UpdateData(FALSE) Pin
bert_r14-Mar-08 3:20
bert_r14-Mar-08 3:20 
QuestionRe: Chrash at UpdateData(FALSE) Pin
merh14-Mar-08 4:15
merh14-Mar-08 4:15 
AnswerRe: Chrash at UpdateData(FALSE) Pin
bert_r14-Mar-08 4:54
bert_r14-Mar-08 4:54 
GeneralRe: Chrash at UpdateData(FALSE) Pin
merh14-Mar-08 5:03
merh14-Mar-08 5:03 
GeneralRe: Crash at UpdateData(FALSE) Pin
bert_r14-Mar-08 5:19
bert_r14-Mar-08 5:19 
GeneralRe: Crash at UpdateData(FALSE) Pin
merh14-Mar-08 5:40
merh14-Mar-08 5:40 
GeneralRe: Chrash at UpdateData(FALSE) Pin
David Crow14-Mar-08 5:41
David Crow14-Mar-08 5:41 
GeneralRe: Chrash at UpdateData(FALSE) Pin
merh14-Mar-08 5:51
merh14-Mar-08 5:51 
GeneralRe: Chrash at UpdateData(FALSE) Pin
merh14-Mar-08 6:15
merh14-Mar-08 6:15 
GeneralRe: Chrash at UpdateData(FALSE) Pin
David Crow14-Mar-08 6:16
David Crow14-Mar-08 6:16 
Questioncan anybody tell me how i can call a vb activex dll from c++ Pin
philiptabraham14-Mar-08 1:29
philiptabraham14-Mar-08 1:29 

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.