Click here to Skip to main content
15,917,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to change the access properties of a drive Pin
Richard Andrew x6415-Jul-09 6:07
professionalRichard Andrew x6415-Jul-09 6:07 
GeneralRe: How to change the access properties of a drive Pin
David Crow15-Jul-09 6:14
David Crow15-Jul-09 6:14 
QuestionNot able to get curosr position in the child window ,after hooking to it. Pin
gadag15-Jul-09 2:58
gadag15-Jul-09 2:58 
AnswerRe: Not able to get curosr position in the child window ,after hooking to it. Pin
«_Superman_»15-Jul-09 5:54
professional«_Superman_»15-Jul-09 5:54 
QuestionHow to create static library in C++ .net 2008 and call it from VC6 Pin
stefanidou15-Jul-09 2:12
stefanidou15-Jul-09 2:12 
AnswerRe: How to create static library in C++ .net 2008 and call it from VC6 Pin
Chris Losinger15-Jul-09 4:02
professionalChris Losinger15-Jul-09 4:02 
Questiontoolbar problem Pin
Rakesh515-Jul-09 2:06
Rakesh515-Jul-09 2:06 
AnswerRe: toolbar problem Pin
Cedric Moonen15-Jul-09 2:13
Cedric Moonen15-Jul-09 2:13 
GeneralRe: toolbar problem Pin
David Crow15-Jul-09 2:59
David Crow15-Jul-09 2:59 
GeneralRe: toolbar problem Pin
Rakesh515-Jul-09 3:19
Rakesh515-Jul-09 3:19 
GeneralRe: toolbar problem Pin
David Crow15-Jul-09 3:23
David Crow15-Jul-09 3:23 
QuestionConverto long to char [] Pin
shpid3r15-Jul-09 2:01
shpid3r15-Jul-09 2:01 
AnswerRe: Converto long to char [] Pin
Chris Losinger15-Jul-09 2:03
professionalChris Losinger15-Jul-09 2:03 
AnswerRe: Converto long to char [] Pin
«_Superman_»15-Jul-09 2:10
professional«_Superman_»15-Jul-09 2:10 
AnswerRe: Converto long to char [] Pin
Cedric Moonen15-Jul-09 2:11
Cedric Moonen15-Jul-09 2:11 
GeneralRe: Converto long to char [] Pin
shpid3r15-Jul-09 2:20
shpid3r15-Jul-09 2:20 
GeneralRe: Converto long to char [] Pin
Stuart Dootson15-Jul-09 4:16
professionalStuart Dootson15-Jul-09 4:16 
QuestionToolbar problem Pin
Rakesh515-Jul-09 1:34
Rakesh515-Jul-09 1:34 
QuestionCOM Object Released But DLL Still In Memory Pin
Crazy Joe Devola15-Jul-09 0:41
Crazy Joe Devola15-Jul-09 0:41 
AnswerRe: COM Object Released But DLL Still In Memory Pin
Stuart Dootson15-Jul-09 0:49
professionalStuart Dootson15-Jul-09 0:49 
GeneralRe: COM Object Released But DLL Still In Memory Pin
Crazy Joe Devola15-Jul-09 0:55
Crazy Joe Devola15-Jul-09 0:55 
Questionadding an item into control panel context menu Pin
emmmatty114-Jul-09 22:56
emmmatty114-Jul-09 22:56 
AnswerRe: adding an item into control panel context menu Pin
«_Superman_»15-Jul-09 2:04
professional«_Superman_»15-Jul-09 2:04 
Questionunicode equivalent of Readfile() function.. Pin
Rakesh514-Jul-09 22:42
Rakesh514-Jul-09 22:42 
Hi,

I am making my application unicode supporting one. i face a problem like this now :

i have got some content in *.inf file..

i am unable to read the content of the file using Readfile(..) function.

code snippet:
-----start-------------
TCHAR * inifilecontents;
HANDLE hFile = CreateFile( iniFilePath,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);

if (hFile != INVALID_HANDLE_VALUE)
{
DWORD nfile_Size = GetFileSize(hFile, NULL);
if (nfile_size != INVALID_FILE_SIZE)
{
m_nBufferSize = nFileSize + 1;
iniFileContents = new TCHAR[m_nBufferSize];
ZeroMemory(m_pIniFileContents, m_nBufferSize);
DWORD bytestoread = nFileSize;
DWORD bytesread = 0;
-----> BOOL bReadSucceeded = ReadFile(hFile,inifileContents,bytestoread,bytesread,NULL);

----------End---------------------
after executing readfile funcion, inifilecontents are showing contents as "some small BOXES" and not the exact content of inf file....
please guide me on this...

Thanks,
Rakesh
AnswerRe: unicode equivalent of Readfile() function.. Pin
Naveen14-Jul-09 22:55
Naveen14-Jul-09 22:55 

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.