|
Sorry
to waste the time of all those who have been so helpfull to me
But I forgot to initilize the Stack Address did the Frame an PC forgot the third
|
|
|
|
|
Hi all,
I have two exe' one is in vc6 and one in vc2005.
I am running a vc6 exe through vc2005(using ShellExecute() api). Now what i want is that my vc6 exe should only run when it is called through vc2005 exe(i.e if i click on vc6 exe it should first check that vc2005 exe is calling it and if it is not calling it should not run...). I want to make a child-parent relationship between these two exe's.
How can i implement this??
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
what about a named synchronisation object. For instance VC2005 exe creates a named mutex and VC6 opens that named mutex and it continues to run only if it successfully opens the mutex.
|
|
|
|
|
and how can i pass a value from one exe to another exe, either it be a parent and child exe or simply two exe's
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
Create mutex and check to run vc6 exe. EnumProcesses can also help you to check running process.
Also if you are talking about inter process communication. you should use COM.
Mukesh Kumar
Software Engineer
|
|
|
|
|
Using File Mapping you can both :
[1] achieve child - parent relationship requirement.
Parent will write some data in file. When child will run it will open the file and read that confidential data. If the data is as expected then it can run.
[2] also you can share data between two exes using file mapping concept.
functions involved :
CreateFile()
CreateFileMapping()
MapViewOfFile()
|
|
|
|
|
ThatsMe. wrote: How can i implement this??
Just make use of a command-line argument that your VS6-based application checks for. It's quite easy.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi All,
I have an application that runs in User mode. One of the task this application does, requires administrator privileges. Is there a way I can temporarily give administrator privilege and then take it away?
Thank you,
AJ
|
|
|
|
|
|
how to invoke the dilaog from exe ?
This dialog is created in static library.
mallikarjun
|
|
|
|
|
Use AfxLoadLibrary and AfxSetResourceHandle APIs.
HINSTANCE m_hPrevRes;<br />
HINSTANCE m_hDllInstance;
m_hDllInstance = AfxLoadLibrary("Your Resource file path");<br />
<br />
AfxSetResourceHandle(m_hDllInstance);
Regards,
Paresh.
|
|
|
|
|
|
Have you tried some thing as of now. I think dialog can be created normally as the module instance is same.
|
|
|
|
|
Static libraries do not contain resources, you have to link resource files (.rc or .res) along with that library.
|
|
|
|
|
file contains
time and value, the length of the file is not limited...
i have already got the data from the file, and saved in a vector type struct.(VC++)
now, i dunno how to draw a bar chart by using the data inside the vector
help pls...
|
|
|
|
|
tnl1025 wrote: draw a bar chart
You would be having data in your data structure. You can plot one of them on the X-Axis and the other one on Y-Axis. In general time would be on the X-Axis and value would be on the Y-Axis. A value on Y-Axis would be corresponding to a value on X-Axis.
Here is an example for bar chart.[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You can also take a look at the link in my sig. In the last release, I added support for a bar series.
|
|
|
|
|
Did you search on the codeproject?
|
|
|
|
|
They are many differents ,what is the main differents?
|
|
|
|
|
EVC++ is meant for embedded development and VC++ is meant for desktop development.
-Saurabh
|
|
|
|
|
now VC8 (visual studio 2005) and further next version are also used to develop embedded program.
Mukesh Kumar
Software Engineer
|
|
|
|
|
Yes that is true but you have to realize that since MS has merged EVC with VC comparing them makes sense only for older versions. Last version of EVC was 4.0 and it was released in 2003 i.e. before VC 2005.
-Saurabh
|
|
|
|
|
I realized...
Mukesh Kumar
Software Engineer
|
|
|
|
|
And why is your post voted down?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|