Click here to Skip to main content
16,005,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalnmake problem Pin
28-Jan-02 11:48
suss28-Jan-02 11:48 
GeneralRe: nmake problem Pin
Derek Waters28-Jan-02 13:17
Derek Waters28-Jan-02 13:17 
GeneralActiveX as a parent of modeless dialog Pin
Ruslan28-Jan-02 11:19
Ruslan28-Jan-02 11:19 
GeneralCFile accessDenied Pin
HomeNuke28-Jan-02 11:12
HomeNuke28-Jan-02 11:12 
GeneralRe: CFile accessDenied Pin
Philip Patrick28-Jan-02 11:19
professionalPhilip Patrick28-Jan-02 11:19 
GeneralRe: CFile accessDenied Pin
HomeNuke28-Jan-02 11:28
HomeNuke28-Jan-02 11:28 
GeneralRe: CFile accessDenied Pin
Philip Patrick28-Jan-02 11:45
professionalPhilip Patrick28-Jan-02 11:45 
GeneralRe: CFile accessDenied Pin
HomeNuke28-Jan-02 12:10
HomeNuke28-Jan-02 12:10 
OK this is weird...hard to explain but here is the new source code I used to get it to work, and thanks for your help, because I have tried your suggestions and you have responded really quickly. Also just to clarify things I just used wwwroot as a directory for web objects since this is a directory IIS and Apache use, I don't have either of them installed, I just created that directory.

But, enough of the rambling Smile | :) Here is the new source code:
if (!SendFile.Open"c:\\wwwroot\\index.html",CFile::modeRead|CFile::shareDenyNone))
	return -1;

	DataLeft=SendFile.GetLength();
	SendFile.Read(SendData, (UINT)DataLeft);
	Start=0;


I change CFile::readOnly to CFile::modeRead...I'm looking up the docs now to figure out why this one works?!?! Maybe CF::readOnly is for an inherited class? But at least we where able to solve this.

Thanks for your help PHILIP!!!




HomeNuke
----
"Nuke'd Your Home, Yet?"
Run your own PostNuke based web server from home
http://www.homenuke.com
GeneralRe: CFile accessDenied Pin
Philip Patrick28-Jan-02 12:24
professionalPhilip Patrick28-Jan-02 12:24 
Generaladding bitmaps to dialogbar buttons Pin
murd28-Jan-02 11:03
murd28-Jan-02 11:03 
GeneralRe: adding bitmaps to dialogbar buttons Pin
Fredrik Skog28-Jan-02 20:04
Fredrik Skog28-Jan-02 20:04 
GeneralNon-overlapping child windows in a non-SDI/MDI application.. Pin
28-Jan-02 10:38
suss28-Jan-02 10:38 
GeneralHandling image load in IE... Pin
Philip Patrick28-Jan-02 10:03
professionalPhilip Patrick28-Jan-02 10:03 
General3D graphics prog. in visual C++ with openGL Pin
Rajveer28-Jan-02 7:59
Rajveer28-Jan-02 7:59 
GeneralMaking an appwizard Pin
Nnamdi Onyeyiri28-Jan-02 7:23
Nnamdi Onyeyiri28-Jan-02 7:23 
GeneralRe: Making an appwizard Pin
Ernest Laurentin28-Jan-02 8:16
Ernest Laurentin28-Jan-02 8:16 
GeneralShell extension - problem when moving from 2000 to XP Pin
28-Jan-02 6:52
suss28-Jan-02 6:52 
QuestionEnhance bitonal image to grayscale? Pin
Thomas Ehardt28-Jan-02 6:31
Thomas Ehardt28-Jan-02 6:31 
AnswerRe: Enhance bitonal image to grayscale? Pin
PJ Arends28-Jan-02 9:56
professionalPJ Arends28-Jan-02 9:56 
GeneralSave a CBitmap to a bmp file Pin
Guillaume F.28-Jan-02 6:17
Guillaume F.28-Jan-02 6:17 
GeneralRe: Save a CBitmap to a bmp file Pin
Joaquín M López Muñoz28-Jan-02 6:27
Joaquín M López Muñoz28-Jan-02 6:27 
Generaldeveloping web applications using c++ Pin
28-Jan-02 6:17
suss28-Jan-02 6:17 
GeneralRe: developing web applications using c++ Pin
Guillaume F.28-Jan-02 6:21
Guillaume F.28-Jan-02 6:21 
GeneralRe: developing web applications using c++ Pin
Joaquín M López Muñoz28-Jan-02 6:56
Joaquín M López Muñoz28-Jan-02 6:56 
GeneralRe: developing web applications using c++ Pin
Nemanja Trifunovic28-Jan-02 7:01
Nemanja Trifunovic28-Jan-02 7:01 

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.