Click here to Skip to main content
15,499,155 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 4:11
MemberLeif Simon Goodwin17-Jul-16 4:11 
AnswerSolved Pin
Leif Simon Goodwin17-Jul-16 21:42
MemberLeif Simon Goodwin17-Jul-16 21:42 
QuestionDirectX 9 in code:blocks fails on initD3D Pin
Korowai14-Jul-16 10:10
MemberKorowai14-Jul-16 10:10 
AnswerRe: DirectX 9 in code:blocks fails on initD3D Pin
leon de boer14-Jul-16 19:13
Memberleon de boer14-Jul-16 19:13 
GeneralRe: DirectX 9 in code:blocks fails on initD3D Pin
Korowai15-Jul-16 7:04
MemberKorowai15-Jul-16 7:04 
GeneralRe: DirectX 9 in code:blocks fails on initD3D Pin
Korowai1-Aug-16 17:19
MemberKorowai1-Aug-16 17:19 
Questionbehaviour when adding custom buttons to CMFCToolBar with CMFCToolBar::ReplaceButton? Pin
Maximilien13-Jul-16 11:27
MemberMaximilien13-Jul-16 11:27 
QuestionCalling C Function in Dll Causing Problem Pin
Django_Untaken12-Jul-16 5:52
MemberDjango_Untaken12-Jul-16 5: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 6:19
mveRichard MacCutchan12-Jul-16 6:19 
GeneralRe: Calling C Function in Dll Causing Problem Pin
Django_Untaken12-Jul-16 6:27
MemberDjango_Untaken12-Jul-16 6:27 
AnswerRe: Calling C Function in Dll Causing Problem Pin
Albert Holguin12-Jul-16 6:59
professionalAlbert Holguin12-Jul-16 6:59 
GeneralRe: Calling C Function in Dll Causing Problem Pin
Django_Untaken12-Jul-16 8:18
MemberDjango_Untaken12-Jul-16 8:18 
GeneralRe: Calling C Function in Dll Causing Problem Pin
Albert Holguin13-Jul-16 7:36
professionalAlbert Holguin13-Jul-16 7:36 
GeneralRe: Calling C Function in Dll Causing Problem Pin
mariakatosvich13-Aug-16 3:28
Membermariakatosvich13-Aug-16 3:28 
GeneralRe: Calling C Function in Dll Causing Problem Pin
Richard MacCutchan12-Jul-16 7:08
mveRichard MacCutchan12-Jul-16 7:08 
QuestionNcPaint and Invalid rect/region Pin
Сергей Шевченко12-Jul-16 3:00
MemberСергей Шевченко12-Jul-16 3:00 
AnswerRe: NcPaint and Invalid rect/region Pin
leon de boer12-Jul-16 3:33
Memberleon de boer12-Jul-16 3:33 
GeneralRe: NcPaint and Invalid rect/region Pin
Сергей Шевченко12-Jul-16 5:15
MemberСергей Шевченко12-Jul-16 5:15 
QuestionCalling a method with the pointer to a base class Pin
FriendOfAsherah10-Jul-16 22:11
MemberFriendOfAsherah10-Jul-16 22:11 
AnswerRe: Calling a method with the pointer to a base class Pin
Jochen Arndt10-Jul-16 22:47
professionalJochen Arndt10-Jul-16 22:47 
GeneralRe: Calling a method with the pointer to a base class Pin
FriendOfAsherah10-Jul-16 23:33
MemberFriendOfAsherah10-Jul-16 23:33 
GeneralRe: Calling a method with the pointer to a base class Pin
Jochen Arndt10-Jul-16 23:52
professionalJochen Arndt10-Jul-16 23:52 
GeneralRe: Calling a method with the pointer to a base class Pin
_Flaviu11-Jul-16 2:59
Member_Flaviu11-Jul-16 2:59 
GeneralRe: Calling a method with the pointer to a base class Pin
leon de boer11-Jul-16 8:16
Memberleon de boer11-Jul-16 8:16 
Questionreguired fast printing Pin
patilvaibhavrao7-Jul-16 21:39
Memberpatilvaibhavrao7-Jul-16 21: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.