Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to know the process is run with admin privileges or not? Pin
Le@rner26-Nov-13 0:37
Le@rner26-Nov-13 0:37 
AnswerRe: how to know the process is run with admin privileges or not? Pin
Richard Andrew x6426-Nov-13 6:58
professionalRichard Andrew x6426-Nov-13 6:58 
AnswerRe: how to know the process is run with admin privileges or not? Pin
«_Superman_»26-Nov-13 19:53
professional«_Superman_»26-Nov-13 19:53 
GeneralRe: how to know the process is run with admin privileges or not? Pin
Le@rner26-Nov-13 22:33
Le@rner26-Nov-13 22:33 
QuestionGet user name Pin
john563225-Nov-13 6:25
john563225-Nov-13 6:25 
QuestionRe: Get user name Pin
David Crow25-Nov-13 7:07
David Crow25-Nov-13 7:07 
AnswerRe: Get user name Pin
«_Superman_»25-Nov-13 19:35
professional«_Superman_»25-Nov-13 19:35 
QuestionC-Style Exports Pin
Richard Andrew x6424-Nov-13 15:15
professionalRichard Andrew x6424-Nov-13 15:15 
I have a regular DLL that uses MFC statically linked.

When I try to export a function with a c-style unmangled name, the DLL ends up being built with a mangled name for the function.

The function I'm exporting is defined as follows:
C++
extern "C"
{
    _declspec(dllexport) _LaunchProcess __stdcall Start(LPCLIENT32STARTUPCONTEXT StartupContext)
    {
        theApp.Start(StartupContext);
        return &LaunchProcess;
    }
}
    // _LaunchProcess is a function pointer typedef, and LaunchProcess is a function definition.


When I build the DLL, the function ends up named "_Start@4" instead of just "Start". Does anyone know how I can force it to export the function as "Start"?



The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: C-Style Exports Pin
Joe Woodbury24-Nov-13 16:45
professionalJoe Woodbury24-Nov-13 16:45 
GeneralRe: C-Style Exports Pin
Richard Andrew x6424-Nov-13 16:51
professionalRichard Andrew x6424-Nov-13 16:51 
GeneralRe: C-Style Exports Pin
Richard Andrew x6424-Nov-13 16:53
professionalRichard Andrew x6424-Nov-13 16:53 
AnswerRe: C-Style Exports Pin
«_Superman_»24-Nov-13 18:52
professional«_Superman_»24-Nov-13 18:52 
GeneralRe: C-Style Exports Pin
Richard Andrew x6425-Nov-13 6:19
professionalRichard Andrew x6425-Nov-13 6:19 
GeneralRe: C-Style Exports Pin
«_Superman_»25-Nov-13 19:26
professional«_Superman_»25-Nov-13 19:26 
QuestionHow to draw lines in a translucent window Pin
chengmingma22-Nov-13 16:42
chengmingma22-Nov-13 16:42 
AnswerRe: How to draw lines in a translucent window Pin
enhzflep22-Nov-13 18:50
enhzflep22-Nov-13 18:50 
Question[SOLVED] What is the x64 #define? Pin
Richard Andrew x6422-Nov-13 11:34
professionalRichard Andrew x6422-Nov-13 11:34 
SuggestionRe: [SOLVED] What is the x64 #define? Pin
Randor 22-Nov-13 12:51
professional Randor 22-Nov-13 12:51 
GeneralRe: [SOLVED] What is the x64 #define? Pin
Richard Andrew x6422-Nov-13 12:54
professionalRichard Andrew x6422-Nov-13 12:54 
GeneralRe: [SOLVED] What is the x64 #define? Pin
Randor 22-Nov-13 13:13
professional Randor 22-Nov-13 13:13 
QuestionTransparent TreeView Control in MFC CPP Pin
kalyani.homkar20-Nov-13 23:59
kalyani.homkar20-Nov-13 23:59 
AnswerRe: Transparent TreeView Control in MFC CPP Pin
kalyani.homkar21-Nov-13 0:05
kalyani.homkar21-Nov-13 0:05 
QuestionSSL CONNECTION Pin
Member 1041375220-Nov-13 20:44
Member 1041375220-Nov-13 20:44 
QuestionRe: SSL CONNECTION Pin
David Crow22-Nov-13 5:58
David Crow22-Nov-13 5:58 
QuestionCDhtmlDialog : With JavaScript calling C++ Pin
Don Guy20-Nov-13 16:02
Don Guy20-Nov-13 16:02 

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.