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

C / C++ / MFC

 
GeneralRe: open and print PDF :( Pin
pnpfriend25-Sep-02 3:46
pnpfriend25-Sep-02 3:46 
GeneralAppWizard error?(create a Custom AppWizard type project) Pin
Bing Ding22-Sep-02 4:07
Bing Ding22-Sep-02 4:07 
Generalload BITMAP in DirectX Pin
Ta_Tee47322-Sep-02 4:03
Ta_Tee47322-Sep-02 4:03 
GeneralRe: load BITMAP in DirectX Pin
FlyingWren22-Sep-02 4:22
FlyingWren22-Sep-02 4:22 
GeneralUse VC dll in Delphi Pin
Mazdak22-Sep-02 3:53
Mazdak22-Sep-02 3:53 
GeneralRe: Use VC dll in Delphi Pin
User 665822-Sep-02 3:56
User 665822-Sep-02 3:56 
GeneralRe: Use VC dll in Delphi Pin
Mazdak22-Sep-02 4:02
Mazdak22-Sep-02 4:02 
GeneralRe: Use VC dll in Delphi Pin
User 665822-Sep-02 4:04
User 665822-Sep-02 4:04 
This is how your exported functions in the DLL look like:
extern "C" __declspec(dllexport) void _stdcall YourFunction()
{
	// TODO: insert your code here
}


To make importing from Delphi easier it is recommended to change the function declaration in your .def-file like this:

; yourdll.def

LIBRARY      "yourdll.dll"

EXPORTS
	YourFunction=_YourFunction@0


This way you can simply import your function on delphi side by importing the function "YourFunction"

modified 12-Sep-18 21:01pm.

GeneralRe: Use VC dll in Delphi Pin
Mazdak22-Sep-02 4:13
Mazdak22-Sep-02 4:13 
GeneralRe: Use VC dll in Delphi Pin
Mazdak22-Sep-02 4:23
Mazdak22-Sep-02 4:23 
GeneralSource code provided with Petzold's book Pin
axa22-Sep-02 3:19
axa22-Sep-02 3:19 
GeneralRe: Source code provided with Petzold's book Pin
Bing Ding22-Sep-02 4:16
Bing Ding22-Sep-02 4:16 
GeneralRe: Source code provided with Petzold's book Pin
axa22-Sep-02 4:58
axa22-Sep-02 4:58 
General"token" in strtok - a very simple question Pin
ns22-Sep-02 2:27
ns22-Sep-02 2:27 
GeneralRe: "token" in strtok - a very simple question Pin
Pavel Klocek22-Sep-02 2:44
Pavel Klocek22-Sep-02 2:44 
Generalthank you much! Pin
ns22-Sep-02 2:49
ns22-Sep-02 2:49 
GeneralRe: "token" in strtok - a very simple question Pin
Pavel Klocek22-Sep-02 2:46
Pavel Klocek22-Sep-02 2:46 
Generalnumerical value of WM_COMMAND Pin
ns22-Sep-02 2:22
ns22-Sep-02 2:22 
GeneralRe: numerical value of WM_COMMAND Pin
Pavel Klocek22-Sep-02 2:37
Pavel Klocek22-Sep-02 2:37 
GeneralThanks Pin
ns22-Sep-02 2:43
ns22-Sep-02 2:43 
GeneralMS Word Toolbar Pin
Goa22-Sep-02 0:12
Goa22-Sep-02 0:12 
QuestionHow do I strip \r\n from a CString? Pin
Anonymous21-Sep-02 20:13
Anonymous21-Sep-02 20:13 
AnswerRe: How do I strip \r\n from a CString? Pin
Brad Jennings21-Sep-02 22:08
Brad Jennings21-Sep-02 22:08 
GeneralRe: How do I strip \r\n from a CString? Pin
Anonymous21-Sep-02 22:22
Anonymous21-Sep-02 22:22 
AnswerRe: How do I strip \r\n from a CString? Pin
valikac22-Sep-02 6:23
valikac22-Sep-02 6:23 

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.