Solution to Method has no implementation (no RVA) Error
1 min read
If you get this exception
_System.TypeLoadException: Could not load type ‘x’ from assembly ‘xx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ because the method ‘SendMessage’ has no implementation (no RVA)._Make sure you have a DllImport attribute for the method.
This…
public static extern IntPtr SendMessage(IntPtr w, uint m, IntPtr p1, IntPtr p2);
```text
Becomes this…
```csharp
[DllImport("user32.dll")]public static extern IntPtr SendMessage(IntPtr w, uint m, IntPtr p1, IntPtr p2); Share:
Share on LinkedIn
Quick Share: Your custom post text has been copied to your clipboard! Click the button below to open LinkedIn's share dialog, then paste it.
💡 Tip: LinkedIn will open in a new tab. Use Ctrl+V (or Cmd+V on Mac) to paste your text.
Note: LinkedIn will show the article preview. You can add your custom text above it.