|
|
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()
|
|
|
|
|
|
|
Is that link supposed to be helpful? Did you read M. Dunn's response?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
i want some idea about c++ & help me
mohansiva
|
|
|
|
|