|
You need to use ::GetClassName. This will tell you the window class that was registered with windows. "EDIT", "BUTTON", "COMBOBOX", "LISTBOX" are common ones, use Spy+ to find out others.
|
|
|
|
|
Someone clicks file and save and alot of individual text files are saved. How can I bundle those text files into one (1) single file that has the extension .abc or .dae or whatever, just some extension other than a .zip? I just want to bundle the files together some how and then when they click retrieve unbundle that file into it's little individual text files.
Any ideas? Any response any one can give me will be greatly appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
If you can separate the individual text files with some unique character sequence (like 15 newlines in a row, or some other sequence), you can just write the texts to the file one at a time, writing an end-sequence after each text. When loading you read one char at a time until you hit the end-sequence. Then you start a new text and read on into this new one.
Another possibility is to make a header to write to the file first. It contains the number of texts in the file, their sizes and their starting offset into the file. Reading the file should be trivial.
Cheers
Steen.
"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
Could I use the lParam value of the TVITEM struct to store a pointer to a Cobject? If so, how would I do this? Thanks,
WAVK
|
|
|
|
|
treeitem.lParam = (LPARAM)*MyObj;
|
|
|
|
|
|
How to read/write CString to CFile line by line?by using Edit box.The data will be displayed in the List box of the file.
Delete the string from the list box that will be deleted in the file as well.
|
|
|
|
|
Use CStdioFile wich is Public CFile...
this one has a Methods:
Readstring -> Reads a single line of text.
WriteString -> Writes a single line of text.
greetz
HackMan
|
|
|
|
|
Hello;
I want share a pointer variable between two process. How can i pass a pointer variable from process to another process? And how can i handle shared pointer at destination process ?
Thank you...
|
|
|
|
|
What is it you are trying to accomplish? Can you just send the data and not the pointer? You can use shared memory, mem file, or clipboard.
|
|
|
|
|
I want to export variable to another process.
|
|
|
|
|
Shared Memory is the good solution. Once We have done the
same job in Linux Operating Sysytem.
|
|
|
|
|
|
Look up WM_COPYDATA in the MSDN. It's the simplest solution.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Sharing a pointer between processes will not work. Process have their own memory space, and addresses in one are meaningless in another. Instead, use WM_COPYDATA as Christian suggested to transfer the variable, or else use shared memory. Look up CreateFileMapping() as a starting point on creating a shared memory block.
--Mike--
http://home.inreach.com/mdunn/
Ford: How would you react if I said that I'm not from Guildford after all, but from a small planet somewhere in the vicinity of Betelguese?
Arthur: I don't know. Why, do you think it's the sort of thing you're likely to say?
|
|
|
|
|
hi,
I want to change the menu position at run time (Left side or right side of Dialog)in VC++. As my application is multi-language, if User selects English then Menu should be at right side and if he selects Arabic then menu should be at right side of Dialog.
I know i can set menu properties "Right to Left Order Alignment" or "MF_RIGHTJUSTIFY " at design time. But i want to set them at run time.
Is there any Window API, CMenu Function, or CWnd Function that sets this property at run time.
I am not creating menu at run time, rather menu is alraedy created. I only want to change its position at run time.
Have a nice Wishes For My Helper
|
|
|
|
|
I am developing a project in VC++ regarding mathematics using VC++/MFC. I want to plot "graphs" of various algebraic and trignometric expressions. If you know any article or if you have source code for "exprssion plotting" then please let me know through this forum or e-mail me. I shall be very thankful to you. There are few articles on codeproject that deals with statistical data plotting but not a single that plots the "expressions".
Imran Farooqui
email: imran@imilabs.private.as
|
|
|
|
|
Hi,all,
I want use a 32X32 halftone table to instead system halftone ,it's a .bin file
but i don't know how to do that.
Could anybody help me, thanks.
|
|
|
|
|
I want to read the data from the file and placed in the ListBox and delete the data from the file as well and up date the new file.
|
|
|
|
|
What kind of data is in the file? Is it stored in a text or binary format. If it's text then you can use CStdioFile::ReadString to read the data. Are you wanted to delete indivual records from the file, or the entire contents. If it is the entire contents, you could just open the file with CFile::modeCreate.
Michael
|
|
|
|
|
I want to store string type of data in file using edit box and wnat to read that data from the file ,in the list box when i delete the single record from the list box the data must be delted in the file too.the list box will be on the same dialog where edit box are placed.
|
|
|
|
|
Is there a lot of data?
If there is only a little data, I'd store the data in a text file with a CRLF at the end of each line.
I'd then use CStdioFile::ReadString to read each line and store the data in a collection class.
I'd fill the list box with data from the collection. When I deleted the data from the list box, I'd remove it from the collection too.
I'd then recreate the file and write out the contents of the collection.
Michael
|
|
|
|
|
Dear all,
I am writing a program embedded with a Web Browser.
I need to check the existency of the URL before I browse to the particular page.
At the moment I am using InternetOpen followed by InternetOpenUrl and InternetReadFile. For my local network ( without going through proxy ), InternetReadFile will return me the information of the particular page if it is found, and 404 error page when link not find.
But when the link is not our local network, we need to go through our proxy server which require username and password, and I received Error 407 for Authorisation as the result page from InternetReadFile.
I have tried to use InternetSetOption on INTERNET_OPTION_PROXY_USERNAME and INTERNET_OPTION_PROXY_PASSWORD after I got the HINTERNET handle from InternetOpenUrl but since the handle has already pointed to the 407 page, InternetReadFile still return the same buffer.
Did I do anything wrong ? or how can I setup the proxy username and password before I called InternetOpenUrl ?
I know that InternetOpenUrl will point to a right pointer as long as my embedded browser has prompt for the proxy username and password ( IE default setting ) and return the right page without the need of InternetSetOption. So there must be something manually I can set before I called InternetOpenUrl right ?
Thanks for all your help.
Regards,
Kathy
|
|
|
|
|
Hi !!
i want to determine the %CPU usage of my system at any given time. i have examined the PDH counters but i think they are NT Specific and i need a solution that can run on 95 & 98 as well.
any suggestion??
|
|
|
|
|
In fact I do not have any solution but I've read a little bit on that and the windows function who do that are undocumented function... so it's may be hard for us to find how to do this...
Remi Morin
Rmorin@Operamail.com
Remi.Morin@Lyrtech.com
Windows 3.1 était à un pied du précipice, Windows NT & 95 furent un gras pas vers l'avant
|
|
|
|