|
you can use regular expression to extract the url from the html data.i have done this before but not in c++,just in java.
|
|
|
|
|
hi thanx but i want it in vc++
any way thanx
|
|
|
|
|
There are also some regex library in c++.
|
|
|
|
|
The Boost library includes a very nice regular expression[^] library for use from C++. Documentation and examples are good. You can probably Google for a site that lists regular expressions for extracting information from HTML.
Software Zen: delete this;
|
|
|
|
|
Host the document in MSHTML and use the anchors property of the IHTMLDocument2 interface.
|
|
|
|
|
Dear Friends,
I m trying to write one application to get Oracle reconnection. But i m not getting reconnected.
What can be a problem?? can anybody help me??
megha
|
|
|
|
|
Come on !
How could expect one to know, what exactly is problem ? Explain, what you are trying ? And where you are stuck ?
Prasad
MS MVP - VC++
|
|
|
|
|
Ohh yes.... sorry boss..
Here is the problem..
while reconnecting i m trying to execute a query to check whethere i got connected to DB or not??
That query returns me true which means i m connected to Database. Now i want to update some records from file to DB and at that time i m getting "OERROR_INVPARENT" error.
My question is how it can return me two different things at two different places.
Did u get my problem now??
|
|
|
|
|
Gaurang Shah 033 wrote: LPSTARTUPINFO si;
LPPROCESS_INFORMATION pi;
STARTUPINFO si;
PROCESS_INFORMATION pi;
Am I right?
- NS -
|
|
|
|
|
|
You are welcome.
- NS -
|
|
|
|
|
Hi,
I have made the Followind chages to my code but now it gives me followind Exceprion
Unhandled exception at 0x7c4f3ac3 in Dekstop-GUI.exe: 0xC0000005: Access violation writing location 0x00416856.
The Code is as follow.
<br />
<br />
void ShowImage(void)<br />
{<br />
LPWSTR str = L"c:\\WINNT\\system32\\notepad.exe";<br />
STARTUPINFO si;<br />
PROCESS_INFORMATION pi;<br />
<br />
BOOL ProcCreated;<br />
ZeroMemory( &si, sizeof(si) );<br />
si.cb = sizeof(si);<br />
ZeroMemory( &pi, sizeof(pi) );<br />
<br />
ProcCreated =CreateProcess( NULL,str,NULL,NULL,FALSE,0,NULL, NULL,&si,&pi ); <br />
<br />
}<br />
<br />
|
|
|
|
|
The following modifications may help you...
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory(&si,sizeof(si));
si.cb = sizeof(si);
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_SHOWMAXIMIZED;
ZeroMemory(&pi,sizeof(pi));
- NS -
|
|
|
|
|
Thnx,
But Error Still persist.
The prior code I just post to you is working well in other application. But it gives the Error in this Application only.
I am using MouseHook in my Programming. Can it generate any Probelem.
|
|
|
|
|
The second paramater expects a LPTSTR you are passing a LPCTSTR. CreateProcess() will try to modify the string in the second paramater.
TCHAR str[ MAX_PATH ];<br />
_tcscpy_s( str, MAX_PATH, _T("c:\\WINNT\\system32\\notepad.exe") );<br />
<br />
CreateProcess( NULL, str, ... )
|
|
|
|
|
Thnx a lot. problem solved. might be u had find this probelm silly. But I am a vary beginner programmer in VC++.
|
|
|
|
|
Gaurang you deleted the message at the base of this thread too, please stop doing that.
|
|
|
|
|
Sorry for that.
But can u help me in my problem
I am trying to create the Process using Crateprocess. I have just copy the function from my other project. It works there fine. but gives error in this project.
I am using win32 Dialog base Applicaion and a Dll file for MouseHook.
Can this thing cause any problem
|
|
|
|
|
You imply in your messages that you are using some kind of MouseHook and yet all you give is the CreateProcess() call.
Stack trace the exception, and post relevant pieces of your code.
|
|
|
|
|
Ok. I have tried the same code in other win32 application which doesnt uses any other thing.
I just simply create the Win32 Project throught Winzard(VC 2005) and the make the changes so that when you press OK Button on About Box it Call the ShowImage() Function. But still it gives the me the Runtime Error. The Follwing code works fine in one of my MFC Application.
<br />
<br />
void ShowImage(void)<br />
{ STARTUPINFO si;<br />
PROCESS_INFORMATION pi;<br />
<br />
ZeroMemory(&si, sizeof(si) );<br />
si.cb = sizeof(si);<br />
ZeroMemory(&pi, sizeof(pi) );<br />
<br />
CreateProcess( NULL,
L"MSPAINT",
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&pi );
<br />
}<br />
<br />
|
|
|
|
|
I see nothing wrong in your usage of CreateProcess() (unless you are compiling without UNICODE defined) therefore the problem must be in some other part of your application. As suggested by your statement The Follwing code works fine in one of my MFC Application.
As indicated by WalderMort above my comment here is totally wrong.
-- modified at 0:14 Sunday 2nd September, 2007
|
|
|
|
|
is there any way of including the mfc42.dll file (or it's content) in the exe file,
so that you dont have to add the mfcfile along with the executable when releasing the final product to the end user?
or is any way to not use mfc42.dll at all when developing a mfc dialog app?
(vc++ 6.0 standard edition)
off topic: is there any new servicepacks for vc++ 6.0, i've got sp6, is this the latest?
thx!
-- modified at 8:00 Saturday 1st September, 2007
sp1 -> sp6
|
|
|
|
|
rolfhorror wrote: is there any way of including the mfc42.dll file (or it's content) in the exe file
You can link it as static library. It is set via project settings => General.
rolfhorror wrote: is there any new servicepacks for vc++ 6.0
As far as I know, SP6 is there. But I dont know from where it is available.
- NS -
|
|
|
|
|
thanx for answering, i'll try the linking thing.
sorry about the servicepack, i meant i've got sp6 not sp1, maybe 6 is the latest
thanx.
|
|
|
|
|
how exactly would you link mfc42.dll in Project->Settings->General
where do i go from there? Theres no options only "Use MFC in a Shared DLL"
How do i statically link mfc42.dll to my exe?
cant seem to find any articles about that.
|
|
|
|