Similar Threads
1. CFile::Open gives sharing violation with CFile::modeRead flag
Rui Oliveira schrieb:
> CFile::Open gives sharing violation with CFile::modeRead flag
Add the CFile::shareDenyNone flag. The open functions use the "compatibility
mode" for sharing by default, and that means the file can not be shared with any
other process.
Norbert
2. Problem with CFile::GetStatus?
3. CFile::GetStatus problem with .net mfc 7.1
I'm running MFC 7.1.
When I do CFile::GetStatus for a file on a mapped disk on the network
(h:\test.txt), if the file does not exists the function creates a
directory with that name!
This problem happens only for some users, not for all.
Environment is .Net Framework 1.1 on Windows 2000 Terminal Server with
all service packs.
Suggestion, anyone?
B.r.
Johan
4. CFile::GetStatus problem
5. CFile::Read problem ???
Hi,
On WinXP, the CStdioFile::ReadString(CString& rString) is supported.
On WinCE it's not, so I attempted to write my own.
I subclassed CTextFile from CFile :
BOOL CTextFile::ReadString(CString& rString)
{
ASSERT_VALID(this);
TCHAR ch;
while( Read(&ch,1)>0 && ch!='\n' )
rString += ch;
return ( !rString.IsEmpty() );
}
However, rString always contains garbage. How come? I can't even read 1
byte? (Yes, file opens successfully).
CFile::textFile is not supported under CE, so it's binary, but that should
be no problem.
Can someone tell me why the above doesn't work?
Lisa
6. Is it any point having shared assemblies without having them in the GAC - CSharp/C#
7. Having problem in Process.Getprocesses()
Hi
I've a simple web application where I need to list all the processes
running in the local system.
First, my code was generating error:
System.ComponentModel.Win32Exception: Access is denied.
According to some suggestions found in the Internet, I've given
permission of the registry key "HKLM/Software/Microsoft/Windows
NT/Current/Version/Perflib" to "everyone". And the error went away.
But, however, for a while only. As now the code is generating error:
Couldn't get process information from remote machine.
I have tried the code in a simple Console Application as well. There
also I'm facing the similar error.
This is driving me crazy. What permission is needed for running this
functions? The current windows user is an administrator and I'm using
Windows Authentication(i.e. Anonymous login disabled in IIS).
Obviously, this hardly matters in case of Console Application where
also I'm experiencing the same problem.
Can anybody help me out please?
Thanks.
8. Problem in using c# dll having resources(forms) in VC++