|
There r no such events. The events u r getting, such as BEFORENAVIGATE, NAVIGATIONCOMPLETE, belongs to the Web Browser ActiveX Control. So the Web Browser ActiveX Control doesn't monitor how many instances of it r running.
As far as I know, there's no such feature in IE.
Come online at:-
jubinc@skype
|
|
|
|
|
Sorry for the very late.
May I ask One thing that when DISPID_WINDOWACTIVATE is generated in BHO ?HOw can I catch this event in my application??
Thanks.
Ashish Bhatt,
System Developer,
Avinashi System Pvt. Ltd.
|
|
|
|
|
ashishbhatt wrote: Yaa, I want the notification when any new window is opened.(
Each time IE is opened, doesn't an instance of your BHO also get created?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm new to Visual C++ and am creating a windows form application.
I was wondering if it was possible to link a console application which is written in C but stored in C++ files to a windows form?
So for example if I clicked a button in the Windows Form application then this would run the console application?
|
|
|
|
|
Didn't you ask this question an hour or so ago? If so, this time it makes more sense.
In your onclick event handler, you can use CreateProcess or ShellExecute to run the console program.
Iain.
|
|
|
|
|
Thanks for the reply before you replied I just got the error LNK1152 so not sure if I should try to solve this or use the ShellExecute
|
|
|
|
|
rover_boy wrote: ...I just got the error LNK1152...
Please explain.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have client class written in C saved into C++ files. This class is to connect to a server. I want to use this code which connects to the server in my GUI which is created using windows forms.
I have added Additional Dependencies to the windows form project. The problem is when I include these .cpp code files to the windows form project I get the error LNK1152.
I also get warning messages: "This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use CRT_SECURE_NO_WARNINGS"
I'm looking into ShellExecute to solve my problem
|
|
|
|
|
rover_boy wrote: I get the error LNK1152.
Again, be specific. We're not mind readers.
rover_boy wrote: I'm looking into ShellExecute to solve my problem
Then you will likely need to remove the aforementioned code as it would no longer be needed.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
It seems that you need to ShellExecute for run other applications of your program.(anyway you didnt answer to my reply on your previous question ).
|
|
|
|
|
Thanks for the help I might not need to do that if I can solve the error LNK1152
|
|
|
|
|
Did you get this error when you used of ShellExecute?
|
|
|
|
|
Hi all,
On a database I have a table, with two columns, named as FileName and the FileType. On the table I define the data type as 'Text'. I try to add some data to it within my code as follows.
_RecordsetPtr pRec;
ostringstream sqlCmd;
char chState = 'R';
bool bState = true;
if(bState)
chState = 'R';
else
chState = 'T';
sqlCmd << "INSERT INTO tblGroupState(DiskFileName, FileState) VALUES(" << fileName << ", "
<< chState << ")";
try
{
pRec = m_pConn->Execute(sqlCmd.str().c_str(), NULL, adCmdText);
pRec->Close();
}
catch(_com_error &e)
{
_bstr_t bstrSource(e.Source());
_bstr_t bstrDescription(e.Description());
printf("\n Source : %s \n Description : %s \n",(LPCSTR)bstrSource,(LPCSTR)bstrDescription);
}
Here, m_pConn is the connection to the database and it is perfectly work. Because I used it previously.
My code gives an error, Can you guys find that where I'm going wrong with.
I appreciate your help all the time...
Eranga
|
|
|
|
|
In order to lessen the need for psychic powers, you may want to tell us what the error is, and where it's given?
Iain.
|
|
|
|
|
Yep this is the error.
bstrSource "Microsoft OLE DB Provider for SQL Server" (1)
bstrDescription "The name "G00001_020_01.srf" is not permitted in this context. Valid expressions are constants, constant expressions, and (in some contexts) variables. Column names are not permitted."
I appreciate your help all the time...
Eranga
|
|
|
|
|
So what is G00001_020_01.srf?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
David,
It's the file name I want to add. Actually I found my mistake. That is, I manipulate the sql command in wrong way. Not it is fixed. Thanks for your all help. And sorry for the disturbing on my question.
I appreciate your help all the time...
Eranga
|
|
|
|
|
I am programming in VC++.
I want to enable/disable Local Area Connection.
|
|
|
|
|
I saw the same question answered just a few days ago. Do a long read of this forum, and your answer should be there!
I've been looking at changing IP addresses etc, and this is a dark murky area of the windows SDK...
Good luck,
Iain.
|
|
|
|
|
See here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Does anyone know where I can find a list of the icons used in the class view? In particular the ones added by Visual Sourcesafe 2005.
I've found the list of icons in VS2005 help, but it states "more icons may be added by your source control system".
|
|
|
|
|
Hi,
This may help:
http://msdn2.microsoft.com/en-us/library/ms181372(VS.80).aspx
Thanks.
--
Catherine Sea
Dynamsoft Corporation
www.dynamsoft.com
the leading developer of version control and issue tracking software
|
|
|
|
|
There is a static box and other controls like buttons, edit boxes etc on dialog. The class for static box is CMyStatic which is derived from CStatic. Program draw some lines on static box. Lines may go outside the static control when draw by mouse. While drawing any line the previous line is erased. But if previous line was outside the control(i.e. on dialog box) it's not erased. For that i call Invalidate of dialog box.But this gives the flickering problem. Please give any suggestion to solve this problem.
Manoj Kumar Chauhan
|
|
|
|
|
Use InvalidateRect()
Come online at:-
jubinc@skype
|
|
|
|
|
You either have to invalidate the dialog (as you're doing) and put up with the flickering, or...
...you can use SetROP2 (R2_NOT) to make the line XOR the pixel underneath, then draw it again using the same technique to put the pixels back as they were.
(don't forget to restore the ROP2 mode after drawing like I did...)
Iain.
|
|
|
|