|
Taruni wrote: If I include those header files in .cpp file, then the compiler generates the error as it doesn't find the header file for CObject in MyClass.h file.
Which is why I asked what the stdafx.h file looks like.
At this point, I would create a "dummy" MFC project, and then create your new class via Insert --> New Class. In the Class Type combobox, select Generic Class. In the Derived From box, type CObject . Study the contents of the files created.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi,
I'm looking for C/C++ programmers interested in developing an opensource antivirus engine.
Done so far: basic virus detection using Aho-Corasick for string searching, clam database, recursive directory searching.
If you are interested please send me an email at: dreamlost88@yahoo.com
Thank you,
Have a nice day!
|
|
|
|
|
That's the wrong forum for such a post. I suppose a better choiche is the Article Requests and Ideas [^] one.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Why you dont make it yourself?
|
|
|
|
|
|
You have to use an external pictures hosting site for that (see for instance imageshack or flickr).
|
|
|
|
|
You may post of your picture hosted by website offering this service.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi to all.
I'm writing a small app using VS2008, I've placed an progress control on my dialog and set smooth property to true. Also in 'OnInitDialog()' set this:
m_Progress.SetRange(0,100);
m_Progress.SetPos(0);
m_Progress.SetBkColor(RGB(0,255,0));
m_Progress.SetBarColor(RGB(255,0,0));
I want to use this ctrl for showing how much space is left on something. E.g. the back color of progress ctrl is all green at beginning and as I step it I would like to show smooth and red color range.
The problem is that nothing of this is applied when I start the application, no smooth style bars they appear as default, back color is not set to green nor the bars are green.
How to achieve this?
Thanks!
P.S.
I'm on Win XP!
|
|
|
|
|
What happens if you remove the call to SetBarColor() and possibly the call to SetBkColor() ?
Does the bar run smoothly afterwards?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Nothing happens then, still no smooth style!
Should I use some king of visual style to get smooth style. Think may read something like that a while ago, and how?
Thanks man for your time.
|
|
|
|
|
josip cagalj wrote: Should I use some king of visual style
I'm not aware of anything of the kind.
MSDN doesn't mention any setting required to enable the smooth progress bar style.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hello friends,
I have created our client server application using WinSock api in VC6.0 using Win32.
I want to create an application which monitors the data flow and user authentication
between client and server.
I want to create a middlewear application which monitors the data security between client and server withought disturbing client and server.
Please give me suggestions.
Waiting for the positive reply
|
|
|
|
|
You could just use something like Ethereal[^] to monitor the traffic.
Otherwise, you could write your own software to act as a proxy for the client, and log everything, but that seems (a) too much work, and (b) a source for bugs that wouldn't even be there without the middleware.
Iain.
|
|
|
|
|
Hi,
I have written a perfect Serializable class "X" with two variables and taken a dialog box with two editboxes. I am updating the information from dialog box into "X" variables and trying to serialize that class object.
Where should I call X.Serialize(ar) ? Is it in Document class? If so, is it mandatory ? I have also tried to do by declaring a global variable"Xobj" in the document class and calling the Xobj.Serialize(ar) in the Document's Serialize(). However I am getting "error C2011: 'X' : 'class' type redefinition".Perhaps may be the header file is getting included twice, I guess. But when I am trying to resolve the problem, it has entered an infinite loop and things have become too worst.
I have gone through many articles since yesterday on "Serializing the objects" where one serializable class is getting serialized in another Serializable class and so on. But my doubt is how and where will the root serializable class's Serialize() get called.
Please some one help me on this topic. I am unable to proceed with my sample application. Any sample application could also help me.
Thanks in advance.
Taruni
|
|
|
|
|
Typically it is done in the Document class (and in a standard SDI project, this is already done for you). This is the most logical place to put it because your document class is supposed to contain all data relevant for the application (but it can also contain other serializable classes).
It is not mandatory but it is a bit akward not to have a serializable document.
|
|
|
|
|
Hi All,
I need to parse the .xml file and i want to get the particular tag value.For example If i give <<book id="">,it should be return "bk101".
I found some example.But it listout the all valus.
Thanks & Regards,
Anitha
|
|
|
|
|
Take a look at TinyXML[^]. It's a simple XML parser and is fairly easy to use.
|
|
|
|
|
|
I saw your message, and couldn't help using a west country accent in my head...
Iain.
|
|
|
|
|
How often do you speak to yourself in your head with foreign accents? Are you seeing a doctor for this?
|
|
|
|
|
Welcome in the THHB [^], [^] Randor!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Wow, I am privileged to be listed with such distinguished members! I think...
-David Delaune
|
|
|
|
|
Thanx i do ve the same question..
kindly let me know the solution if u get it first ...
thanx..
|
|
|
|
|
Hi all,
I am trying to use CreateFile API in VISTA UAC ENABLE case but its returning 5 that is ACCESS_DENIED. I have to create my file at the same position and not anywhere else, now i want to elevate my process to create the file at same position. How can i do this????
Thanks in advance
|
|
|
|
|
See here[^] and here[^]
I hope it helps.
Regards,
Sandip.
|
|
|
|