|
anybody know how to clear this error??
|
|
|
|
|
Off MSDN:This Site[^]
Visual C++ Concepts: Building a C/C++ Program
Fatal Error C1076
compiler limit : internal heap limit reached; use /Zm to specify a higher limit
Probable cause
Too many symbols
Possible solutions
Use the /Zm option to set the compiler memory limit.
Eliminate unnecessary include files.
Eliminate unnecessary global variables, for example, by allocating memory dynamically instead of declaring a large array.
Eliminate unused declarations.
Split large functions into smaller functions.
Split large classes into smaller classes.
Split the current file into smaller files.
If C1076 occurs immediately after the build starts, the value specified for /Zm is probably too high for your program. Reduce the /Zm value.
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi friends,
i want to delete the data of file, by using the file operations
Ex:(like through file operations we can create file, we can write in file, Append the File,But How to Delete the Content of File)
varun
|
|
|
|
|
|
Open the file and call ZeroMemory()
Or open the file using CreateFile passing the CREATE_ALWAYS flag.
Waldermort
|
|
|
|
|
WalderMort wrote: call ZeroMemory()
Did you really mean that? ZeroMemory is related to memory content, right?
- NS -
|
|
|
|
|
varun01 wrote: How to Delete the Content of File)
Use CreateFile() with CREATE_NEW or CREATE_ALWAYS . There's also DeleteFile() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
...or CreateFile() with the TRUNCATE_EXISTING flag if you want to keep the file but
empty its contents.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hai.dear.
i opened win32 application...and i had 3 cpp files which reqd windows.h ...so i added windows.h in win32 files...
now i have one cpp file which is mfc support file..mfc support means using Cstring datatype..and AFxBeginthread and some other also...
so..now i have added that mfc support cpp file to my project...
which is having header files #include afx.h #include afxwin.h and etc..related to mfc..
now i builded my program...it is throwing this error...
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include
what to do for this error..how to solve this..
|
|
|
|
|
Remove the windows.h and use the afxwin.h
- NS -
|
|
|
|
|
hai..
already i tried this.., still it is throwing error. becos i am using MSMQ in my project. it requires mq.h header file. this requires the windows.h header file.
|
|
|
|
|
But afxwin.h includes the windows.h
- NS -
|
|
|
|
|
D.Mani wrote: it requires mq.h header file.
So include that in the project's stdafx.h file, below the Afx-related includes.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
use #pragma once or ifndef / ifdef precompiler instructions to avoid repetitions
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Nelek wrote: use #pragma once or ifndef / ifdef precompiler instructions to avoid repetitions
mfc doesn't allow you to include Windows.h with it! so ifndef/ifdef will be of no use!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Ahhhmmm
the assistant include these by default.
#include < afxwin.h >
#include < afxext.h >
#include < afxdisp.h >
#include < afxdtctl.h >
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include < afxcmn.h >
#endif // _AFX_NO_AFXCMN_SUPPORT
and with this it is supposed to have the most of the "standard" MFC functionality, isn't it?
Maybe adding one of them....
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
yeap you are right
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
how do i implement this as well...please help me with some example as well with a few reference as well.Thank you
|
|
|
|
|
How do i implement this...please do help me ...an example would be really thankful with links as well.
|
|
|
|
|
Would you rather us just come over to your place and code it up? I think that would be the most beneficial for all parties involved.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Feeling a bit snarky today, eh?
Not that I have *ever* left a sarcastic reply to a silly question. Noooo, not me.
Iain.
|
|
|
|
|
Admittingly, yes. But I still refrain from being rude.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
I am tying to resize a window in the WM_SIZE message handler but I am not able to resize it properly.
What is cx,cy ?
It says it is new width and height of the client window but how do I use it to modify the window?
What are the co-ordinates I should start with?
Regards
Prithaa
|
|
|
|
|
If you are looking for restrict sizing dynamically, WM_SIZE is not the place. You have to use WM_WINDOWPOSCHANGING instead. Or if you need to just size the window, you can call SetWindowPos, or MoveWindow.
- NS -
|
|
|
|
|
hai...
cx and cy are new width and height only...but at that time of dragging ur window..u will get the new position rite?
which means ...when ever u r dragging or resizing ur window at that time u need to catch the x and y values at that point which u dragged....then pass that values to cx and cy.....this is the new width and height of ur window..
|
|
|
|