A way is as follows:
#include <fstream.h>
char myDummy[100];
ofstream outfile("C:\\Copy\\test.txt", ios::app);
// Opens file in an append mode
outfile << Edit1->Text.c_str() << endl;
// c_str() changes Edit1->Text to char.
outfile.close();
Finally figured it out. Code supplied below. Functions are in <shellapi.h>
Graphics::TIcon *myIcon = new Graphics::TIcon();
HIMAGELIST SystemImageListHandle;
HICON SytemImageListIconHandle;
SHFILEINFO FileInfo;
if (OpenDialog1->Execute())
{
// Get Large Icon System Image...
Thanks for the tip. If all else fails I will do that. However, I am trying to make a game menu program and I would like to automate the process. Currently on p18, cag3 gave a code snippet to question "get icon from api". I seem be be able to get the handle of the System Image List...
When I tried my wheel mouse on a form with a vertical scroll bar, it worked fine. If the mouse pointer was on a component like a combo box however, the form will not scroll. Thus, it may be a function of what you have on the form. You might try putting the mouse pointer on the form name at...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.