|
Thank you! Your suggestion is very constructive.
I do like STL's basic_string, but I have to use its c_str() memfunc when I pass a string object to MFC classes.
A Chinese VC++ programmer
|
|
|
|
|
TCHAR*
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
|
|
|
|
|
I believe you're not serious
A Chinese VC++ programmer
|
|
|
|
|
You're wrong.
(Well, I often have to use one or more of the classes you were talking about, but usually I prefer going to the metal)
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
|
|
|
|
|
I know what you're mean.
Thank you!
A Chinese VC++ programmer
|
|
|
|
|
|
Ozer Karaagac wrote: Maybe, you may want to consider this.
No. That is so old and ugly stuff. Most of it is even for VC6!
And look at the second picture (the one named "Screenshots of native C++ equivalent") and how his class MLFString has a equals()-member!
Somone who programs JAVA in C++ is not someone to whose programming tip I tend to listen!
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
Three negative votes against just sharing an article without revealing any acceptance.
Isn't it somewhat harsh? What a great liking to vote negative?
Is this STL fanaticism? If so, good luck to you with your lovely STL.
In STL we trust.
|
|
|
|
|
I don't really like any of them, but use whatever fits best into the current project. For instance, now I work on something with lots of COM, so I use CComBSTR. On the previous job, we were making an OS-portable system, so the obvious choice was std::string.
|
|
|
|
|
all depends.
i used to strongly abandon C-style strings (char* and all its variants) as long as i can. of course, when I have to use the C runtime (or any C APIs), then it's the only really valid reason to...
as long as I code in C++, I use C++ strings.
I used to use the MVC pattern also. so, for my UI layer, I mainly use CString as I use MFC.
but as for my other layers (which are generally put into DLLs), i use std::string
|
|
|
|
|
Hi!
I'm Rathakrishnan. I've to create a ToolBar(like Google ToolBar) for a site using C++. Is there any Articles for this? Any body can help?
|
|
|
|
|
Click here [^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
|
Hello all,
I am having problem with HtmlView class. I am using this class to load web page from any URL. But the url, i am apecifying contains character SWf in url string. So is it possible that URL is not being able to load because of SWF word. Other sites that contains flash content are being loaded then why problem is created for below URl?
http://www.webkinz.com/SWF/setLocale.swf?locale=us_en
[^]
Any help is highly appreciated.
Thanks & Regards
Hemang
|
|
|
|
|
Have you tried with IE, HtmlView is based WebBrowserCtrl which is used in IE.
This site is blocked in my office PC and says it comes in Games Category may be the similar reason.
|
|
|
|
|
What is the reason? This is being able to open in IE7. Then why is it not being open in my application?
Thanks & Regards,
HEmang
|
|
|
|
|
Rajkumar R wrote: Have you tried with IE, HtmlView is based WebBrowserCtrl which is used in IE.
This makes no sense. What are you trying to say?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Would you please help in this regard? I am facing very serious problem. I am able to navigate to any other URL but not containing swf file in its string and gives me Internet Explorer Script Error.
Please any help is highly appreciated.
Thanks & Regards,
Hemang
|
|
|
|
|
Using VS6, I just created a test application, with the view derived from CHtmlView , and it worked fine.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Have you tried with my given url i.e.
http://www.webkinz.com/SWF/setLocale.swf?locale=us_en[^]
Then why am i not being able to do the same? Is there something related to SWF file. I am not able to load even local swf file.
Please help further by trying with my url.
Thanks & Regards,
Hemang
|
|
|
|
|
Hemang Raval wrote: Have you tried with my given url i.e.
http://www.webkinz.com/SWF/setLocale.swf?locale=us_en[^]
Yes, it works fine.
Hemang Raval wrote: I am not able to load even local swf file.
Can you using IE or some other browser?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
you please give source code of your test application that you made with CHtmlView. It would e great help to me.
Thanks & Regards
Hemang
|
|
|
|
|
DavidCrow wrote: This makes no sense
what are you trying to say
|
|
|
|
|
Hey how can i move CClientDC object in client window using mouse ?
i did it but it show last cicle on screen. If i do Invalidate to TRUE it moves the circle but did'nt show properly in Dialog box.
if((nFlags & MK_LBUTTON)==MK_LBUTTON)
{
CClientDC obj(this);
x=(point.x)-50;
y=(point.y)-50;
obj.Ellipse(x,y,x+100,y+100);
}
Invalidate(FALSE);
So what should i do ???
Regards:
Xohaib Shirani
|
|
|
|
|
You've to put the drawing stuff inside the WM_PAINT handler.
Then you'll ask for an update (outside of the above handler) whenever appropriate (for instance using a timer if you need to move continuosly).
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
|
|
|
|