C++ Builder IDE >> Opening a .cpp file

by Dirk Vandenberg » Tue, 07 Oct 2003 21:34:03 GMT


All,
I have a .cpp file, that is associated with a form. When I select File->Open and try to open my file.cpp file, the GUI form pops up, but not the code. I would like to see the .cpp and .h files, NOT the form. How do i do this?
thx,
Dirk


C++ Builder IDE >> Opening a .cpp file

by Hans Galema » Tue, 07 Oct 2003 23:01:14 GMT






Please wrap your lines manually.

In bcb3 the *.cpp file is shown.

Use F12 to switch between form and source.

Hans.




C++ Builder IDE >> Opening a .cpp file

by Don Locke » Wed, 08 Oct 2003 21:29:17 GMT

I open the .h file first from File/Open. Then you can switch between
the .h & .cpp files. HTH.
Don




Similar Threads

1. BCB 2007 : File Borland.Cpp.Targets cannot be open - Borland C++ Builder VCL Components

2. creating default project when opening .cpp files

When I open (double click) on some .c and .cpp files, as
cppbuilder is starting up, it asks if I want it to create a
project so that I can compile the file.

This only happens with some files. Other times, it opens without
asking, and I cannot compile the file that I am working on.

How do I reset these files so that it asks me again, or better
yet, how do I get it to automatically start a blank project when
I open a C or C++ file.

(I have cppbuilder 6.)

Thanks,
Dan

3. .cpp and header-files not opening with project - C++ Builder IDE

4. Open previously opened serialized file != new open serialize file

Doing some testing of my reworked serialize code this morning (thanks for the 
help Sigurd and Headache - it fixed the pointer problems) and ran into 
something I don't understand.

If I open a previously unopened (in the session) serialized file everything 
works fine. But if I close the file and reopen it, some of the pointers are 
undefined and the session crashes. Looking in the debugger, it does go 
through the ::Serialize code the second time, but clearly isn't actually 
reading it from disk since the pointer values have changed (from reasonable 
to cdcdcdcd). I assume the session is storing some pointers to speed the 
reopen process, but clearly not everything. How do I force it to reread the 
data from disk rather than it's local cache or where ever it is getting it 
from? I sort of expected a Close equivalent of 
CWinApp::OpenDocumentFile(path) or a flush buffer command or a open flag that 
says "reread from disk, don't use your local data". but I don't find any of 
them.

Thanks

5. when i compile the cpp file(cmdargs.cpp) int main(int argc, wchar_t* argv[])

6. when i compile the cpp file(cmdargs.cpp) int main(int argc, wchar_t* argv[])

Hai Rolf Magnus

the real problem is when i try ti access it give Bus Error (Core Dump)
i don't no why? when i try to access the varible argv[1] or
argv[argc-1] anything it gives the Bus Error
Thanks

7. Opening a File using "File.Open" - CSharp/C#

8. CFile::Open doesnt open already opened MSWord File

Hi,

I am facing a problem.
I am trying to open a MS Word file using CFile::Open method. It works
fine when file is not opened. But when that MSWord file is already
opened, the CFile::Open function doesnt not open the file and return
zero.

Is it anything to do with the File Open mode i am specifying?

here is the code i am trying to execute--

        CFile f1;
	CFileException fe;
	int nFileException = 0;
	CString sFileName = "C:\\TestFile.doc";
	BOOL b1 = f1.Open(sFileName,CFile::shareDenyNone,&fe);
	if(b1)
	{
		f1.Close();
		nFileException = 0;
	}
	else
		nFileException = fe.m_cause;

Please help. I am stuck at this point.

Thanks!
Gurvinder