|
To expand on the previous comments - read the "how to post" guideline post, and look at the pre tag
Iain.
Iain Clarke appears because CPallini still cares.
|
|
|
|
|
gentleguy wrote: i don't understand what is problem.thanks
And we're supposed to?
"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
|
|
|
|
|
Looks like Li Zhiyuan has fooled you guys
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
modified on Wednesday, March 12, 2008 10:03 AM
|
|
|
|
|
How do you figure? Just because he is posting under a new name does not necessarily mean that any one was "fooled." He received the same lame answer(s) as always.
"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
|
|
|
|
|
DavidCrow wrote: He received the same lame answer(s) as always.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I was being facetious.
Note: I just noticed that when I first posted the message I didn't use the appropriate 'Joke' icon
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
sorry for that,however i adjust my format of code, they couldn't display completely. so sorry to bring some inconvenience.
gentleguy
|
|
|
|
|
Hello everyone,
For non-template function/class, compiler knows the symbol is there and bind to a definite symbol. It is straight forward to understand.
But for a two-step name-lookup compiler, I am curious, how did compiler binds another referred template from one template in the first name lookup step, before instantiation?
Since template symbol is not finalized until it is instantised. But during the first step of compiler look-up, the compiler only sees the definition of template, how could it bind (generate binary code to link to some symbol) (before a referred template is instantised, the real code is not generated)?
For example, in the following code, during the 1st step of name-lookup before function func is instantised, how did compiler work internally to bind to vector<T> (T is not ready at this time, so vector<T> is not instantised)?
Or, I am wrong that compiler will do nothing to bind the referred template, like vector<T> in the sample?
template <class T> void func (T a)
{
vector<T> vc;
vc.push_back (a);
}
thanks in advance,
George
|
|
|
|
|
Firstly i guess, is it even possible to have a dialog with muliple edit controls and buttons(Keyboard type letter buttons) that keeps the focus set to the currently selected edit control but is still able to tab/click to other controls? The buttons need to input letters to the edit control just like a keyboard as this is really a on-screen keyboard.
If so how do i manage the focus.
I've looked at every OSK article i could find on this site. I've also searched around the net alot. I've also look at a lot of articles just talking about focus control. Everything i have found so far won't wonrk in the manner i'm attempting.
I'm trying to do this with the keybd_event fucntion also.
Like a cross between these two is my goal. As i will also make a standalone dialog with just the keybaord to input to other windows.
http://www.codeproject.com/KB/cpp/onscreenkeyboard.aspx[^]
http://www.codeproject.com/KB/dialog/XKeyboard.aspx[^]
Any input is appreciated.
|
|
|
|
|
Hi
I think you will have to look at SetWindowsHookEx .
You can intercept all keys by using a WH_GETMESSAGE hook.
God bless,
Ernest Laurentin
|
|
|
|
|
|
Hi-
I am using one of those IE based controls in a few dialogs to display HTML content downloaded from our server.
But, we find that some users have problems with it. For some it either crashes or doesn't display anything.
Suggestions on a good alternative?
I prefer cheap, but could pay for a commercial product too.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
|
Not sure why -- but thing scares me -- 3 years old... would prefer something with some commercial support on it.
I was hoping for someone's personal recommendations (from experience)...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
Peter Weyzen wrote: Not sure why -- but thing scares me -- 3 years old... would prefer something with some commercial support on it.
The IE browser control is what scares me. It use to have documented BSTR and other resource leaks.
Peter Weyzen wrote: I was hoping for someone's personal recommendations (from experience)...
I have developed one commercial application utilizing an older version of the mozilla control, I have not had any problems with it. The only other viable solution I am aware of is HTMLayout:
http://www.terrainformatica.com/htmlayout/[^]
I have not personally used it but an engineer here in the office says he recommends it. Perhaps someone reading this thread will have some additional input about the subject
Best Wishes,
-David Delaune
|
|
|
|
|
Thanks for the testimonials -- I think I am going to take a look at HtmlLayout...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
Hey RANDOR.
A very good library that htmlayout.
Thankx for the link.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
Hi ,
I have a simple File - logging class which I plan to use in a COM Server.
I also have a template based Singleton Class ( CSingleTonT) that takes this object such that there is only 1 instance of this in the system.
I am trying to add a CComCriticalSection protected member variable and inspite of including the header for this I am getting a compilation error
<br />
#ifndef _CLOGGER_H<br />
#define _CLOGGER_H <br />
<br />
#include "atlbase.h"<br />
#include "atlcore.h"<br />
..<br />
..<br />
<br />
<br />
<br />
class CLogger <br />
{<br />
public : <br />
<br />
<br />
<br />
protected : <br />
<br />
<br />
bool m_bInitialized ; <br />
ofstream m_logfile; <br />
<br />
CComCriticalSection myCS ; <br />
<br />
<br />
string strFileName ; <br />
<br />
<br />
};<br />
<br />
Now these are the compilation errors I get
1>d:\code\com\clogger.h(172) : error C2146: syntax error : missing ';' before identifier 'myCS'
1>d:\code\com\clogger.h(172) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\code\com\clogger.h(172) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
The definition for CComCriticalSection exists in atlcore.h which is included .
Any help is appreciated
Engineering is the effort !
|
|
|
|
|
Browse into "atlcore.h ", and check if there is any condition around the declaration of that class type. For example:
#if (WINNT_VERSION > 5001)
class HelloEx { };
#else
class Hello { };
#endif
PS: I don't have VC++ at home now. Sorry!
Maxwell Chen
|
|
|
|
|
act_x wrote: CComCriticalSection myCS ;
I just created an ATL server project by Wizrad, and it compiles fine.
The class CComCriticalSection is in the namespace ATL. Maybe you should do this way if your class is not derived from built-in ATL classes:
ALT::CComCriticalSection myCS;
Maxwell Chen
|
|
|
|
|
Hello,
How do u get double pointers address in memory?
<br />
char **String;<br />
I need to get String's address?<br />
is there a way to get it?<br />
thanks
It is never late to learn
|
|
|
|
|
Gofur Halmurat wrote: How do u get double pointers address in memory?
AFAIK, address of any data type can be obtained by address-of operator (&).
obviously, &String.
|
|
|
|
|
My Application crashes by displaying the message,
"The instruction at 0x00427289 referenced memory at 0x7ffdf000. The memory could not be read. Click OK to terminate the program".
The Application works fine with debug build but fails with release build.
If anyone have any idea with this please let me know.
Thanks
Thanks a lot
|
|
|
|
|
|
Hey man, that was copyrighted.
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
|
|
|
|