|
No problem. I've used (hand-coded) GAs for a couple of applications but not for jobshop. There are a number of free libraries around, IlliGaL is a good starting point. Writing a simple jobshop GA shouldn't be very hard.
Good Luck!
|
|
|
|
|
Hi
It looks like you are a student and have to submit assignment. right!
well it looks like you too have to pull nights now to complete assignments. right
|
|
|
|
|
Hi guys
i want to know how to draw a chessboard on a form. any idea?
|
|
|
|
|
I think the best way to do that is to make your own custom control (derived from CWnd). Look at the section in the MFC for miscellaneous controls to get some examples of custom controls.
|
|
|
|
|
well thanks for reply.
i am trying to create sudoku solver and needs some grid kind of control.
Opps! it looks like i have to pull nights again.right!
|
|
|
|
|
That's funny because some weeks ago I started to make a Sudoku game and I made already a small control for the grid. There is not a lot of things in it and it is still a little bit uggly but if you are interested, I can send you the code (not now because it is at home). But I stopped the project because I couldn't find a good way to hide some specific cells in order to have a specific solution grid (generating the grid was ok).
But don't expect a control with excellent graphics
|
|
|
|
|
i am happy to know you too are intrested in sudoku. well i'll be glad to have a look at your grid control. pl. send it to this email add(vikramsharma @ gawab.com)
thanks again for help
|
|
|
|
|
Cedric Moonen wrote: That's funny because some weeks ago I started to make a Sudoku game...
I love that game, and play it every chance I get. I even suggested to our local newspaper to start running it. The editor said I was the first to suggest it, which is a polite way of saying, "Snce the interest is so low, probably not." About a month or so later, I saw the first puzzle! Whether I had anything to do with it or not, I'll never truly know.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
|
opps! you are really good at information providing. good man. you are mind blowing dude.
you redirected me to heaven.
thanks a lot.
|
|
|
|
|
|
|
maintain a matrix to draw the Chess board
i see! nice idea. can you let me know how to drow this way.
I guess :
-create 2D array.
-fill it
-create rect, do maths, then create rectangles.
but is this ok for sudoku like game where i have to insert numbers in the rectangles.
pl. let me know.
thanks for idea and reply
|
|
|
|
|
Look at the link Rage submitted you. It seems that this control is far more better and complete than the one I made. I suggest that you download the source code and have a look at it.
|
|
|
|
|
ok. well thanks for your reply and advice. you guys are really angels. you helped me a lot.
|
|
|
|
|
Hello,
I can assume the issue I'm about to raise, was raised before, but I couldn't find it. So I apologize from ahead if it annoys anyone.
I'm working with the Visual Assist of the whole tommato group, for a while, and only lately I saw other tools of the kind, like CodeRusher, and ReSharper. I'd like to know which tools of the kind do exist and work with Visual Studio 6 (not the .NET) and if there is a comparission of the advantages and disadvantages of those tools.
Thanks a lot,
Guy.
If you can't beat them, join them!
|
|
|
|
|
When I used Visual C++ 6 sometime back, I always used two tools to enhance the IDE features. Those were Visual Assist and WinTabs.[^]
There might be some others as well but these two were sufficient for me at that time.
Regards,
|
|
|
|
|
how can i convert a statement of mathlab
I = double(imread('c:\images\baby.bmp'));
[height, width]=size(I);
into VC++?
Such command lines are input a picture and output a matrix of value. Who can help me? Please help!!!
|
|
|
|
|
Size information are contained in the header of the bitmap file.
You need to:
Read in the file as a "normal" file into a buffer.
In this buffer, the first bytes will be the header of the bitmap file, describing height, width, color information, etc.. google for bitmap header to get the exact description. So all you need once you have read in the header is pick up the size information into an array.
Hope this helps
~RaGE();
|
|
|
|
|
if my file is jpg format, is it as same as bmp file? Could u provide the example from codeproject.com? Thanks.
|
|
|
|
|
Yes, if you only need the size information, it is also contained in the header of the file.
However, if you want to work actively with the image itself, it is far more complicated. As you may know, jpeg are packed, and you need to depack the information after reading.
I would suggest to use a library that can already read bmp, jpg, and so on, or use functions from the GDI+. Are programming C, C++ ? Using MFC ?
~RaGE();
|
|
|
|
|
actually, i want to get the each pixel value from a jpg picture using MFC/VC++.
i can't find pixel values from file header. can u help me?
|
|
|
|
|
Hi,
I have made an application to send some commands. For each command, there are different parameters to be sent. Now I have edit boxes and check boxes associated with each button which sends the command.
The application looks clumsy, too may controls.
I am trying to make it like
a list box with all commands listed. when a command is selected, the appropriate controls appear like say two text boxes for length and time. when another command is selected, these controls go and some other controls appear.
I don't have idea about how to dynamically place and remove controls depending on selection and no idea about using the list box . List box I think I can find out with a fewg googles.Please help on the other part !!
- KK
|
|
|
|
|
To create your controls dynamically, you can use the member function Create in which you have to specify the ID of the control, the position of the control, ... So, you don't have to place them wiht the resource editor.
For the listbox, you can find (I think) a good tutorial on this website (search in the MFC section)
|
|
|
|
|
There are two ways of operating here :
1. As Cedric suggest, create the control you need dynamically, e.g. on the fly.
2. Create all controls in the resource editor, and hide/show them using the ::ShowWindow() API with SW_SHOW or SW_HIDE as parameter. This will look completely messy in the resource editor, but if you only have say two or three controls overlapping, it can still be handled.
The first solution is by far the best.
~RaGE();
|
|
|
|