Click here to Skip to main content
14,984,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Unmanaged DLL used by C# WPF app not receiving WM_DEVICECHANGE Pin
Leif Simon Goodwin17-Jul-16 3:11
mvaLeif Simon Goodwin17-Jul-16 3:11 
AnswerSolved Pin
Leif Simon Goodwin17-Jul-16 20:42
mvaLeif Simon Goodwin17-Jul-16 20:42 
QuestionDirectX 9 in code:blocks fails on initD3D Pin
Korowai14-Jul-16 9:10
MemberKorowai14-Jul-16 9:10 
AnswerRe: DirectX 9 in code:blocks fails on initD3D Pin
leon de boer14-Jul-16 18:13
Memberleon de boer14-Jul-16 18:13 
GeneralRe: DirectX 9 in code:blocks fails on initD3D Pin
Korowai15-Jul-16 6:04
MemberKorowai15-Jul-16 6:04 
GeneralRe: DirectX 9 in code:blocks fails on initD3D Pin
Korowai1-Aug-16 16:19
MemberKorowai1-Aug-16 16:19 
Questionbehaviour when adding custom buttons to CMFCToolBar with CMFCToolBar::ReplaceButton? Pin
Maximilien13-Jul-16 10:27
MemberMaximilien13-Jul-16 10:27 
QuestionCalling C Function in Dll Causing Problem Pin
Django_Untaken12-Jul-16 4:52
MemberDjango_Untaken12-Jul-16 4:52 
Hello there. I am trying to call a C function in my newly created Dll project's code. But doing so produces Unresolved External Symbol error. Here is the what I am trying
Header.h

int call_main(int argc, char** argv);

Header.cpp

int call_main(int argc, char** argv)
{
   // all the code here .....
    return 0;
}

Now I include this Header.h in my Dll's main file and try to call call_main. Building the project produces the said error.
<h1>include "Header.h"</h1>

class Functions
{
public:
    static __declspec(dllexport) int Call_MyMain(char **argv);
};

int Functions::Call_MyMain(char **argv)
{
    return call_main(8, argv); // HERE I AM CALLING FROM ABOVE HEADER FILE
}

What could be wrong? What am I missing? Thanks for any input.
SuggestionRe: Calling C Function in Dll Causing Problem Pin
Richard MacCutchan12-Jul-16 5:19
mveRichard MacCutchan12-Jul-16 5:19 
GeneralRe: Calling C Function in Dll Causing Problem Pin
Django_Untaken12-Jul-16 5:27
MemberDjango_Untaken12-Jul-16 5:27 
AnswerRe: Calling C Function in Dll Causing Problem Pin
Albert Holguin12-Jul-16 5:59
professionalAlbert Holguin12-Jul-16 5:59 
GeneralRe: Calling C Function in Dll Causing Problem Pin
Django_Untaken12-Jul-16 7:18
MemberDjango_Untaken12-Jul-16 7:18 
GeneralRe: Calling C Function in Dll Causing Problem Pin
Albert Holguin13-Jul-16 6:36
professionalAlbert Holguin13-Jul-16 6:36 
GeneralRe: Calling C Function in Dll Causing Problem Pin
mariakatosvich13-Aug-16 2:28
Membermariakatosvich13-Aug-16 2:28 
GeneralRe: Calling C Function in Dll Causing Problem Pin
Richard MacCutchan12-Jul-16 6:08
mveRichard MacCutchan12-Jul-16 6:08 
QuestionNcPaint and Invalid rect/region Pin
Сергей Шевченко12-Jul-16 2:00
MemberСергей Шевченко12-Jul-16 2:00 
AnswerRe: NcPaint and Invalid rect/region Pin
leon de boer12-Jul-16 2:33
Memberleon de boer12-Jul-16 2:33 
GeneralRe: NcPaint and Invalid rect/region Pin
Сергей Шевченко12-Jul-16 4:15
MemberСергей Шевченко12-Jul-16 4:15 
QuestionCalling a method with the pointer to a base class Pin
FriendOfAsherah10-Jul-16 21:11
MemberFriendOfAsherah10-Jul-16 21:11 
AnswerRe: Calling a method with the pointer to a base class Pin
Jochen Arndt10-Jul-16 21:47
professionalJochen Arndt10-Jul-16 21:47 
GeneralRe: Calling a method with the pointer to a base class Pin
FriendOfAsherah10-Jul-16 22:33
MemberFriendOfAsherah10-Jul-16 22:33 
GeneralRe: Calling a method with the pointer to a base class Pin
Jochen Arndt10-Jul-16 22:52
professionalJochen Arndt10-Jul-16 22:52 
GeneralRe: Calling a method with the pointer to a base class Pin
_Flaviu11-Jul-16 1:59
Member_Flaviu11-Jul-16 1:59 
GeneralRe: Calling a method with the pointer to a base class Pin
leon de boer11-Jul-16 7:16
Memberleon de boer11-Jul-16 7:16 
Questionreguired fast printing Pin
patilvaibhavrao7-Jul-16 20:39
Memberpatilvaibhavrao7-Jul-16 20:39 

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.