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

C / C++ / MFC

 
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 
QuestionRe: unicode equivalent of Readfile() function.. Pin
Rajesh R Subramanian14-Jul-09 22:57
professionalRajesh R Subramanian14-Jul-09 22:57 
AnswerRe: unicode equivalent of Readfile() function.. Pin
Rakesh514-Jul-09 23:36
Rakesh514-Jul-09 23:36 
QuestionRe: unicode equivalent of Readfile() function.. [modified] Pin
Rajesh R Subramanian14-Jul-09 23:52
professionalRajesh R Subramanian14-Jul-09 23:52 
AnswerRe: unicode equivalent of Readfile() function.. Pin
CPallini14-Jul-09 23:09
mveCPallini14-Jul-09 23:09 
AnswerRe: unicode equivalent of Readfile() function.. Pin
Nishad S15-Jul-09 0:38
Nishad S15-Jul-09 0:38 
Questionwhat is IWshRuntimeLibrary? Pin
V K 214-Jul-09 22:03
V K 214-Jul-09 22:03 
AnswerRe: what is IWshRuntimeLibrary? Pin
CPallini14-Jul-09 22:13
mveCPallini14-Jul-09 22:13 
Questiontoolbar controls Pin
Member 59031014-Jul-09 21:29
Member 59031014-Jul-09 21:29 
AnswerRe: toolbar controls Pin
_AnsHUMAN_ 14-Jul-09 21:38
_AnsHUMAN_ 14-Jul-09 21:38 
AnswerRe: toolbar controls Pin
Stuart Dootson14-Jul-09 21:45
professionalStuart Dootson14-Jul-09 21:45 
GeneralRe: toolbar controls Pin
Member 59031014-Jul-09 23:58
Member 59031014-Jul-09 23:58 
QuestionHow to read command line arguments in vc++ Pin
KASR114-Jul-09 21:11
KASR114-Jul-09 21:11 
AnswerRe: How to read command line arguments in vc++ Pin
_AnsHUMAN_ 14-Jul-09 21:31
_AnsHUMAN_ 14-Jul-09 21:31 
AnswerRe: How to read command line arguments in vc++ Pin
Rajesh R Subramanian14-Jul-09 21:32
professionalRajesh R Subramanian14-Jul-09 21:32 
AnswerRe: How to read command line arguments in vc++ Pin
CPallini14-Jul-09 21:39
mveCPallini14-Jul-09 21:39 
GeneralRe: How to read command line arguments in vc++ Pin
KASR114-Jul-09 22:24
KASR114-Jul-09 22:24 

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.