|
We discuss native programming here. You may want to ask this question in one of those managed code forums.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: in one of those managed code forums
You may add:" personally, I have nothing to do with such rubbish!" to express further your disgust.
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]
|
|
|
|
|
Well put. Now there's someone who knows me better.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
You must be ask on the Managed C++/CLI[^] but why you dont want to use of c++ instead C#?
|
|
|
|
|
Because he wants to go against the tide.
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]
|
|
|
|
|
And you are with us or with C#(against the tide)!?
|
|
|
|
|
Hi all,
Thanks to everyone for sugestions.
I will ask same question in managed C++ forum.
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|
|
Dear all
i am doing image processing transformation, who has any angle rotation code, can provide it with me.thanks a lot.
|
|
|
|
|
The CodeProject 's article search engine usually does miracles [^].
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]
|
|
|
|
|
|
how can i get system date in (mm/dd/yy) format.........?
|
|
|
|
|
|
what about
TCHAR szSysTime[] = {_T("mm/dd/yy")};
SYSTEMTIME st;
GetSystemTime(&st);
_stprintf(szSysTime, _T("%02d/%02d/%02d"), st.wMonth, st.wDay, st.wYear % 100);
?
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,
I have a SDI application that is written in MFC. I am just wondering, how to convert this application to be OLE capable application so I can embed it into my C# application?
What I am trying to achieve is to have my main application (written in C#) with my MFC interface inside my main application interface.
Is it possible? If yes, is there any link or tutorial site that I can go to?
Thanks for any help in advance...
Cheers
|
|
|
|
|
Why don't you convert it directly to C# code?
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 Pallini,
The application is too complex. We've bought the code from 3rd party company for 100K. I kind of hoping be able to just convert it to OLE object so can be used within our application.
Any idea?
Cheers
|
|
|
|
|
Hi all,
I am getting this error below now what can I do to eliminate this as I dont want to use MFC because I am making a WTL/ATL project.
fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
Thanks,
Jayjay
|
|
|
|
|
I don't really understand why you are creating a MFC application if you don't want to use MFC ?
|
|
|
|
|
Hi Cedric,
sorry if there are confusions there, what i mean is i am creating a atl/wtl application not MFC.
Thanks
|
|
|
|
|
Are you building MFC application?
If you go to your project properties under Configuration Properties | General, there is a setting whether to use MFC and/or to use ATL.
If your project is not a MFC application, you should set the Use of MFC to Use Standard Windows Libraries
Cheers
|
|
|
|
|
Hi Ryu,
Its set to use Standard Windows Libraries i cannot use MFC i must only use standard windows libraries, atl and wtl.
Thanks
|
|
|
|
|
Thanks for the Information.
|
|
|
|
|
Hello everyone,
When debugging the following code in VS 2008. I think the vtable of object instance z should contain 2 sub-vtables for IFoo and IGoo, the sub-vtable for IFoo should contain func/foo and the sub-vtable for IGoo should contain func/goo), but why actually it only contains 2 sub-vtable, and each of them has only one function item func?
class IBase
{
public:
virtual void func() = 0;
};
class IFoo : IBase
{
public:
virtual void foo() { cout << "IFoo : IBase" << endl; }
};
class IGoo : IBase
{
public:
virtual void goo() { cout << "IGoo : IBase" << endl; }
};
class Zoo : IFoo, IGoo
{
public:
virtual void func() {cout << "Zoo : IBase" << endl; }
};
int main()
{
Zoo z;
return 0;
}
thanks in advance,
George
|
|
|
|
|
You didn't specialize those functions in the Zoo class. vtable are used to redirect a function call to the function of the child class which specialize this function. Here, there's no need to redirect the function call because neither of the child classes specialize the function.
I guess this is the reason (it's only a guess) why it doesn't appear in the table. Remember that the table is filled by the child classes when they are being constructed. So, if the child class doesn't specialize the function, there's no need to add it to the vtable.
|
|
|
|
|
Hi Cedric,
1.
I am confused about your term of "specialize this function". Do you mean overriding?
2.
"vtable are used to redirect a function call to the function of the child class" -- I disagree vtable is used for redirecting to child class, but I think it is used for find the actual function to call through run time type identification. We may call the function is current class if we have overriden function in current class, and we may call function in based class if we have not overridden the function in current class.
But I think whether or not we override, all visible virtual functions (including inherited ones) should be in vtable. Any comments or ideas?
regards,
George
|
|
|
|