|
See here for starters.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
hi,
Is anybody knows how to convert icon into bitmap using either "public: Bitmap* ToBitmap()" command or using anyother command in vc++.
thank you
|
|
|
|
|
rgchezhian wrote:
Is anybody knows how to convert icon into bitmap using either "public: Bitmap* ToBitmap()" command
I presume it would be something like:
CIcon icon;<br />
Bitmap *bitmap = icon.ToBitmap();
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
i think there is no class as CIcon in vc++.
|
|
|
|
|
|
can anyone help me in making a very nice interface of traveling salesman problem using genetic algorithm. its a user defined interface wherein the user will input sets of points and the program will be to create a graphics about what the user have inputted. hope somebody can help me with this im just a student and i really am not yet familiar with the language hope someone will reply me to this urgently. thanks a lot in advance.
lester
|
|
|
|
|
|
any nice visible interface in the net. an example of a user-defined representation? pls help me!
lester
|
|
|
|
|
I think one of the projects here on CodeProject uses this library.
I have not used it in a project yet.
|
|
|
|
|
how do i get the directory of internet explorer so i can launch a help file in html format using winexec?
/\|-||\/|/\|)
|
|
|
|
|
Halawlaws wrote:
...using winexec?
Use ShellExecute() instead.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
DavidCrow wrote:
ShellExecute()
what parameters does it take?
/\|-||\/|/\|)
|
|
|
|
|
Halawlaws wrote:
what parameters does it take?
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
can u please write the function with the parameters for a file named C:\help\index.htm?
coz it didnt work
/\|-||\/|/\|)
|
|
|
|
|
Halawlaws wrote:
coz it didnt work
What does your code look like that did not work?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
ShellExecute(NULL,"open","C:\\help\\index.htm",NULL,NULL,SW_SHOWDEFAULT);
/\|-||\/|/\|)
|
|
|
|
|
I assume a browser window did not open the specified file. What value did ShellExecute() return?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
DavidCrow wrote:
assume a browser window did not open the specified file.
Yes it is true
the value is 2
/\|-||\/|/\|)
|
|
|
|
|
|
Halawlaws wrote:
the value is 2
Look at the link I provided you earlier. 2 = ERROR_FILE_NOT_FOUND . That should be easy enough to diagnose.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
but it does exist i checked 10 times
/\|-||\/|/\|)
|
|
|
|
|
Does it work with other .htm files? If you open Windows Explorer and go to the c:\help folder, does double-clicking on the index.htm file open the browser? Are you sure the extension is .htm and not .html? Have you checked the file association in Windows Explorer to make sure that .htm files have an associated application?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
no for the 1st question and yes
/\|-||\/|/\|)
|
|
|
|
|
What you have should work. Given that it does not, something else is amuck with your machine. This is just a grasp but what if you replace the first parameter with a real window handle instead of NULL ? This way if the browser needs to report an error, it can.
Windows Explorer might be compensating for something that is missing. Use FindExecutable() to retrieve the name of the .exe that is associated with the .htm file.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Don't worry it worked apparently it turned out that the file path was correct but the file name of my file is index.html and not index.htm.
Thanks for ur help in debugging and sorry for wasting your time
ciao
/\|-||\/|/\|)
|
|
|
|