Click here to Skip to main content
15,916,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do I read a particular registry key Pin
Ravi Bhavnani12-Jul-05 3:01
professionalRavi Bhavnani12-Jul-05 3:01 
QuestionHow to place image in Excel? Pin
Member 95748212-Jul-05 2:12
Member 95748212-Jul-05 2:12 
GeneralINI file processing from memory Pin
_rubinho_12-Jul-05 1:46
_rubinho_12-Jul-05 1:46 
GeneralRe: INI file processing from memory Pin
Indivara12-Jul-05 2:27
professionalIndivara12-Jul-05 2:27 
GeneralRe: INI file processing from memory Pin
_rubinho_12-Jul-05 3:23
_rubinho_12-Jul-05 3:23 
GeneralRe: INI file processing from memory Pin
David Crow12-Jul-05 5:21
David Crow12-Jul-05 5:21 
GeneralRe: INI file processing from memory Pin
_rubinho_12-Jul-05 5:39
_rubinho_12-Jul-05 5:39 
GeneralRe: INI file processing from memory Pin
krmed12-Jul-05 6:03
krmed12-Jul-05 6:03 
I haven't tried this, but perhaps you can create a CMemFile[^] (which is derived from CFile).

Next, use the CFile::SetFilePath[^] to give it a name (MSDN says it won't actually create a file, but it gives a path name).

Then you may be able to use that path name in your GetPrivateProfileString call.

CMemFile myfile (with appropriate parameters);<br />
myfile.SetFilePath("C:\\mydir\\myfile.ini");<br />
GetPrivateProfileString(........, myfile.GetFilePath);


Hope that helps.


Karl - WK5M
PP-ASEL-IA (N43CS)
<kmedcalf@ev1.net>
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
GeneralRe: INI file processing from memory Pin
_rubinho_12-Jul-05 6:26
_rubinho_12-Jul-05 6:26 
GeneralRe: INI file processing from memory Pin
Jose Lamas Rios12-Jul-05 7:46
Jose Lamas Rios12-Jul-05 7:46 
GeneralRe: INI file processing from memory Pin
Joe Woodbury13-Jul-05 8:24
professionalJoe Woodbury13-Jul-05 8:24 
GeneralPainting Several Images - not refreshing screen Pin
seq-12-Jul-05 1:41
seq-12-Jul-05 1:41 
GeneralRe: Painting Several Images - not refreshing screen Pin
Jose Lamas Rios12-Jul-05 2:26
Jose Lamas Rios12-Jul-05 2:26 
GeneralRe: Painting Several Images - not refreshing screen Pin
seq-12-Jul-05 10:36
seq-12-Jul-05 10:36 
GeneralRe: Painting Several Images - not refreshing screen Pin
Blake Miller12-Jul-05 5:01
Blake Miller12-Jul-05 5:01 
GeneralShowing properties of MULTIPLE files Pin
tabor2512-Jul-05 1:12
tabor2512-Jul-05 1:12 
GeneralRe: Showing properties of MULTIPLE files Pin
David Crow12-Jul-05 3:05
David Crow12-Jul-05 3:05 
GeneralRe: Showing properties of MULTIPLE files Pin
tabor2512-Jul-05 10:03
tabor2512-Jul-05 10:03 
GeneralRe: Showing properties of MULTIPLE files Pin
David Crow14-Jul-05 4:06
David Crow14-Jul-05 4:06 
GeneraliSubItem always = 0 on many ListCtrl Events Pin
Maverick12-Jul-05 0:41
Maverick12-Jul-05 0:41 
GeneralRe: iSubItem always = 0 on many ListCtrl Events Pin
Andrew Kirillov12-Jul-05 1:32
Andrew Kirillov12-Jul-05 1:32 
Generalabout console window positioning Pin
prat7812-Jul-05 0:39
prat7812-Jul-05 0:39 
QuestionHow to capture the image from mediaplayer? Pin
rushing11-Jul-05 23:20
rushing11-Jul-05 23:20 
GeneralWriting Version Info Pin
Mepho11-Jul-05 23:02
Mepho11-Jul-05 23:02 
GeneralRe: Writing Version Info Pin
munawar196812-Jul-05 0:32
munawar196812-Jul-05 0:32 

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.