|
|
#1 |
|
New Member
Join Date: Jul 04
Posts: 3
![]() |
How can I send data (strings) between 2 standalone apps?
|
|
|
|
|
|
#2 |
|
Frenzied Member
Join Date: Aug 02
Location: Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
Posts: 1,087
![]() |
Need to elaborate a bit on your problem. You want to send text to another application from your app? Or send text/data using a connection such as winsock to a server side app.
__________________
:::`DISCLAIMER`::: Do NOT take anything i have posted to be truthful in any way, shape or form. Thank You! -------------------------------- "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe "Finaly I can look as gay as I want..." - NoteMe Languages: VB6, BASIC, Java, C#. C++ |
|
|
|
|
|
#3 |
|
Loquacious User
Join Date: Aug 02
Location: Idaho
Posts: 12,058
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Re: send info between apps
Also, do you have the ability to alter both programs. If so, you would probably get quicker answers in a different forum, since the solution would probably be winsock rather than API.
__________________
My usual boring signature: Nothing |
|
|
|
|
|
#4 |
|
Software Eng.
Join Date: Mar 99
Location: Canada
Posts: 11,287
![]() |
Re: send info between apps
If they're on the same machine, send a WM_USER + X message. You can pass the string in the lParam parameter.
Then subclass the receiving app, and check for the WM_USER + X message. |
|
|
|
|
|
#5 |
|
Hyperactive Member
Join Date: Sep 02
Location: Okinawa, Japan
Posts: 271
![]() |
Re: send info between apps
Look at CreateFileMapping API. Passing it a null for the name of a file will let windows know you want share memory. You give the shared mem a name when creating and another app can open using that name.
packetvb |
|
|
|
|
|
#6 |
|
New Member
Join Date: Sep 03
Posts: 3
![]() |
Re: send info between apps
Hi Megatron,
I am facing a similar issue. i appreciate that u can elaborate on WM_USER + X message. even better if u have sample code. Thank you very much |
|
|
|
|
|
#7 |
|
Lively Member
Join Date: Sep 04
Posts: 74
![]() |
Re: send info between apps
Named pipe's and Mailslots are capable of communicating between apps
|
|
|
|
|
|
#8 |
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Megatron, I am not sure what you mean by "subclass the receiving app", but I doubt that it is easy.
A WM_USER message would work only for very short strings. The first suggestion should be the WM_COPYDATA message, which can be used for much larger strings. The WM_COPYDATA message will do a CreateFileMapping for you. There is very little to be concerned about when using the WM_COPYDATA message except the receiving application must copy the string (and/or other data) when the message is processed; that is, before the message processing function returns. The WM_COPYDATA message can be very useful and very easy to use. If the requirement is more complex than what can be done using the WM_COPYDATA message, then there are other possibilities. Look at "Interprocess Communication" (IPC) in the Platform SDK. An ActiveX Component is relatively easy for VB programmers and can be a very useful solution that many people might not think about. Last edited by Sam Hobbs; Dec 21st, 2004 at 08:31 PM. |
|
|
|
|
|
#9 | |||
|
Software Eng.
Join Date: Mar 99
Location: Canada
Posts: 11,287
![]() |
Re: send info between apps
Quote:
Quote:
Quote:
They're both window messages, and are subject to the same constraints. Anything that can be done with WM_COPYDATA can also be done with WM_USER. More over, WM_COPYDATA is a custom message. This means that there is no default action for it, and it's up to the user to process this message (if at all). And how do we do it? You guessed it: Subclassing. |
|||
|
|
|
|
|
#10 | |||||
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Quote:
Quote:
In this context, the requirement is to subclass a window in another address space, which is much more complex. I assure you it is not easy for a beginner to write all the code themselves to do that, and it should not be easy for a beginner to simply copy a sample if the beginner needs to modify the code. When crossing address spaces, there are too many things that a person could make a small mistake with and mess up the system. Quote:
Quote:
Quote:
As I indicated, subclassing within an address space is easier than across address spaces, so if the WM_COPYDATA message must be processed by subclassing a window, then that I assume is easy, since Microsoft tries to make things as easy as possible for VB programmers. Note that the Platform SDK warns against using messages with message ids in the WM_USER range; it is better to use the range WM_APP through 0xBFFF. The WM_USER range is usually safe but it is just as easy to use WM_APP instead of WM_USER. Even better than WM_APP is to use the RegisterWindowMessage function to retrieve a message id. However none of those will allow you to send a pointer in the message that is valid in another address space. |
|||||
|
|
|
|
|
#11 | |||||||||
|
Software Eng.
Join Date: Mar 99
Location: Canada
Posts: 11,287
![]() |
Re: send info between apps
Quote:
Quote:
Quote:
And in which case, if two way communication is required, then you need to subclass the external process (Replace the receiving appliation's window procedure with a custom procedure of your own). You cannot just send your custom message to another application because it will not know what to do with it. In order to make something happen, subclassing is required. If, on the other hand, you simply need to send data to a specific address location in this external process (one-way communication) then WriteProcessMemory will do the trick. Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Bottom line? Pick your favourite, and use it. Neither offers significant advantages over the others. |
|||||||||
|
|
|
|
|
#12 | |||||||
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Most experienced software developers understand the value of flexible solutions such as RegisterWindowMessage. I understand that you don't see the value, but many others do. My guess is that most developers of commercial software require use of RegisterWindowMessage when messages are sent across applications. |
|||||||
|
|
|
|
|
#13 | ||||||||||
|
Software Eng.
Join Date: Mar 99
Location: Canada
Posts: 11,287
![]() |
Re: send info between apps
Quote:
2 paragraph's down from that that, he also states: "However, there are ways you can add subclassing functionality to every process." So subclassing a window in an external process is possible so long as the window procedure is mapped into its address space. This can be acheived by having your window procedure in a stanard DLL. See my post in the codebank. General rule of thumb: You shouldn't always take Microsoft's words as engraved in stone. Quote:
Quote:
Quote:
Quote:
(If he's that sophisticated, he can write his own application. No need to tamper with ours) Quote:
Quote:
Quote:
Re-read my previous posts, as I would be repeating myself again. Quote:
Quote:
We can keep going in circles here, but the underlying facts are: 1. WM_USER, WM_APP or RegisterWindowMessage are ways of creating a custom window message to communicate between applications. 2. To process these messages, you need direct access to the window procedure of the receiving window. In C, you already have access to it, whereas in VB you have to subclass. If it's an external process, you'll have to subclass in either case (using a DLL to map the procedure in the receiver's address space) 3. WM_COPYDATA is a generic message for sending data, and needs to be processed in the same way as any other message. 4. There are other means of transferring data, if you so desire, such as pipes, file mapping etc. |
||||||||||
|
|
|
|
|
#14 | |||||
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Quote:
Also, your solution uses C++, which proves my point that it is not easy to do in VB. Quote:
Quote:
Quote:
Quote:
I hope I have made my point for the benefit of others that WM_COPYDATA is a likely solution to the requirement in this thread and if it is a solution it is very easy to use. |
|||||
|
|
|
|
|
#15 |
|
Frenzied Member
Join Date: Aug 02
Location: Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
Posts: 1,087
![]() |
Re: send info between apps
Fact - Who said it wasn't a solution? I believe Megatron was insisting that is is not necessarily the ONLY solution nor the best to use in the thread starters situation.
I don't mean to interrupt the bout' , so i'll let round 3 begin as soon as Megatron has replied. - commentary by: me
__________________
:::`DISCLAIMER`::: Do NOT take anything i have posted to be truthful in any way, shape or form. Thank You! -------------------------------- "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe "Finaly I can look as gay as I want..." - NoteMe Languages: VB6, BASIC, Java, C#. C++ |
|
|
|
|
|
#16 | |||||
|
Software Eng.
Join Date: Mar 99
Location: Canada
Posts: 11,287
![]() |
Re: send info between apps
Quote:
Quote:
Quote:
Yes strictly speaking, a process cannot directly subclass a window in another process; that's already a known fact. But for all intents and purposes, the aid of a standard DLL makes it possible to achieve the same effect. Quote:
What if our car manufacturers followed the same philosophy? (Though in this case neither is significantly more optimal than the other, but I thought I would point that out.) Quote:
. Last edited by Megatron; Dec 22nd, 2004 at 10:34 PM. |
|||||
|
|
|
|
|
#17 | ||
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Quote:
Quote:
So I was wrong when I said that you will never say you have made a mistake, sorry. I hope you do here too. Last edited by Sam Hobbs; Dec 22nd, 2004 at 10:47 PM. |
||
|
|
|
|
|
#18 | ||
|
Software Eng.
Join Date: Mar 99
Location: Canada
Posts: 11,287
![]() |
Re: send info between apps
Quote:
But I'll let it go, as this issue has been run over more than enough times now. Quote:
As far as I can see, both you and I are merely pointing out different methods to achieve the same goal. |
||
|
|
|
|
|
#19 |
|
Frenzied Member
Join Date: Aug 01
Location: England
Posts: 1,237
![]() |
Re: send info between apps
VB Code:
and an example of how to send . . . VB Code:
|
|
|
|
|
|
#20 |
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Thank you, yrwyddfa.
It is unfortunate that it is necessary to do all that to use the WM_COPYDATA message in VB. I suppose most of the code is for the message process and once it is done that adding other messages to be received would be easy and correspondingly it would be relatively easy to add processing of WM_COPYDATA to a program with a message loop. I found another sample; see How To Pass String Data Between Applications Using SendMessage. |
|
|
|
|
|
#21 |
|
Frenzied Member
Join Date: Aug 01
Location: England
Posts: 1,237
![]() |
Re: send info between apps
Yeah - they could've made it easier . . .
Most of the awkward looking API stuff here is for serialising/deserialising the message stream and putting it in and out of property bags. |
|
|
|
|
|
#22 |
|
Super Moderator
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
![]() ![]() ![]() ![]() |
Re: send info between apps
If you take a look at my VB6 multithreading example, it has code there which allows you to send VERY LARGE structured data between 2 apps, using the send, or post, message API functions.
The DLL that does this is called vbGatewayy.dll that I wrote. Take a look. Not sure if that's relevant ![]() Woka
__________________
My .NET Tutorials: • Silverlight Enabled WebPart in WSS My VB.NET Code Examples: • Create IIS Virtual Directory • Validate Login Against Active Directory • Automatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET My ASP.NET Code Examples: • Login To Website (Forms Authentication) • Login To Website (Custom Authentication) My VB6 Code Projects: • Multithreading In VB6 • Custom Tooltips • Multi Language Support • Item Selector Control • Annimated Systray Icon • Simple Effective Graph Control • Download From Web • LiveUpdate, download application updates from the web automatically • Systray Notification Messages • Skin A Form • API Timer • Badger Messenger, an MSN clone that uses the MSN Network • Wokawidgets VB6 Component Suite |
|
|
|
|
|
#23 |
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Woka, I assume your sample is useful. For those applications that require something more complicated than what WM_COPYDATA is capable of, I assume it is worth evaluating. Note that the WM_COPYDATA message does automatically a lot of things that a program such as yours must do.
Since the WM_COPYDATA message is not as easy to process in VB as other messages are, and since VB makes COM objects so easy, it is probably practical to use a COM object. I am not sure of the terminology but I hope most people understand. Probably I mean an ActiveX component, but the term ActiveX is not clearly defined. |
|
|
|
|
|
#24 |
|
Old Member
Join Date: Nov 04
Location: In Hiding.... Weather: sizzzzlin'........ Code: Secret
Posts: 2,701
![]() ![]() ![]() ![]() ![]() |
Re: send info between apps
Summary
It's funny that the original poster has not posted anything here after the original post to clarify the problem. The ensuing discussion however was rather informative so I have compiled what I think is an accurate summary of the conversation. Please correct me if I erred. As I see it there are two possible scenarios. 1. Both applications are "owned" by the poster (i.e. he has access to the source code of both.) 2. He does not have access to the source code of one of the applications. Solution for case 1: Subclass a window in each app to receive messages (yrwyddfa shows how to do that) and use WM_USER, WM_APP or WM_COPYDATA to pass messages back and forth (yrwyddfa again with an example). Solution for case 2: Subclass a window in your app to receive messages and hook the other app. The hook will have to point to a routine that resides in a WIN32 DLL which cannot be done with VB (I use VC++ for this). The "owned" app can then communicate with the DLL and hence the other app using the same technique as in case 1. Notes: 1. Standard windows messages sent between processes, such as WM_SETTEXT and WM_COPYDATA, can contain pointers since the OS knows about these messages and handles the marshalling. If user defined messages such as WM_USER and WM_APP contain pointers, the pointers will only be valid in the address space from which they are sent. One way to handle pointers between processes in user defined messages is to use ReadProcessMemory to retrieve the data. 2. To make sure that your message is not being used by another application, you can register it with the OS with RegisterWindowMessage. It is probably safer to use the WM_APP range because some predefined window classes have already defined values in the WM_USER range. 3. WM_COPYDATA is great for sending text strings or data structures as long as the data structure does not have a pointer in it. If it does, you'll have to use ReadProcessMemory to get that data just like you would with WM_APP. 4. Take a look at Wokawidget's code if you want to see how complex it can get sending code between two applications. Warning: this code is not for beginners especially since it contains no comments. What’s up with that Woka?
|
|
|
|
|
|
#25 |
|
Super Moderator
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
![]() ![]() ![]() ![]() |
Re: send info between apps
I think that sums it up
![]() Comments...Hmmmm ![]() I never use comments, they get in my way and annoy me. The 1st thingI do when I download someones code is I remove the comments. This also means that you must manually figure out what code does. I have done this from the 1st day I started learning programming, 4.5 yrs ago. Personally I think the learning curve is steeper without comments. I know others like them, and maybe some would be beneficial, but hey, no one is perfect ![]() WM_COPYDATA cannot be used with PostMessage. Woka
__________________
My .NET Tutorials: • Silverlight Enabled WebPart in WSS My VB.NET Code Examples: • Create IIS Virtual Directory • Validate Login Against Active Directory • Automatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET My ASP.NET Code Examples: • Login To Website (Forms Authentication) • Login To Website (Custom Authentication) My VB6 Code Projects: • Multithreading In VB6 • Custom Tooltips • Multi Language Support • Item Selector Control • Annimated Systray Icon • Simple Effective Graph Control • Download From Web • LiveUpdate, download application updates from the web automatically • Systray Notification Messages • Skin A Form • API Timer • Badger Messenger, an MSN clone that uses the MSN Network • Wokawidgets VB6 Component Suite |
|
|
|
|
|
#26 |
|
New Member
Join Date: Aug 04
Posts: 8
![]() |
Re: send info between apps
This might help (my apologies if someone has already posted this, I couldn't be bothered reading the entire thread
)http://www.thescarms.com/vbasic/PassString.asp
|
|
|
|
|
|
#27 | |||||||||
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Thank you, moeur. I know you are trying to help.
Quote:
Quote:
Quote:
My experience has been (in the CodeGuru forums) that when a vague question is asked and not clarified, it is common for it to explode into a lengthy discussion. That happens because there is not a topic specific enough to adequately limit discussion, and the vague nature of the subject likely results in differing understandings and points of views. For example Megatron posted comments with a couple or more mistakes. One of the mistakes was "subclass the receiving app". Applications aren't subclassed; windows are. It was a simple mistake, and I realize that most people would understand what he meant. Note that I tried to be subtle and reasonable in my comment about it. However instead of clarifying what he said, he tried to defend it. Megatron also said that it is possible to "pass the string in the lParam parameter" of a "WM_USER + X message", which is not possible. If Megatron meant that the string could be put into a lParam parameter, then it is possible to send only a few characters, not enough to be considered a string. If Megatron meant that the string could be sent by using memory outside the message and passing just a pointer in the lParam parameter, then it is necessary to also say that custom marshalling is required. Quote:
I do understand that you meant well, and I hope I have not discouraged you from helping in the future. The way you could help the most is, as I said, correct any mistakes that we have made. It does not need to be personal and should not be personal, but it is entirely possible to state facts without being personal. Just stating the facts I think is a mature solution. Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||||||
|
|
|
|
|
#28 |
|
Super Moderator
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
![]() ![]() ![]() ![]() |
Re: send info between apps
Memory mapped files?
Woka
__________________
My .NET Tutorials: • Silverlight Enabled WebPart in WSS My VB.NET Code Examples: • Create IIS Virtual Directory • Validate Login Against Active Directory • Automatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET My ASP.NET Code Examples: • Login To Website (Forms Authentication) • Login To Website (Custom Authentication) My VB6 Code Projects: • Multithreading In VB6 • Custom Tooltips • Multi Language Support • Item Selector Control • Annimated Systray Icon • Simple Effective Graph Control • Download From Web • LiveUpdate, download application updates from the web automatically • Systray Notification Messages • Skin A Form • API Timer • Badger Messenger, an MSN clone that uses the MSN Network • Wokawidgets VB6 Component Suite |
|
|
|
|
|
#29 | |
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Quote:
Memory mapped files is a common way for processes to share data; perhaps the most common. It does seem to be an indirect solution, and it probably is, at least somewhat. A Unix system, for example, has more direct functions for sharing memory; at least if my memory is accurate. When a file is mapped to memory, a portion of memory in each process's address space is mapped to a common portion of virtual memory. The memory can be paged in and out, but that is not done unless physical memory is used to the extent that pages need to be swapped, whether they are part of a memory-mapped file or not. Data in a memory-mapped file can be accessed as efficiently as normal memory in an address space. In terms of efficiency, the memory is the same as the rest of memory for the process. ReadProcessMemory and/or WriteProcessMemory are very inefficient in comparison. A memory-mapped file can be backed by the pagefile(s), for which the file becomes just a way to share memory. Believe me, that is a solution that is very, very common. |
|
|
|
|
|
|
#30 |
|
Super Moderator
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
![]() ![]() ![]() ![]() |
Re: send info between apps
Any exmaples of code?
![]() Woka
__________________
My .NET Tutorials: • Silverlight Enabled WebPart in WSS My VB.NET Code Examples: • Create IIS Virtual Directory • Validate Login Against Active Directory • Automatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET My ASP.NET Code Examples: • Login To Website (Forms Authentication) • Login To Website (Custom Authentication) My VB6 Code Projects: • Multithreading In VB6 • Custom Tooltips • Multi Language Support • Item Selector Control • Annimated Systray Icon • Simple Effective Graph Control • Download From Web • LiveUpdate, download application updates from the web automatically • Systray Notification Messages • Skin A Form • API Timer • Badger Messenger, an MSN clone that uses the MSN Network • Wokawidgets VB6 Component Suite |
|
|
|
|
|
#31 | |
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Quote:
|
|
|
|
|
|
|
#32 |
|
Super Moderator
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
![]() ![]() ![]() ![]() |
Re: send info between apps
Hahaha. You sarcastic sod
Hahaha.OK. I will search. I was just wondering if you had any small samples to hand. Not actively looking for this code as I have no need. Woof
__________________
My .NET Tutorials: • Silverlight Enabled WebPart in WSS My VB.NET Code Examples: • Create IIS Virtual Directory • Validate Login Against Active Directory • Automatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET My ASP.NET Code Examples: • Login To Website (Forms Authentication) • Login To Website (Custom Authentication) My VB6 Code Projects: • Multithreading In VB6 • Custom Tooltips • Multi Language Support • Item Selector Control • Annimated Systray Icon • Simple Effective Graph Control • Download From Web • LiveUpdate, download application updates from the web automatically • Systray Notification Messages • Skin A Form • API Timer • Badger Messenger, an MSN clone that uses the MSN Network • Wokawidgets VB6 Component Suite |
|
|
|
|
|
#33 |
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
I did not know of any samples, expecially not VB samples. There are many more samples that use the C/C++ languages but the following are two that use VB:
Visual Basic Samples by Karl E. Peterson (MapFile.zip) Binaryworld - Sharing Data Between Processes Using Memory-Mapped Files ... [ VB -> Memory ] Also, the MSDN previously contained an online copy of Hardcore Visual Basic, in which there is an article called "Shared Memory Through Memory-Mapped Files". |
|
|
|
|
|
#34 |
|
Super Moderator
Join Date: Nov 01
Location: Headingly Occupation: Classified
Posts: 9,589
![]() ![]() ![]() ![]() |
Re: send info between apps
Cheers for that.
Just got to work. Will check out those link. Much appreciated ![]() Woka
__________________
My .NET Tutorials: • Silverlight Enabled WebPart in WSS My VB.NET Code Examples: • Create IIS Virtual Directory • Validate Login Against Active Directory • Automatically retrieve Identity field value from inserted DataRow using SQL Server and ADO.NET My ASP.NET Code Examples: • Login To Website (Forms Authentication) • Login To Website (Custom Authentication) My VB6 Code Projects: • Multithreading In VB6 • Custom Tooltips • Multi Language Support • Item Selector Control • Annimated Systray Icon • Simple Effective Graph Control • Download From Web • LiveUpdate, download application updates from the web automatically • Systray Notification Messages • Skin A Form • API Timer • Badger Messenger, an MSN clone that uses the MSN Network • Wokawidgets VB6 Component Suite |
|
|
|
|
|
#35 | |||||
|
Software Eng.
Join Date: Mar 99
Location: Canada
Posts: 11,287
![]() |
Re: send info between apps
Quote:
Quote:
Life's too short to buy green bananas. Quote:
Quote:
To say it's more "difficult" is subjective. Yes, there's more typing involved, but I wouldn't consider that difficult. Quote:
|
|||||
|
|
|
|
|
#36 | |||||
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Quote:
Quote:
Quote:
Quote:
For example, if the requirement is to draw text on an image in another application's window, then that might be quite easy. If the image can be resized (zoomed) by the other application, and if the text needs to be correspondingly resized, then that is more work. And it is likely to be more work than someone might think initially, since the text would potentially need to be redrawn after each paint message. If however the requirement is to draw the text in the bitmap that is shown in a window, then that might be significantly more difficult. When I say bitmap here, I mean it might be a bitmap drawn in memory (a memory device context?) that potentially could be written to disk, and the requirement is that the additional text be included in the image when it is written to disk. Then there are millions of other possible requirements, such as a requirement to alter text that is being processed from/to a database. Quote:
Programmers essentially need to have a userid that allows general use of ReadProcessMemory and WriteProcessMemory, right? So for programmers, it might be an insignificant problem. If an application is to be used in a relatively more secure environment, then ReadProcessMemory and WriteProcessMemory would be an important consideration. I am not familiar with Windows security enough to clear about details, but I am attempting to get help from security specialists. Last edited by Sam Hobbs; Jan 13th, 2005 at 04:33 PM. |
|||||
|
|
|
|
|
#37 | ||||||
|
Software Eng.
Join Date: Mar 99
Location: Canada
Posts: 11,287
![]() |
Re: send info between apps
Quote:
(But like I said: That's green banana's) Quote:
Little things like an integer only stores 16-bits can be left out. Quote:
Quote:
I also don't doubt that some "specialists" will approve of these functions. Quote:
Quote:
|
||||||
|
|
|
|
|
#38 | |||||
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Quote:
Quote:
Quote:
Quote:
Quote:
Last edited by Sam Hobbs; Jan 13th, 2005 at 08:27 PM. |
|||||
|
|
|
|
|
#39 | ||
|
Software Eng.
Join Date: Mar 99
Location: Canada
Posts: 11,287
![]() |
Re: send info between apps
Quote:
I hope the irony is apparant, by now. Quote:
In order to gain an true unbiased understanding, you will need to draw conclusions from arguments on both sides of the debate. |
||
|
|
|
|
|
#40 | |
|
Member
Join Date: Dec 04
Location: California
Posts: 39
![]() |
Re: send info between apps
Quote:
Therefore, it is imperative for us to have available to us comments from those in support of your position. I hope to get comments from at least one person more authoritative than Mick, who is a moderator in the CodeGuru forums, and who also recommends use of ReadProcessMemory and WriteProcessMemory, except the comments I am looking for would of course support what I am saying. Last edited by Sam Hobbs; Jan 15th, 2005 at 02:50 PM. |
|
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|