|
Is your application compiled in debug mode, and are you running it via F5 (as opposed to Ctrl+F5)? This won't solve the problem, but it may provide you with some helpful information.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I'm hosting webbrowser control and I need to find some text on the page. I know it should be there but text can be split into more html elements because of formatting.
I could find the text in the body->innerText, but how to find appropriate IHTMLElement interface of the first element containing my text?
Thank you!
rrrado
|
|
|
|
|
|
Thank you for tip. It seems there is used iteration on all elements. I was thinking of something more effective but I'm afraid this would be the only way
rrrado
|
|
|
|
|
Try using the IHTMLTxtRange::findText method to positon a text range object then use IHTMLTxtRange::parentElement to find the parent element.
Steve
|
|
|
|
|
Thank you it seems this will help me
rrrado
|
|
|
|
|
hi . i want read the file ü to Content-Type: text/html; world .i find both these point starting "ü" and end"Content-Type: text/html" . that is .dbx extension file. i want to read the matter of these starting and ending point in vc++.
how i can read the text between to point starting and ending point.
file is
---------------------------------------------------------------------------------------------
$õ ü 4÷ vered-To: uknowthatname@gmail.com
Received: by 10.82.180.5 with SMTP id c5cs1013733buf;
Mon, 11 Dec 2006 20:24:16 -0800 (PST)
Received: by 10.100.140.6 with SMTP id n6mr294640and.1165897456251;
Mon, 11 Dec 2006 20:24:16 -0800 (PST)
Return-Path: <impadiyar@yahoo.com>
Received: from web33604.mail.mud.yahoo.com (web33604.mail.mud.yahoo.com [68.142.199.193])
by mx.google.com with SMTP id d21si9979846and.2006.12.11.20.24.14;
Mon, 11 Dec 2006 20:24:16 -0800 (PST)
Recei4÷ ü Dù $õ SPF: pass (google.com: domain of impadiyar@yahoo.com designates 68.142.199.193 as permitted sender)
DomainKey-Status: good (test mode)
Received: (qmail 8106 invoked by uid 60001); 12 Dec 2006 04:24:14 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
s=s1024; d=yahoo.com;
h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID;
b=3DDmvWS2ZZwF0/HoxO3pioHpypjBuyUZPr+dO1wHCoYGnXimTSbW0ds9SB4Fcfv7ugKOMh+EYSaVUveb+fEv2tBigTdo8qmNhsuET3h3KammDù ü Tû 4÷ QL49iNLzLeqJOFq1AfHELg5m4fXKX0EY2JNC5hY2nonuxlafjCf1L91CDc0=;
X-YMail-OSG: DotgjpgVM1mA_pi5jSvC3Qpuo9s4PfjYIzXCpa.r_hodAu_dBAx7d.sdxWEAsBtsiuoiPlC0Qs0EUrpt95ryU3Vh9OGw42UG0gxmQ8nuDAhgIySv9zSfNJd9yxDXXBkfnIf4GVkG7Zk6dXU-
Received: from [125.23.21.18] by web33604.mail.mud.yahoo.com via HTTP; Mon, 11 Dec 2006 20:24:13 PST
Date: Mon, 11 Dec 2006 20:24:13 -0800 (PST)
From: naveen padiyar <impadiyar@yahoo.com>
Subject: sub 2 padiyar
To: uknowthatname@gmail.com
MIME-Version: 1.0
Content-Type: multipartTû ü dý Dù ernative; boundary="0-2137110764-1165897453=:541"
Content-Transfer-Encoding: 8bit
Message-ID: <987532.541.qm@web33604.mail.mud.yahoo.com>
--0-2137110764-1165897453=:541
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
hi deer
kasa ho aur kaha ho .
good morning
---------------------------------
Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
--0-2137110764-1165897453=:541
Content-Type: text/html; charset=iso-8859-1
Content-Transfdý ü Tû ncoding: 8bit
hi deer kasa ho aur kaha ho . good morning
Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
--0-2137110764-1165897453=:541--
-------------------------------------------------------------
naveen padiyar
|
|
|
|
|
In this case,"Abuse" is better than 1.
:Gong: 歡迎光臨 吐 西批 :Gong:
|
|
|
|
|
naveen padiyar wrote: Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
Then better try this one.
|
|
|
|
|
|
Hai,
I am trying to compile my application in VC++, I am getting error "file not found: ..\lib\ScriptHost.tlb". That file is not available in my machine. how to get that file? That file is included in the file
"..\Rogue Wave\Stingray Studio 2006\Include\toolkit\ActvHost\ScriptHost.rc"
Can anyone suggest me what I could do for this
Thanks
Surendran
|
|
|
|
|
Some type library was referenced with the #import directive. Probably, the type library contained a reference to another type library that was not referenced with the #import directive. This other .tlb file was not found by your compiler.
Why don't you contact Rogue Wave Software. You can find their contact website here[^]
SkyWalker
|
|
|
|
|
Im getting this exception
First-chance exception in abc.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
I want to get rid of this exception totally. I hav tried hard to solve but in vain.... Can any one help......
|
|
|
|
|
A first chance exception is just for debuggers. When an exception is generated and being debugged the handling is two stage. In the first stage, known as the “first chance”, the debugger is notified about the exception and can control further processing. The second stage refers to the normal exception processing mechanism. You’ve got some C++ code which throw s an exception somewhere and it’s probably normal. To find where it’s coming from set your debugger to break on the first chance for the exception type in question.
Steve
|
|
|
|
|
Stephen Hewitt wrote: find where it’s coming from set your debugger to break on the first chance for the exception type in question
How can this be done?
Thank you in advance.
|
|
|
|
|
What debugger do you use?
Steve
|
|
|
|
|
|
When debugging an application select “Debug”->”Exceptions...”. The “Exceptions” dialog will appear. Select the exception type in the list and press the “Stop always” button then press "OK". When the exception is generated your debugger will break and you can view the call stack ("View"->"Debug Windows"->"Call Stack"). Remember to change things back when you’re done.
Steve
|
|
|
|
|
You can do some things:
- To aisle the code that makes that exception and try to solve it (I think that you've already tried that).
- To use TRY/CATCH (exception handling) in order to help you to find where it came from or to handle strange situations.
Also there is a nice feature in VC++6 (I'm still using that one) that I suppose that will also be in the newer IDE's: you can go back from the point in which the problem has raised using a combobox named context (it appears in the top of the listboxes that allow you to debug).
Hope this helps...
|
|
|
|
|
In the continue with Steve see this[^] if its helpfuls
|
|
|
|
|
HI Experts
How can i handle the return value of this function
inline iRDOStoresPtr IRDOSession::GetStores ( )
{
struct iRDOStores * _result = 0;
HRESULT _hr = get_Stores(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return iRDOStoresPtr(_result, false);
}
manu
|
|
|
|
|
Try this
iRDOStoresPtr pRDOStores = IRDOSession::GetStores()
but replace the "IRDOSession::" bit the name of your variable that represents the IRDOSession class/structure, e.g.
iRDOStoresPtr pRDOStores = mySessions.GetStores()
|
|
|
|
|
Dear all,
Anybody knows from where AfxWinMain gets the CWinApp global object pointer ?
When i looked the MFC source file (winmain.cpp) i can see the following lines.
nt AFXAPI AfxWinMain(..../*params*/)
{
int nReturnCode = -1;
CWinThread* pThread = AfxGetThread();
CWinApp* pApp = AfxGetApp();
}
Surely AfxGetApp() returns that global object. me again looked the AfxGetApp function , it is calling a AfxGetModuleState state function and this function returns the CWinApp object. AfxGetModuleState gets this value from CThreadLocal class's object.
My question is How MFC getting the pointer of my CWinApp derived class object.
Share your ideas please..
-- modified at 0:51 Friday 5th January, 2007
If u can Dream... U can do it
|
|
|
|
|
The following line is from CWinApp::CWinApp :
pModuleState->m_pCurrentWinApp = this;
That's how it gets the app.
Steve
|
|
|
|
|
Thanks Steve. .
If u can Dream... U can do it
|
|
|
|