|
Thank you all for your info and security concerns. This is just a personal program, I am not designing it for public release. I only allow TotalIO to run during the timeframe that I need it. I will have to give GiveIO a try, since that should be much more secure, thanks for that tip. And Steve's info on the allowed port range also clears it up: "up to about 0xf00". As my LPT port is on port 0xCD00 - thanks to the add-on card. It's no wonder TotalIO "isn't doing it's job" if you will.
Again, thank you all. TotalIO's failure, and your comments, is like a wake-up call to stop doing the I/O the quick and dirty way.
|
|
|
|
|
|
I have a series of radioboxes (not grouped); and I can find out which one is selected by the ON_BN_CLICK, but exactly how do you uncheck that radio button? the MSND is confusing on that issue to me.
I need to be able to uncheck a user's prior selection. IDC_WORK_TYPE (radio button).
A C++ programming language novice, but striving to learn
|
|
|
|
|
non-MFC - send the BM_SETCHECK message with the state as BST_UNCHECKED
MFC - button.SetCheck (BST_UNCHECKED)
Judy
|
|
|
|
|
I would also look at CheckRadioButton. This is MFC and not-MFC.
After all, it's odd to have NO radio options selected. If that's really what you want, you can have a final radio option labelled (eg) "None". Otherwise, it will just get confusing.
Iain.
Iain Clarke appearing in spite of being begged not to by CPallini.
|
|
|
|
|
The reason for wanting to uncheck it is that after the user has made a selection, finishing the data entry for one person, the user has an option for entering another "record" by selecting the [More] button. Naturally I don't want a previous selected radio button checked when the user is entering a completely different "record".
A C++ programming language novice, but striving to learn
|
|
|
|
|
Autoit version 3 has very simple functions that I thin can also be done in visual basic or v C ++.
Since autoit is C++ oriented i think this isn't a problem. The main types of functions I want to use are pixelchecksum which finds an image checksum of an image outside the developer envirornment, then functions like winactivate that activates external windows outside developer env., and also sendmouseclick which sends mouseclicks to ext windows outside devel. env.. I have asked many people and noone seems to know. If you could just tell me how that would be great.
|
|
|
|
|
|
i found mouseinput which should work for the mouse parts. I just need a way to find a checksum of a region of pixels and a way to create a library and then call on these images and use their library definitions in my script.
Thanks for the help.
|
|
|
|
|
is mouseinput not available for vb?
|
|
|
|
|
I found out I don't need to use pixelchecksum. I just need to use optical character recogniton to recognize the number and symbol posted on each image. Then based on the color of these two symbols for each image i can know exactly what image I am looking. At. Does anyone know how to have an ocr program run with a new application in vb or vc++ that can recognize numbers 0-9 letters a-z and four symbols(a heart, a club, a spade, a diamond) Through screen scraping and optical character recognition in an external game window seperate from my new app?
|
|
|
|
|
hello veryone,
how to call coding in C++ to mathlab?
|
|
|
|
|
See here[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Have a look at [^].
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
|
|
|
|
|
|
ashwiny wrote: how to convert c++ coding to mathlab?
Exactly[^]
led mike
|
|
|
|
|
Why you delete your question?
|
|
|
|
|
actually i got repost the question again sir
|
|
|
|
|
Ok .
|
|
|
|
|
Hi,
How can we open a file in a particular editor by default.
Eg: I have installed Textpad.exe (Text editor software) in my system. After insalling this software all text files(*.txt) in my system are changed to this software file format(icon is changed to Texteditor icon automatically). when i double click on any text file it is automatically opening in Textpad editor.
where do we have to set this option.
Is it installer option ?
Regards,
Sanjeeva Kumar.
|
|
|
|
|
Often, applications include a user interface to set what file
types open the application.
The association between a file type and an application is stored
in the registry. For app's that don't have a UI to change this
association, you can modify the registry yourself.
See Windows Shell - Launching Applications[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
Right click on the text file. And click on "Open with" option and then "Choose Program". Now select the editor in which you want to open your file, Check the check box "Always use the selected program to open this kind of file". Click "Ok". Now onwards the file will open in that editor always.
Regards,
Deepak
|
|
|
|
|
Hi Deepak,
Thanks for giving the solution. Actually i want to do this by using code. As Default after installing my application all the files related to my application(Output files or the files which can be opened by using my application) should change to my application icon automatically and when i double click on any file it should open in my application it self.
I don't know what code i should write for achieving this...
Regards
Sanjeeva Kumar.
|
|
|
|
|
Does anyone know why I get this error when I copied the code directly from MSDN:
TCHAR* pstrName = _T("C:\\test\\SetPath_File.dat");
// open a file
HANDLE hFile = ::CreateFile(pstrName, GENERIC_WRITE, FILE_SHARE_READ,
NULL, CREATE_ALWAYS, 0, NULL);
//=================================== get ERROR_PATH_NOT_FOUND error here!
if (hFile != INVALID_HANDLE_VALUE)
{
// attach a CFile object to it
CFile myFile(hFile);
// At this point, myFile doesn't know the path name for the file
// it owns because Windows doesn't associate that information
// with the handle. Any CFileExceptions thrown by this object
// won't have complete information.
// Calling SetFilePath() remedies that problem by letting CFile
// know the name of the file that's associated with the object.
myFile.SetFilePath(pstrName);
// write something to the file and flush it immediately
DWORD dwValue = 1234;
myFile.Write(&dwValue, sizeof(dwValue));
myFile.Flush();
// destroying the CObject here will call ::CloseHandle() on the file
}
A C++ programming language novice, but striving to learn
|
|
|
|
|
Does the "C:\test" folder exist?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|