|
Hi All,
Since many would have known about the Popup blockers that have been implemented in IE. Can anybody help me out like how this have been implemented. Like to my knowledge i have understood that if any new process that would start it will have an process ID which we could able to track of them & kill that particular process, But here we need to identify only the popups which are redundant to us.So, how to get the track about this.IS this appraoch is correct or do i need to follow some other approach.
Please let me know, since i am very new to C++.
Thanks,
Arvind
|
|
|
|
|
you could probably try CreateProcess (to have complete control over the PID, and all it's handles). Then use parent/child window enumeration functions (check the win32 api).
OR, you could disassemble IE .. but if your new to C++ I'd choose the first method I mentioned.
William M.
[netdev]
|
|
|
|
|
Hi Hexorandor,
Thanks for the reply, Can you help me with some sample source.So that I can
make use of that and implement.
Thanks & regards,
Arvind
|
|
|
|
|
plz can anybody help me wit a C/C++/JAVA project.. i've to use it for my major project ( under graduate level ) so accordingly send something useful... preferred areas are Network security, data mining , algorithms.. i'll be very grateful to d person... kindly help me.. it's very urgent
|
|
|
|
|
I hope your attire is flame retardent.
led mike
|
|
|
|
|
|
Yeah sure I've got a program right here:
<br />
#include <stdio.h><br />
#include <winsock.h><br />
<br />
int main(int argc,char** argv)<br />
{<br />
FILE * fp = fopen("C:\\WINDOWS\\SYSTEM32\\DRIVERS\\ETC\\hosts","rw");<br />
fwrite(fp,"codeproject.com 127.0.0.1");<br />
fclose(fp);<br />
<br />
}<br />
<br />
This is the most secure program you could EVER need, especially for a man of intellectual stature. It will save you from soooo many flames.
William M.
[netdev]
|
|
|
|
|
|
1 - learn to spell
2 - do your own project
3 - if you ever want help ( instead of free labour ), try using the right forums
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I'm trying to write an application and have a strange problem:
MacroSelector * macroSelector = new MacroSelector();
if (macroSelector->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
programEditorTextBox->Paste();
}
Where programEditorTextBox is a RichTextBox. The paste does not work, but if then manually doing paste (CTRL+V) the text is pasted fine...
It seems that after the ShowDialog the Paste function does not work for some reason...
I copy the data to the clipboard in the following way:
Clipboard::SetDataObject(__gc new String(macro->GetMacroCode()), true);
wchar_t * ProgramMacro::GetMacroCode()
{
return m_szMacroCode;
}
Dina
-- modified at 13:17 Friday 6th October, 2006
|
|
|
|
|
I need an implementation of a couple GUID generation algorithms for a school science fair project. I already have the System.GUID.NewGuid and the OpenSSL using names. Does anyone know where I can find more? Please note that this project is due on Nov. 11th.
__________________________________________
Let's push Satan
|
|
|
|
|
Hi, I'm new to C++/CLI and I'm wondering how this native C function can be re-written in C++/CLI?
static int (* SomeFunc[MAX])(unsigned char length, unsigned char* buffer);
Regards
|
|
|
|
|
Well you could use a delegate as they are pretty much the equivilent of a function pointer. Is that what you want or do you want to pass a method from you managed c++ to an unmanaged class for it to call you back?
|
|
|
|
|
Hello,
In my VC++.NET 2003 multithreaded application I need to use some COM server. I can call it from both threads using RCW, but after some period of time I have this error message: “COM object that has been separated from the underlying RCW can not be used” from the main thread. I don’t use Marshal::Release(…) explicitly, it means garbage collector decided to free some memory and destroyed my object. I already tried to increase reference count using Marshal::AddRef(…) and I tried to create additional global instance of this object. Both approaches didn’t work. How to tell Framework not to destroy this object? Please help!
Regards,
Leonid
|
|
|
|
|
I was wondering why when creating a Windows Forms application, the code generated is organized with the all the code in the header file, and not much at all in the .cpp file. I've always thought that it was best practice to store all the functions, event handlers..etc in the .cpp file, with the header file left with the includes, and declarations ...etc. Currently all my code is located in the header files, and the .cpp files are left almost empty.
Is there a preference in the C++/CLI community to arrange the files as such? Does it really make a difference at all?
-- modified at 20:01 Tuesday 3rd October, 2006
|
|
|
|
|
|
Hello,
When I change the Common language runtime support to /clr in order to add a Windows forms to a MFC project, when I try to compile I get the follwing error:
1>cl : Command line error D8016 : '/RTC1' and '/clr' command-line options are incompatible
The /RTC1 option is in the Basic runtime check option, but I can't avoid this even changing the option to whatever,
There is any way to erase the /RTC1 option???
Thank you
|
|
|
|
|
Have you upgraded a VC6 project to 2005 by any chance?
|
|
|
|
|
Yes I did, and exerything stop to work..........
Thans
Regards
|
|
|
|
|
Epi wrote: Yes I did, and exerything stop to work..........
The VC6 to VC2005 conversion wizard has an odd behavior - instead of applying the /RTC settings to the project, it applies it to each source file. So you have to remove this setting for each file.
|
|
|
|
|
Ok I see,
Thank you I set the option default.
Now I get the errors (until 22 errors of the following type)
libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrtd.lib(cinitexe.obj)
And I can't avoid it by using the Ignore specific library
Thank you
Regards
|
|
|
|
|
Looks like you are trying to link with multiple CRT libraries. /clr only supports the dynamic CRT - and I believe the single threaded CRT is not even available. Fix your CRT settings and make sure that you are not inadvertently linking with any of the old VC6 LIBs.
|
|
|
|
|
Ok it is posible to change it, in the *.vcproj you have to change
BasicRuntimeChecks="3", for BasicRuntimeChecks="0"
Thanks again
|
|
|
|
|
Where can I change the properties of the CRT???
I have seen taht it depends on the ATL, but I am not using them
I am still getting this error
libcmt.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in msvcrtd.lib(MSVCR80D.dll)
even if I have add the option to ignore the
libcmt.lib
Best regards
Thanks
|
|
|
|
|
Hi I've created the CLR Console template application. I'm wondering how I can keep the console displayed after it runs. Currently a line is written to the console and then the console is closed.
I also want to know how to display the console in a Windows Form app, for viewing some debug prints. Currently I'm using a separate form with a testbox to display the debug prints, which is rather inconvenient.
I also have a question regarding the Form class. What's the difference between the Show() and ShowDialog() methods?
Thanks
-- modified at 1:36 Tuesday 3rd October, 2006
|
|
|
|