|
well, do you understand what "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run " is ?
do you know regedit ?
can't you just write such an entry for you application in this registry key ?
|
|
|
|
|
i know what is regedit..
Well i am useing Dialog Application.Can you tell me how can i use it?
Plz help for lerner..
singh
|
|
|
|
|
polopo wrote: Can you tell me how can i use it?
Use what?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
- Launch regedit tool.
- Open the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
key.
- Issue the add string value command adding the path of your application.
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
[My articles]
|
|
|
|
|
Goto Start>Programs>Startup
right click on Startup and select "Explore". Startup folder will open. Copy your application to Startup folder.
Done.
|
|
|
|
|
If you want to do it programatically you can use RegSetValue[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi i am new to vc++.
I am embedding a help doc (chm ) in my application and opening it using the ShellExecute() function but how can i close the help doc if the application closes.Can anybody suggest me the right approach for doing this???
Thanks in advance...
|
|
|
|
|
Instead of ShellExecute use CreateProcess to open the document. you will get a handle to the process which you can use later to close the .chm
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
ShellExecuteEx() handle it well too
|
|
|
|
|
Use HtmlHelp API instead of ShellExecute and CreateProcess..
It think it will take care of closing the help with application.
Read documentation for HtmlHelp details..
Regards,
Sandip.
|
|
|
|
|
See this thread[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hello all
i am wondering how to make a spy on a web page, and keep tracking og user events, my traget is doing an event log for any user input on this webpage
Best Regards,
Ahmed sabry
|
|
|
|
|
google for BHO... short form for Browser helper object!
"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/xml>
|
|
|
|
|
A-M-S-S wrote: my traget is doing an event log for any user input on this webpage
Please, can you explain what kind of an application are you developing? Somehow, it seems like a malicious application to me. We don't provide help to write malicious code. Or, can you explain?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
sure it is not a malicious software, let me explain, we are developing web application that being used inside our company network, and we need to make an application that keep tracking of the user event on the page controls, this will help us when there is an error or exception, we want our application to send us the scenario that makes the errors or exceptions, in order to analyze it and make a knowledge base for our support to our users
|
|
|
|
|
It is working file in the debug build, but in the release build the applicaton crashed even before window is displayed with the message
The instruction at "0x5f43351b" referenced memory at "0x00000000". The memory could not be "read"..
When I debug in the relesae build I found the crash @ the belwo statement . Please help me..
38:
39: if (!pThread->InitInstance())
5F433518 mov ecx,dword ptr [pThread]
5F43351B mov edx,dword ptr [ecx] 5F43351D mov </b>
ecx,dword ptr [pThread]
5F433520 call dword ptr [edx+58h]
5F433523 test eax,eax
5F433525 jne AfxWinMain+0C3h (5f433563)
40: {
41: if (pThread->m_pMainWnd != NULL)
5F433527 mov eax,dword ptr [pThread]
5F43352A cmp dword ptr [eax+20h],0
5F43352E je AfxWinMain+0B3h (5f433553)
42: {
43: TRACE0("Warning: Destroying non-NULL m_pMainWnd\n");
5F433530 push offset string "Warning: Destroying non-NULL m_p"... (5f4af280)
|
|
|
|
|
|
Hi all,
i m using a EditBox with Number property.
i want to enter only numbers here.Its working fine.
But when i paste any String by using menu . it accecpt.
so please tell me how can i block all other than nuber value.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: But when i paste any String by using menu . it accecpt.
so please tell me how can i block all other than nuber value.
handle WM_PASTE message..
Read this thread for details..
Disable context menu.
Regards,
Sandip.
|
|
|
|
|
There is any other option,becoz i can disable the paste menu of edit box.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: becoz i can disable the paste menu of edit box.
Then what is the problem?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I mean i cant disable the menu.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Even if you disable context menu i think users would still be able to paste using Keyboard.
If you don't wish to provide implementation for WM_PASTE you can just block paste bye providing the blank implementation as i did in the example of that thread. This way users would not be able to paste anything..
Other than this i don't know any other possible way..
I hope it helps..
Regards,
Sandip.
|
|
|
|
|
I am working on MFC and my application has chat option. I have a CEdit Control for sending messages.
My control is not able to take Japanese characters as input. What could be the possible reason.
I am using UTF8 encodinh scheme.
Is there any properties which i need to set.
Please help me.
Thanks in advance
|
|
|
|
|
You might want to start by using UCS-2 (UTF-16 without surrogates. Microsoft likes to call this "UNICODE") within your app for character encodings. This would be the recommended way to pass it around in memory (i.e. CStringW, BSTR, etc...) then you could choose to encode it using UTF-8 when turning it into XML.
Basically, in your "Project", "[YourApp]Properties", set "Character Encoding" to "Use Unicode Character Set".
|
|
|
|