Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can C++ code start a service Pin
Charles Spirz27-Apr-08 12:02
Charles Spirz27-Apr-08 12:02 
QuestionRe: Can C++ code start a service Pin
Knowledgestudent27-Apr-08 13:48
Knowledgestudent27-Apr-08 13:48 
GeneralRe: Can C++ code start a service Pin
Charles Spirz27-Apr-08 14:35
Charles Spirz27-Apr-08 14:35 
AnswerRe: Can C++ code start a service Pin
ThatsAlok1-Jul-09 0:04
ThatsAlok1-Jul-09 0:04 
QuestionFunction pointers from DLL [modified] Pin
Michael Siroen27-Apr-08 10:08
Michael Siroen27-Apr-08 10:08 
GeneralRe: Function pointers from DLL Pin
Mark Salsbery27-Apr-08 10:56
Mark Salsbery27-Apr-08 10:56 
GeneralRe: Function pointers from DLL Pin
Michael Siroen27-Apr-08 10:58
Michael Siroen27-Apr-08 10:58 
GeneralRe: Function pointers from DLL Pin
Mark Salsbery27-Apr-08 11:28
Mark Salsbery27-Apr-08 11:28 
The first version of your EXE code works for me as long as
that last header file code is included in the EXE cpp file.
Exe:
.cpp

namespace Engine
{
namespace Input
{
__declspec(dllimport) void (*on_a)(void);
}
}

void FuncA(void)
{
    MessageBox(NULL, L"FuncA called!", L"NOTIFICATION!", MB_OK);
    return;
}

int main()
{
    Engine::Input::on_a = &FuncA;
    return 0;
}


Mark


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Function pointers from DLL Pin
Michael Siroen27-Apr-08 11:40
Michael Siroen27-Apr-08 11:40 
GeneralRe: Function pointers from DLL Pin
Ozer Karaagac27-Apr-08 11:36
professionalOzer Karaagac27-Apr-08 11:36 
GeneralRe: Function pointers from DLL [modified] Pin
Michael Siroen27-Apr-08 11:51
Michael Siroen27-Apr-08 11:51 
GeneralGet time of system Pin
phap27-Apr-08 8:31
phap27-Apr-08 8:31 
GeneralRe: Get time of system Pin
Saurabh.Garg27-Apr-08 9:10
Saurabh.Garg27-Apr-08 9:10 
GeneralRe: Get time of system Pin
Hamid_RT29-Apr-08 1:25
Hamid_RT29-Apr-08 1:25 
Generalhelp please Pin
rasred27-Apr-08 8:23
rasred27-Apr-08 8:23 
GeneralCStdio exception handler Pin
Member 330122927-Apr-08 4:20
Member 330122927-Apr-08 4:20 
GeneralRe: CStdio exception handler Pin
Jijo.Raj27-Apr-08 6:22
Jijo.Raj27-Apr-08 6:22 
GeneralRe: CStdio exception handler Pin
Randor 27-Apr-08 10:28
professional Randor 27-Apr-08 10:28 
Questionunicode const string must be like: L"abc"? Pin
followait26-Apr-08 23:26
followait26-Apr-08 23:26 
AnswerRe: unicode const string must be like: L"abc"? Pin
CPallini27-Apr-08 4:34
mveCPallini27-Apr-08 4:34 
AnswerRe: unicode const string must be like: L"abc"? Pin
Mark Salsbery27-Apr-08 8:04
Mark Salsbery27-Apr-08 8:04 
GeneralRe: unicode const string must be like: L"abc"? Pin
followait27-Apr-08 19:48
followait27-Apr-08 19:48 
AnswerRe: unicode const string must be like: L"abc"? Pin
Ozer Karaagac27-Apr-08 10:51
professionalOzer Karaagac27-Apr-08 10:51 
GeneralI want to generate a list of all combinatons i.e nCr combinations Pin
Member 465568526-Apr-08 22:01
Member 465568526-Apr-08 22:01 
AnswerRe: I want to generate a list of all combinatons i.e nCr combinations Pin
Maruf Maniruzzaman27-Apr-08 1:57
Maruf Maniruzzaman27-Apr-08 1:57 

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.