Forum > Coding >

VS2017 Error for Injecting DLL

Posts: 1

Threads: 1

Joined: Jun, 2018

Reputation: 0

Posted

Code:
private bool Inject(int pID, string dllLocation)

Error:
Code:
CS0116 A namespace cannot directly contain members such as fields or methods

Can anyone help me?
  • 0

Posts: 12

Threads: 5

Joined: Mar, 2018

Reputation: 0

Replied

hmm this error looks like something inside of the code 
  • 0

Posts: 212

Threads: 42

Joined: May, 2018

Reputation: 0

Replied

Do you mind sending a screen shot of your entire code, it might be the namespace, it has a error in it. Remove any fields or methods that are not suppose to be contained into it.
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )