I am developing an assambly .It is not a user control,but i want use System.Drawing.Color class. How should i do ?
waiting for answer.
thanks
SIMPLE IS BEAUTY
I am developing an assambly .It is not a user control,but i want use System.Drawing.Color class. How should i do ?
waiting for answer.
thanks
SIMPLE IS BEAUTY
Then What about Wapper(t)? And How does it modify the Adderss of &m_aT[nIndex]? SIMPLE IS BEAUTY
Excuse me. Today,I study the WTL Library's CSimpleArray class source code,I find the following code:
template<class T>
class CSimpleArray
{
T* m_aT;
...
class Wrapper
{
public:
Wrapper(T& _t) : t(_t)
{
}
template
void *operator new(size_t, _Ty* p)
{
return p;
}
T t;
};
void SetAtIndex(int nIndex, T& t)
{
new(&m_aT[nIndex]) Wrapper(t);
}
...
}
I can not understand the syntax about "new(&m_aT[nIndex]) Wrapper(t)":confused:,anyone can explain it? thanks first. SIMPLE IS BEAUTY
Hi,I donot think it is a question. First ,you should know some concepts. Interface means the assembly of a bunch of functions.It is not an object.One Interface has one UUID called as IID_XXX. CoClass stands for object which implements some interfaces.One CoClass has one UUID called as CLSID_XXX Library looks like a DLL or EXE file.One library can contains and exporses one or more CoClass. So the solutions of your question can be like the followings: No.1 You create a library "La",which contains two coclasss coA and coB,which both implements the interface Interace0.In your application you can create object coA or coB then query their's interface0 to execute some method. No.2 You can create two library "La" and "Lb",which contains coA and accordingly.the following steps is same to No1 SORRY My poor words.:-D SIMPLE IS BEAUTY
Thank you very much.See you later? SIMPLE IS BEAUTY
Here is the message from VC Debug tool ,Can somebody tell me What does it mean?:eek::eek: First-chance exception in DMSClient.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. SIMPLE IS BEAUTY
THANK YOU Mr. Roger Wright. SIMPLE IS BEAUTY
I use VC to develope some application. The intelligent tip is very useful when I type a object name and then type a dot or ->,it lists the member functions and member variable. But sometime it does not work,the reason may be my code is wrong or others.However sometimes my code is right , it also does not work .For an example LISTVIEW Control ,When I insert a item , I defined a lvItem which type is LV_ITEM ,the intelligent tip does not work at this variable.Why??:eek::eek: SIMPLE IS BEAUTY
Hi,Good morning, I have a small question .Now I want to catch the net event when the netlink breaks down,how to do...... thanks Zbuilder jianshez@bjxj-xjgc.com;) DREAM FOR BRIGHT FUTURE