|
|
I tried using a frameset on the CDHTMLDialog that comes with mfc 7.0.
I discovered that the HTML controls on the pages in the frames are not sending messages to the dialog.
For Example, for the following:
DHTML_EVENT_ONCLICK(_T("ButtonCancel"), OnButtonCancel)
The method 'OnButtonCancel' doesn't get called.
Pls help me out
What would life be without programmers and salesmen?
|
|
|
|
|
Hi,
I'm using Visual C++ 6 and I have a big project (around 1000 c, cpp, h).
How can I modify a variable everywhere in the project ?
The "replace" function does work only for a file !!
And it would take me ages to do it everywhere without forgetting any !!
Thanks !!!!!
|
|
|
|
|
VStudio.Net (i.e ver 7.0) comes with this feature.
It's called replace in files.
And can be found on the edit menu.
What would life be without programmers and salesmen?
|
|
|
|
|
Thanks, but what does exist under VC6 ?
|
|
|
|
|
Try one of the shareware simple text editors that support that feature, like EditPlus.
Be careful as that is a dangerous operation. For example, make sure you don't have any other vars whose name contain the text you're changing.
G. Raven
|
|
|
|
|
Pierre_1 wrote:
And it would take me ages to do it everywhere without forgetting any !!
If it's one variable that's used globally, just change the declaration of it and the compiler will tell you of the references. Yes this still takes time, but you wouldn't forget any. Otherwise, what you want is not possible with the v6 IDE.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I am totally against changing the name of a variable in 1000 c,c++ files, totally ineffcient thing to do. May be you are converting the source codes for some coding standards. but the job is inefficient.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
Hi,
I'm using Visual C++ 6 and I have a big project (around 1000 c, cpp, h).
How can I modify a variable everywhere in the project ?
The "replace" function does work only for a file !!
And it would take me ages to do it everywhere without forgetting any !!
Thanks !!!!!
|
|
|
|
|
what about using "replace in file(s)"?
Don't try it, just do it!
|
|
|
|
|
I wish to deploy my application, but don't know how to handle the reference to files within my application.
I currently refer to an avi file like this:
"C:\\TASK_002\\RES\\video3b_view_wh_short.avi"
in the code.
Now I am using the MS Visual Studio .Net to deploy the application and have arranged for the files like "video3b_view_wh_short.avi" to be included in the deployment.
But is this correct to reference in the code the direct path name, as when the program is deployed it will be under the "Program Files" directory - in a sub directory.
How do I handle this in the code?
Sweep123
|
|
|
|
|
Hard-coded paths are usually a bad thing. You would normally provide some sort of configuration mechanism where paths and such can be specified by the user.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
...and then at runtime use GetCurrentDirectory() to figure out where u go from there
"there is no spoon" biz stuff about me
|
|
|
|
|
I have template class where the declarations are in a header file Check.h and the definition is give in a .cpp file Check.cpp.
I am using another file Test.cpp containing the main function to create an instance of the class. The problem is that when I include Check.cpp in Test.cpp it works fine. However, on including Check.h instead of Check.cpp in Test.cpp, I am getting this error
error LNK2001: unresolved external symbol "public: void __thiscall CTest<int>::CheckMethod(void)" (?CheckMethod@?$CTest@H@@QAEXXZ)
What can be the reason for this?
|
|
|
|
|
This is a very common (and interesting) problem with how template instantiation is performed. The subject is deeper than I'm going to explain, but this can serve as a starter.
The template definition (Check.cpp in your case) can be considered as a "code skeleton" that the compiler uses to generate the actual code when needed. The process of generating actual code from the template definition is called instantiation:
template <class T> class foo
{
...
};
...
foo<int> a;
foo<string> b; The point of instantiation (POI) does not occur at the definition, but when the template is first used. Except in cases I will not go into, the definition of the template must be visible from the POI.
So, in your second situation the POI in Test.cpp does not see where the definition of the template is, while compiling Check.cpp alone does not produce any code at all (no instantiation inside Check.cpp .) You got it?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks Joaquin, I got it. Where can I find some material on this for reference?
|
|
|
|
|
Is there any way by which i can read the Data that is been sent or receieved on a Port ?
Thanks
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
|
Bryce thanks for replying but
i just want to know how hard is to code an application like that or should i just drop the idea ?
i have to modify the HTML in a browser i am using BHO for that but was evaluating other options as well
you have some suggestions ?
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
there are some ways, but i don't know if they aren't quite complicated for you.
you could create a winsock service provider(WSP), you could code a global hook for the socket functions or the best way, you could create a tdi filter driver, which is quite difficult and a lot of work.
greez,
Alexander M.
Don't try it, just do it!
|
|
|
|
|
Hello All,
You can download the TDIMon utility from SysInternals :
http://www.sysinternals.com/ntw2k/freeware/tdimon.shtml
This tool is very useful indeed and is downloadable for free. It is very good by itself but I think the more advanced features will need to be purchased.
No source codes provided in the free version.
Hope this helps,
Bio.
|
|
|
|
|
theres a library on sourceforge (whos name i forget) that you can use in your apps to do stuff like that.
Alternatively look at SF and find a packet sniffer and look at their code
bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
Check out htmlfilter, this program filters out the commands that create popup windows, but I'm sure it wouldn't be hard to modify for what you need.
http://www.codeproject.com/tools/htmlfilter.asp?target=
|
|
|
|
|
I want to make a textcontrol object as in MSPaint..It should act as an object and must be movable and resizable...Please help me out.. ITS URGENT....
|
|
|
|
|
Hi,
I need to enumerate the process (names), that is running the current user on a terminal server (the user starts his terminal "client", then starts my application and I need to know if some processes are running or not).
I have tried to enumerate the processes names in a normal way, but then it gives me all the processes from all the sessions .
Thanks in advance, Greetings
Braulio
|
|
|
|