|
Did you see MSDN?
From the MSDN:
/Zmnumber
where:
number
A scaling factor that determines the compiler's memory allocation limit for the precompiled header.
...
...
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
Click the C/C++ folder.
Click the Command Line property page.
Type the compiler option in the Additional Options box.
|
|
|
|
|
Thanks for reply ,but it is not helped me.
I didn't found propety pages MSDEV,
I opened Settings then i clicked C/C++ tab, i didn't find Command line there .
and also i didn't find Additional Options box.
can u explain step by step?
|
|
|
|
|
When you right click on your project in (Solution explorer window)
you have a option Properties in the left of window you have a treecrl
in this control you have a folder C/C++ and in this folder last option is command Line
Right click on project->select Propertie->select C/C++->click on Command Line
did your problem solve?
|
|
|
|
|
Ya i got solved but i got another problem now, i,e
error C1014: too many include files depth = 1024,
how it can be solved
|
|
|
|
|
|
|
Glad it worked out finally
|
|
|
|
|
|
|
Thanx for the reply, but just one question if I may. Would CreateProcess() also work? (Just to startup any application / process)
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
From the MSDN
CreateProcess
This function is used to run a new program. It creates a new process and its primary thread. The new process executes the specified executable file.
|
|
|
|
|
Thank You.....
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Programm3r wrote: Would CreateProcess() also work? (Just to startup any application / process)
Yes.
|
|
|
|
|
Thank You.....
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Can you be more specific if your purpose is run a process you can use CreateProcess
|
|
|
|
|
First of all, thanx for the reply.
Yes, the purpose of the question was to: start up any application / process.
But as one of the people who replied said use ShellExecute() , should work. Didn't think of that.
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have a dialog based application ...annd on button click i want to open a SDI application.
thanks
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
So from a dialog base application you want to start a SDI application right?
ShellExecute[^]is your friend
BTW, it doesn’t matter what type of application you’re starting.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I wrote a VC6 program, and wanted to save user input password into the program body.
2 methods I tried, but all failed:
1. open exe file->find string->change string->close exe file
When an exe is running, its exe file can't be opened. So this method failed.
2.Get resource->change data->Update resource
The exe file did not changed at all, but a .tmp file is created and its resource is changed.
HRSRC hRes = FindResource( NULL, MAKEINTRESOURCE(IDR_PASSWORD), "MYDATA" );
HGLOBAL gl = LoadResource( NULL, hRes );
char *lpResLock = (char *)LockResource( gl );
lpResLock[0] = 'a';
char sModule[MAX_PATH];
GetModuleFileName(NULL, sModule, MAX_PATH);
HANDLE hUpdateRes = BeginUpdateResource(sModule, FALSE);
UpdateResource(hUpdateRes,
MAKEINTRESOURCE(IDR_PASSWORD),
"MYDATA",
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL),
lpResLock,
SizeofResource(NULL, hRes));
EndUpdateResource(hUpdateRes, FALSE);
How can I meet my requirement?
|
|
|
|
|
See an article of Mr David Crow about resource I think its helpful for you
|
|
|
|
|
w14243 wrote: I wrote a VC6 program, and wanted to save user input password into the program body.
Why? That's no more secure than storing it in a flat text file. Why not encrypt it and store that in a separate file, far more secure.
A simple set of classes to encrypt data [^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Dear All.,
I am new to VC++. I dont know the difference between value variable and control variable.
Can Anybody answer the difference between these two ?
Thanks in advance...
|
|
|
|
|
Control variable: A CWnd-derived class (such as CEdit) is attached to the control so you can use the variable to do things like send messages to the control.
Value variable: A variable of the type you choose (such as CString ) is hooked up so it reflects the contents of the control. You can read or write this value from/to the control by passing the appropriate value to UpdateData()
|
|
|
|