Click here to Skip to main content
15,921,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to hide my programme thoroughly Pin
User 1605516-Apr-02 3:34
User 1605516-Apr-02 3:34 
AnswerRe: How to hide my programme thoroughly Pin
Maximilien16-Apr-02 9:54
Maximilien16-Apr-02 9:54 
GeneralRe: How to hide my programme thoroughly Pin
Alex Cramer16-Apr-02 21:14
Alex Cramer16-Apr-02 21:14 
GeneralCListCtrl Pin
Catherine16-Apr-02 3:29
Catherine16-Apr-02 3:29 
GeneralRe: CListCtrl Pin
NapiSpooler16-Apr-02 4:25
NapiSpooler16-Apr-02 4:25 
GeneralRe: CListCtrl Pin
Catherine16-Apr-02 4:33
Catherine16-Apr-02 4:33 
GeneralRe: CListCtrl Pin
NapiSpooler16-Apr-02 4:42
NapiSpooler16-Apr-02 4:42 
GeneralA beginners guide to dll's Pin
16-Apr-02 3:07
suss16-Apr-02 3:07 
Just wondering if any of you clever peeps out there
could help me in creating my first c++ dll.

I just need and example of a dll containing a function
that takes one int, multiplies it by two and returns
the answer.

The main bit i'm stuggling to find out is how you make
this function accessable so it can be called externally;

I managed to find out how to do it in delphi e.g.

library Sample;

uses
SysUtils,
Classes;

{$R *.RES}

function MultiplyByTwo(X: integer): integer; cdecl; export;
begin
MultiplyByTwo := X * 2;
end;

exports
MultiplyByTwo;

begin
end.

but as i don't have access to delphi, it's not much help.

Any help would be greatly appreciated.
GeneralRe: A beginners guide to dll's Pin
Joel Holdsworth16-Apr-02 3:37
Joel Holdsworth16-Apr-02 3:37 
GeneralRe: A beginners guide to dll's Pin
16-Apr-02 4:48
suss16-Apr-02 4:48 
Generalcopy resources between two projects Pin
lucy16-Apr-02 2:57
lucy16-Apr-02 2:57 
GeneralRe: copy resources between two projects Pin
Brad Bruce16-Apr-02 3:13
Brad Bruce16-Apr-02 3:13 
GeneralRe: copy resources between two projects Pin
lucy16-Apr-02 3:30
lucy16-Apr-02 3:30 
Generalrunning program from different computer Pin
Rajveer16-Apr-02 2:55
Rajveer16-Apr-02 2:55 
GeneralRe: running program from different computer Pin
Carlos Antollini16-Apr-02 3:34
Carlos Antollini16-Apr-02 3:34 
GeneralSerial Communication Pin
16-Apr-02 2:48
suss16-Apr-02 2:48 
GeneralRe: Serial Communication Pin
Joaquín M López Muñoz16-Apr-02 10:02
Joaquín M López Muñoz16-Apr-02 10:02 
GeneralRe: Serial Communication Pin
16-Apr-02 20:27
suss16-Apr-02 20:27 
GeneralDeclaring classes inside other classes Pin
Alexandru Savescu16-Apr-02 2:12
Alexandru Savescu16-Apr-02 2:12 
GeneralRe: Declaring classes inside other classes Pin
Joaquín M López Muñoz16-Apr-02 3:18
Joaquín M López Muñoz16-Apr-02 3:18 
GeneralBCG Menu....Right to Left Layout Pin
Ahmad9916-Apr-02 2:09
Ahmad9916-Apr-02 2:09 
GeneralRe: BCG Menu....Right to Left Layout Pin
Alexandru Savescu16-Apr-02 2:15
Alexandru Savescu16-Apr-02 2:15 
Generalcompatibilty issue (VC5.0 and VC6.0) Pin
Drawil16-Apr-02 2:02
Drawil16-Apr-02 2:02 
GeneralRe: compatibilty issue (VC5.0 and VC6.0) Pin
Henk Groenewoud16-Apr-02 2:14
Henk Groenewoud16-Apr-02 2:14 
GeneralRe: compatibilty issue (VC5.0 and VC6.0) Pin
Dominik Reichl16-Apr-02 2:14
Dominik Reichl16-Apr-02 2:14 

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.