Jump to content
Alexander33

[help C#]Intrebare autoexecutare

Recommended Posts

unde sunt erori o sa pun cu o cifra (1) de exemplu DUPA ce e gresit

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Diagnostics;

using System.Runtime.InteropServices;

class Hide

{

private const int SW_HIDE = 0;

[DllImport("User32")]

private static extern int ShowWindow(int hwnd, int nCmdShow);

int hWnd;

Process[] processRunning = Process.GetProcesses();

foreach(1) (Process pr in(2) processRunning(12))(3)

{

if (pr(13).ProcessName ==(4) "notepad")

{

hWnd(14) =(5) pr(15).MainWindowHandle.ToInt32((6));

ShowWindow(7)(hWnd(16),(8) SW_HIDE(17))(9);

}

}(10)

}(11)

ce este gresit in codul asta?:|

Error 1 Invalid token 'foreach' in class, struct, or interface member declaration

Error 2 ; expected (asta e langa foreach la "in")

Error 3 Invalid token ')' in class, struct, or interface member declaration

Error 4 Invalid token '==' in class, struct, or interface member declaration

Error 5 Invalid token '=' in class, struct, or interface member declaration

Error 6 Invalid token '(' in class, struct, or interface member declaration

Error 7 Method must have a return type

Error 8 Identifier expected

Error 9 Identifier expected

Error 10 Type or namespace definition, or end-of-file expected

Error 11 Type or namespace definition, or end-of-file expected

Error 12 'Hide.processRunning' is a 'field' but is used like a 'type'

Error 13 'Hide.pr' is a 'field' but is used like a 'type'

Error 14 'Hide.hWnd' is a 'field' but is used like a 'type'

Error 15 'Hide.pr' is a 'field' but is used like a 'type'

Error 16 'Hide.hWnd' is a 'field' but is used like a 'type'

Error 17 'Hide.SW_HIDE' is a 'field' but is used like a 'type'

Edited by Alexander33
Link to comment
Share on other sites

Pana nu userul direct sau orice altceva indirect nu acceseaza acel executabil ca macar sa-i porneasca cronometrul el tot nu va porni. Ai uitat ca bomba cu ceas trebuie mai intai activata / setata ? Orice in lumea asta nu porneste de capul lui ci la un anumit stimul ... totul se bazeaza pe interactiuni, eu sunt de partea celor care spun ca orice se intampla din cauza unor altor lucruri, nu e nimic intamplator.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...