|
Hi every1, I need help related to image recognition using Genetic Algorithm.(GA)
Would greatly appreciate if anyone can send me any related information eg source code or notes that I can read or used as I am quite confused by the GA implementation in C++.
How an image is recognize/identified using GA?
Simple comparison like character recogntion, Neural network can performed task by training to identified the character, do GA able to perform similar task?
Can email to ray_luee@yahoo.com
Thanks
RayLuee
|
|
|
|
|
I have decided to bite the bullet and find out how to convince MFC that passing parameters to implement IMPLEMENT_DYNCREATE is feasible.
In a nutshell - IMPLEMENT_DYNCREATE access only the default constructor which has no parameters. Tiring to hack the RUNTIME_CLASS and the whole chain down to creation of the object is a nightmare.
The basic for this is that I have a need / want to use same view class with different "parameter". I am basically tired of building a copy of the view class and modifying its methods as required.
There are few articles in here which accomplish this using various approaches - RTTI, "Generic Class Factory" (no longer supported by the author) etc.
I am asking the forum to share experiences with these approaches.
Recommendations, comments etc.
Thanks for your help.
Vaclav
|
|
|
|
|
Hello all. So I have these three combo boxes. According to certain validations, I have to select one of them. I thought that simply calling CComboBox::SetFocus would be enough, yet it is not working. I also tried sending a WM_ACTIVATE messages to the combos, with the same results.
Any thoughts would be really appreciated. Thanks in advance.
FG.
Hope is the negation of reality - Raistlin Majere
|
|
|
|
|
From where you call this?
- NS -
|
|
|
|
|
From the CDialog::OnInitDialog method.
Hope is the negation of reality - Raistlin Majere
|
|
|
|
|
You should retun FALSE from OnInitDialog, if you explicitly set the focus. And use GotoDlgCtrl instead of SetFocus in Dialogs.
- NS -
|
|
|
|
|
I feel a little stupid now. I don't use wizads, but now that you mentioned it, I remebered this "return TRUE unless you're setting the focus" comment that the wizards places in the "return" of the OnInitDialog .
Thanks a lot!
Hope is the negation of reality - Raistlin Majere
|
|
|
|
|
This[^] article may interest you.
Steve
|
|
|
|
|
Thanks, very interesting indeed.
Hope is the negation of reality - Raistlin Majere
|
|
|
|
|
Hi,
I have a dialog based application, which should act as a CSocket server.
In short my need is, if some client is connected to the server, OnAccept of the CSocket should be directed to the dialog class member function.
I am not sure about the right method to do so.
Thanks in advance.
- NS -
|
|
|
|
|
You can store a CWnd*, HWND, or whatever is appropriate in your socket class and use
that to send messages to the window/dialog.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for the replay. Is this the only way?
I tried to dervie my dialog class from CDialog and CSocket. But failed...
- NS -
|
|
|
|
|
Do you really need them to be together? Why not separate another class and make that one your CSocket derived class? If your concerned on the variables/objects you need in your dlg class, just pass the class pointer to the CSocket class.
|
|
|
|
|
My concern is that then there will be a mapping from csocket class to the dialog class. I like to avoid it.
- NS -
|
|
|
|
|
Why did the multiple inheritance fail?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
It shows compilation error.
There is some ambiguity problem since both are from CObject.
- NS -
|
|
|
|
|
I'm personally not a fan of CAsyncSocket and definitely not CSocket.
If you don't like adding a CWnd* or HWND to the socket class then it's
much easier to use the socket APIs directly.
A SOCKET member can be added to a window/dialog class and Using WSAAsyncSelect
you can get socket notifications directly in the window.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank you.
I choose CSocket, because I dont have much knowledge in sockets. So for easiness I found CSocket is good.
I think I have to learn more to do better...
- NS -
|
|
|
|
|
Hi all
can someone help me?
I want to make a toolbar with nice icon (48x48 256 colours) but when i copy my icon, the visual c++ make my icon 16 coluors. Is possible to have icon with 256 coluors?
Thanks in advance
|
|
|
|
|
vasmvr wrote: when i copy my icon, the visual c++ make my icon 16 coluors.
You are probably placing an icon of 256 colors in to 16 color icon. If so you have to add a new icon of 256 colors. It is available in menu, Image > New Device Image.
- NS -
|
|
|
|
|
Thank you, but Where is menu, Image > New Device Image?
|
|
|
|
|
You just open the icon from resource. Could you?
- NS -
|
|
|
|
|
I can't see the menu image.....i'm using visual c++ 6.0.
|
|
|
|
|
ok... can you just show me the caption of the MSDEV?
eg..MyDlgTestApp - Microsoft Visual C++ - [MyDlgTestApp.rc - IDR_MAINFRAME (Icon)]
- NS -
|
|
|
|
|
MyApp - Microsoft Visual C++ - [MyApp.rc - IDR_MYAPP [Italian (Italy)](Bitmap)]
This is the caption
|
|
|
|