Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug mode in COM ... Pin
Tim Deveaux23-Jan-05 3:18
Tim Deveaux23-Jan-05 3:18 
Generalencryption...pls help! Pin
mytz22-Jan-05 19:19
mytz22-Jan-05 19:19 
GeneralCrypto++ help Pin
Neville Franks22-Jan-05 16:51
Neville Franks22-Jan-05 16:51 
GeneralResource loading fails in a static library (.lib) Pin
Mr. Accident22-Jan-05 16:45
Mr. Accident22-Jan-05 16:45 
GeneralRe: Resource loading fails in a static library (.lib) Pin
rschuler3-Jun-05 6:46
rschuler3-Jun-05 6:46 
GeneralRe: Resource loading fails in a static library (.lib) Pin
Mr. Accident3-Jun-05 8:47
Mr. Accident3-Jun-05 8:47 
GeneralInno Setup Pin
Anonymous22-Jan-05 16:19
Anonymous22-Jan-05 16:19 
GeneralRe: Inno Setup Pin
Gary R. Wheeler23-Jan-05 3:59
Gary R. Wheeler23-Jan-05 3:59 
Inno Setup can only call 'C' style functions, not classes.

I created my DLL project using File, New Project, Visual C++ projects, MFC, MFC DLL, MFC using MFC shared DLL.

The following are some excerpts from an Inno Setup DLL I use.

This is a function in my DLL that is called by my Inno Setup script:
extern "C" __declspec(dllexport)
void __stdcall RegistryScrub(char *product,char *install_path)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());
	//... [snipped]
};
and this is the declaration in the [Code] section of my Inno Setup script:
procedure RegistryScrub(product : String;
                             install_path : String);
external 'RegistryScrub@files:VersamarkSetup.dll stdcall';
You can pass strings to DLL functions as char *, int's, etc.

My DLL is included in my setup via the following:
[Files]
Source: "VersamarkSetup.dll"; Flags: dontcopy



Software Zen: delete this;
GeneralRe: Inno Setup Pin
Anonymous24-Jan-05 4:17
Anonymous24-Jan-05 4:17 
GeneralRe: Inno Setup Pin
Gary R. Wheeler25-Jan-05 12:51
Gary R. Wheeler25-Jan-05 12:51 
Generalpointer range question Pin
nm_11422-Jan-05 15:47
nm_11422-Jan-05 15:47 
GeneralControlling memory leaks Pin
stefane_filion22-Jan-05 9:53
stefane_filion22-Jan-05 9:53 
Generalconst type; Pin
Bo Hunter22-Jan-05 8:15
Bo Hunter22-Jan-05 8:15 
GeneralRe: const type; Pin
Maximilien22-Jan-05 8:48
Maximilien22-Jan-05 8:48 
GeneralRe: const type; Pin
Joaquín M López Muñoz23-Jan-05 4:50
Joaquín M López Muñoz23-Jan-05 4:50 
QuestionHow to idntification device manufacture of pocket pc? Pin
arash47122-Jan-05 7:24
arash47122-Jan-05 7:24 
GeneralSend cookie in HTTP request Pin
dorutzu22-Jan-05 6:32
dorutzu22-Jan-05 6:32 
Questionremove installed programs programmatically? Pin
LukeV22-Jan-05 6:11
LukeV22-Jan-05 6:11 
AnswerRe: remove installed programs programmatically? Pin
ThatsAlok23-Jan-05 18:13
ThatsAlok23-Jan-05 18:13 
GeneralWMA Decoder Source Code Pin
aRtsZ22-Jan-05 5:37
aRtsZ22-Jan-05 5:37 
QuestionPut different data types in binary form in a char array? Pin
capriole22-Jan-05 5:22
capriole22-Jan-05 5:22 
AnswerRe: Put different data types in binary form in a char array? Pin
toxcct22-Jan-05 7:53
toxcct22-Jan-05 7:53 
GeneralRe: Put different data types in binary form in a char array? Pin
capriole25-Jan-05 5:39
capriole25-Jan-05 5:39 
GeneralRe: Put different data types in binary form in a char array? Pin
toxcct25-Jan-05 9:40
toxcct25-Jan-05 9:40 
QuestionRemedial UI Thread ? Pin
ddut22-Jan-05 4:48
ddut22-Jan-05 4:48 

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.