Click here to Skip to main content
15,882,163 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
lParam [in]
Type: LPARAM

A pointer to a CWPSTRUCT structure that contains details about the message.


Why Message in CWPSTRURCT Return Only 0 Not 3 Or 5

What I have tried:

Win64
CopyMemory Cwp,lparam,LenB(Cwp)
Debug.Print Cwp.Message
Zero Only
if use ByVal lParam , Crash App
Posted
Comments
OriginalGriff 30-Jan-22 8:16am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

Use the "Improve question" widget to edit your question and provide better information.
Richard MacCutchan 30-Jan-22 8:32am    
Whatever it is you are trying to do (as with all the other questions) you are largely wasting your time. Trying to use Win32 functions from VBA is difficult at best, and in some cases impossible. Switch to C, C++ or C# and you will be able to solve your problems much faster.

And the fact that you have never explained exactly what problems you are trying to solve, means that the answers we can give are very limited in their usefulness.
OriginalGriff 30-Jan-22 9:53am    
It's surprising how many people think we can read their minds, but they still come here - even with browser histories no-one sane would want to touch! :laugh:
Richard MacCutchan 30-Jan-22 10:16am    
Too true, and I don't really know why I still am surprised.
Richard MacCutchan 30-Jan-22 9:18am    
The CWPSTRUCT has nothing to do with the CopyMemory function.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900