|
Actually the compiler is happy about it (I suspect it enjoys such mistakes...).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Stephen Hewitt wrote: Calling a dog a cat doesn't make it one!
Too funny!
"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
|
|
|
|
|
Saadhinchaali wrote: How can i copy a string (LPSTR) to a wide string variable (LPWSTR).
They are quite different beasts, do you need to convert.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I suggest you try to understand the concepts that are behind by reading this series of articles[^]. At least, you will understand why you can't cast the pointers directly.
|
|
|
|
|
Hi,
U cannot directly cast a LPSTR to Widechar LPWSTR and if u do that u will lose data. use API MultiByteToWideChar to do it.
thanks
Nitheesh
|
|
|
|
|
Actually you don't loose any data. Anyway your conclusion is correct: there must be a conversion to get a corrensponding string as result.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I am to create a DLL utility which will read properties file i.e. similar like the log4j.properties.
Kindly please let me know how should I go about it.
Thanks.
modified on Thursday, April 24, 2008 3:06 AM
|
|
|
|
|
Please Help me out with my previous request.
|
|
|
|
|
Hi,
I have been running stackwalker under the Visual Studio Debugger and Even though I can see from the Threads => Call Stack display that I am Few levels deep (in the Stack)
After Just one Call to StackWalk the return Value is zero or I get a ERROR_INVALID_ADDRESS from GetLastError
indicating I am at the end of the Stack
Were as the visual studio debugger shows there stll many routines for that Thread
Do I have modify any of the parms to StackWalk before each call e.g. (esb or ebp register in the context parm)
to continue to the next Frame
P.S. I use SymGetSymFromAddr to get the sym->Name of the function after the Stack walker call
|
|
|
|
|
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...
|
|
|
|