I'm using Visual Studio 2005 Professional Edition.
I created a project on .NET Framework (Windows Embedded CE 6.0).
When i run my project in DEBUG mode on my emulator, i get an error read as :
Application MyProject.exe encountered a serious error and
Please advise how to resolve this.
I have no such problem when I run my application in RELEASE mode.
No - it can cause problems. If the header file is included in more than one source file (i.e. a body file) then the linker will complain about szTempFile being multiply defined (actual error will depend on your actual compiler). Effectively each body file gets its own variable with global scope called szTempFile. When the linker comes along it sees multiple versions of the variable and causes the error
The rule is that a variable name can be declared more than once but only defined once. The above line is a definition. Definitions should always live in the body files. If you want to share the variable between multiple body files then you need to include a declaration of the variable in the header file. You do this by putting the keyword extern in front of the declaration as follows
I hava a problem to read specific string from file.I am useing CStdioFile class.Code is here
if (file.Open(_T("\\App.txt"), CFile::modeRead | CFile::modeNoTruncate))
In my line is like this
Mr. As 10 Developer
Mr. PC 19 Analyst
Now i want to read Mr. As and Mr. Pc Name only.How can i read this.Plz help me
is there some way to check status of printer(selected from CPrintdialog selection) means either its Ready, offline or unable to connect with server ??
like GetDeviceName() gives name of printer but how to check its status.........