|
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
|
|
|
|
|
i know that one can find this data under HKEY_DYN_DATA on 95 & 98. on NT one can use PDH counters.
i was wondering whether there is *one* way of doing it on all machines.
|
|
|
|
|
How to get Hwnd and DeviceContext of a splitter window ?
|
|
|
|
|
A very simple ISAPI Extension Program used to data submited by a Form. I tried with two submit style.when i use , everything is ok. but when i use , there is error saying "Can't find the page". Why? Desperatly need help! Thank you in advance for your time!
|
|
|
|
|
from ISAPI's point of view there is no difference. But think of what happens from a CGI point of view, and i think this will answer your question:
picture this simple html form:
<form action=.... method=post>
<input type=text name=PhoneNumber>
<input type=submit name=submit value="Send">
</form>
when that form is submitted the Post data will be this:
PhoneNumber=4535435&submit=Send
Now picture this form:
<form action=.... method=post>
<input type=text name=PhoneNumber>
<input type=image src="images/button.gif" name=submit>
</form>
when this form is submitted, the post data will be this:
PhoneNumber=4535435&submit.x=45&submit.y=122
When you use an input type=image, their are two more form values entered, name.x and name.y which are the coordinates in which the image was submitted.
Therefore, my guess it that your page is doing wierd stuff in decoding this input.
|
|
|
|
|
Thanks a lot. I got the right result immediatly. And i found myself not understand sth enough. Because of you, i will have a better weekend.
Thank you once more!
|
|
|
|
|
Hi all,
the exe I've just coded is used by an ASP page running on IIS to generate a zip file containing some XML goo, for download by a client
problem being, the file I create is not public... so it looks like I need to use SetFileSecurity() or SetNamedSecurityInfo() to make it visible
the trouble is, i'm totally lost trying to use these functions- can anyone point me towards a good, quick example ?
thanks
peace
|
|
|
|
|
Hi
iam a newbee in Vc++
now i completed one project and facing some problems regarding
memory leakage .
i tried with CMemoryState class
but still some memoryleak is remaining
so iam planning to use some tools like bounds checker
but i dunno how effective these kinda tools .
pls give me your suggestions and some alternatives if any
thanx in advance
software Engineer
|
|
|
|
|
I'd suggest unless you're making money programming ( which is scary if you're completing your first ever project ) you can't afford Bounds Checker.
It would help if you posted some code/symptoms. How do you know it's leaking ?
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.
|
|
|
|
|
Check to make sure that all your new and deletes match up. Make sure that if you are allocting arrays with new that you use the delete [] syntax.
Visual C++ is fairly good at tracking the memory leaks of objects. Does it give you memory leak information in the debug output window when your app exits. It usually shows the data that hasn't been freed. This will give you a starting point where to look.
hope this helps,
Michael
|
|
|
|