|
The MSDN link gives an example of how to use it without MFC (that is, there is no MFC code in their example). You will have to use COM and some Win32 API calls, but that should have been expected.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Thanks for all the answers, guess I wasn't searching hard enough.
|
|
|
|
|
I'm trying to implement a copy ( to clipboard ) from a IWebBrowser2; this is what I'm doing, and it works on Win2K, but not on XP, especially SP2.
We generate HTML on the fly and "give" it to the browser, it's not based on a HTML file.
HRESULT hr;
hr = _Browser->ExecWB(OLECMDID_SELECTALL, OLECMDEXECOPT_DODEFAULT, NULL, NULL);
hr = _Browser->ExecWB( OLECMDID_COPY, OLECMDEXECOPT_DONTPROMPTUSER, NULL, NULL);
hr = _Browser->ExecWB( OLECMDID_CLEARSELECTION, OLECMDEXECOPT_DONTPROMPTUSER, NULL, NULL);
After Further reading ...
There is a new "Local Machine Zone Lockdown" setting that seems to restrict some operations, like the one above.
one suggestion from Microsoft that might be working for us ( I will try it ) is to add the "Mark of the Web" on the HTML, something like :
<!-- saved from url=(0014)about:internet -->
<!-- saved from url=(0020)http:
but I'm not sure this will work from HTML not from a "real" web page ...
Anyone with a clue ?
Thanks.
-- modified at 10:30 Wednesday 20th September, 2006
|
|
|
|
|
I found several things that "don't work" when you use the COM interface to write HTML to the control. In those instances I stopped using that technique and went to a temporary file solution.
led mike
|
|
|
|
|
That's one answer I did not want to hear.
still investigating.
Thanks.
|
|
|
|
|
Maximilien wrote: That's one answer I did not want to hear.
I understand, I felt the same way, but after I implemented it I felt much better about it.
Seriously, there are API's for working with temporary files so it is not that big a deal, really. I found performance negligible. I imagine the parsing of the HTML and loading of the DHTML DOM is a much bigger operation than file IO, and that must be performed either way.
led mike
|
|
|
|
|
Hello friends.
i WANT TO READ WINDOWS REGISTRRY.
I want to READ a value of key under HKEY_LOCAL_MACHINE a specific key.
PLZ GUIDE ME WITH CODE SNIPPET OR URL.
THANKS IN ADVANCE
Born To Code
|
|
|
|
|
Posting the same message twice...to multiple code-related bulletin boards (as you have done) without first at least Googling is pretty rude. Do try to avoid it in future, it only infuriates the very people you're asking for help.
|
|
|
|
|
See Reg* functions in MSDN
|
|
|
|
|
RegOpenKeyEx(....)
RegQueryValueEx(.....)
use above win32 functions for opening registry and queying reg values.
refer MSDN for complete documentation.
|
|
|
|
|
Hello friends.
i WANT TO READ WINDOWS REGISTRRY.
I want to READ a value of key under HKEY_LOCAL_MACHINE a specific key.
PLZ GUIDE ME WITH CODE SNIPPET OR URL.
THANKS IN ADVANCE
Born To Code
|
|
|
|
|
There are a bunch of articles about registry access on this site. Have you tried looking around?
--
Mit viel Oktan und frei von Blei, eine Kraftstoff wie Benziiiiiiin!
|
|
|
|
|
rahul.shendurnikar wrote: i WANT TO READ WINDOWS REGISTRY.
Search for CRegKey class. It is one of the easiest classes to use.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Start with the registry API:
RegOpenKeyEx()
RegQueryValue()
RegEnumKeyEx()
RegSetValueEx()
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
How can i select from second caracter of a Cstring a number of caracter
exemple Cstring rvalue="abcde"
i want to extract "cde"
like in VB MID(rvalue,3,3)
thanks
zzzzzz
|
|
|
|
|
CString str = _T("abcde");
CString s = str.Mid(2, 3);
s = str.Right(3);
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
you certainly not searched the web that much...
MSDN give you this : CString::Mid()[^]
CString s1 = "abcde";
CString s2 = s1.Mid(2, 3);
|
|
|
|
|
There seems to be an echo in the C++ forum today..
--
Mit viel Oktan und frei von Blei, eine Kraftstoff wie Benziiiiiiin!
|
|
|
|
|
i'm trying to delete the posts, but CP seem to have problems today...
at last, done ! roger
|
|
|
|
|
You get your answer with CString::Mid but maybe its helpful for you
<br />
extract right part from String<br />
CString str_T("abcdef");<br />
CString s;<br />
s=str.Right(3);
<br />
extract left part from String<br />
CString str_T("abcdef");<br />
CString s;<br />
s=str.Left(3);
<br />
And CString::Mid extract middle part from string
|
|
|
|
|
hi
Iam devolopping one project in that ,when i dial the numbers from command lines ,in this moment it is fine.When we give another number to dial from command prompt it didnt take that number,it exists in previous state only.please any body help in my project.
#sanroop#
|
|
|
|
|
Sanroop wrote: it didnt take that number,it exists in previous state only.
Can you post some source code?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
let me know whether you want to send message to an exe by code ?
if it is so use BroadcastSystemMessage(...)
Rinu Raj
|
|
|
|
|
thanque for u r reply ,we pass the string from command line
#sanroop#
|
|
|
|
|
Sanroop wrote: when i dial the numbers from command lines...
Your question is a bit too confusing to understand. What does "dial the numbers from command lines" mean? What exactly are you trying to do?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|