Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
ENewton7-Sep-03 10:05
ENewton7-Sep-03 10:05 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Ted Ferenc7-Sep-03 12:26
Ted Ferenc7-Sep-03 12:26 
GeneralRe: a perplexing access violation... I just wanna be tidy! ;-) Pin
Gary R. Wheeler7-Sep-03 12:30
Gary R. Wheeler7-Sep-03 12:30 
GeneralConverting a MFC CView app to an ActiveX control Pin
AJ1237-Sep-03 7:29
AJ1237-Sep-03 7:29 
GeneralRe: Converting a MFC CView app to an ActiveX control Pin
igor19607-Sep-03 10:34
igor19607-Sep-03 10:34 
GeneralDomains and Workgroups List Pin
Frank Deo7-Sep-03 7:20
Frank Deo7-Sep-03 7:20 
GeneralRe: Domains and Workgroups List Pin
Frank Deo7-Sep-03 9:56
Frank Deo7-Sep-03 9:56 
GeneralReferencing "internal" resources in MFC Pin
Antti Keskinen7-Sep-03 5:28
Antti Keskinen7-Sep-03 5:28 
Hi !

The topic states it pretty well, but let me specify a little. I am building an application which uses a HTML template (mailbase.html) to send e-mail. Now, I currently have the CFile constructor to find & open this file from the same folder as the executable. However, I would like to reduce the number of files visible to the end user.

So, the necessity would be to include the HTML file to the project's resources, and use the CFile to open this "resource file" instead. Question is, what must I write for the first parameter of the constructor (filename) in order to have it search inside the executable instead of the directory where the executable is ?

Or, if the CFile isn't an appropriate solution, what should I do ? The idea is that the software opens the HTML file, copies it to CString, finds comment spots there and replaces them with appropriate information. So, a "standard" way to use a HTML template Smile | :)

I am using version 2003 of MS Visual Studio, but all tips/tricks, including those for older versions, will be helpful.

Greets,
Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Referencing "internal" resources in MFC Pin
Michael Dunn7-Sep-03 8:17
sitebuilderMichael Dunn7-Sep-03 8:17 
GeneralRe: Referencing "internal" resources in MFC Pin
PJ Arends7-Sep-03 8:21
professionalPJ Arends7-Sep-03 8:21 
GeneralRe: Referencing "internal" resources in MFC Pin
Antti Keskinen7-Sep-03 10:45
Antti Keskinen7-Sep-03 10:45 
GeneralRe: Referencing "internal" resources in MFC Pin
Michael Dunn7-Sep-03 13:07
sitebuilderMichael Dunn7-Sep-03 13:07 
GeneralRe: Referencing "internal" resources in MFC Pin
Antti Keskinen7-Sep-03 18:12
Antti Keskinen7-Sep-03 18:12 
Generalnon modal Dialog in Background Pin
DarkMarine7-Sep-03 5:11
DarkMarine7-Sep-03 5:11 
GeneralRe: non modal Dialog in Background Pin
valikac7-Sep-03 5:14
valikac7-Sep-03 5:14 
GeneralRe: non modal Dialog in Background Pin
Nish Nishant7-Sep-03 18:18
sitebuilderNish Nishant7-Sep-03 18:18 
GeneralRe: non modal Dialog in Background Pin
DarkMarine7-Sep-03 21:54
DarkMarine7-Sep-03 21:54 
GeneralGet router stats Pin
pma7-Sep-03 3:51
pma7-Sep-03 3:51 
GeneralRe: Get router stats Pin
geo_m7-Sep-03 6:01
geo_m7-Sep-03 6:01 
GeneralModeless Dialog box Pin
Ph@ntom6-Sep-03 23:40
Ph@ntom6-Sep-03 23:40 
GeneralRe: Modeless Dialog box Pin
valikac7-Sep-03 5:16
valikac7-Sep-03 5:16 
GeneralRe: Modeless Dialog box Pin
Ph@ntom7-Sep-03 7:44
Ph@ntom7-Sep-03 7:44 
Questionapplying skinmagic toolkit to vc++ programs ? Pin
AdrenalineDetonator6-Sep-03 23:15
AdrenalineDetonator6-Sep-03 23:15 
AnswerRe: applying skinmagic toolkit to vc++ programs ? Pin
Neville Franks7-Sep-03 11:01
Neville Franks7-Sep-03 11:01 
QuestionHow to handle events in List Control if I don't have a variable? Pin
ben26-Sep-03 22:27
ben26-Sep-03 22:27 

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.