u r rite i also added the lib then it worked fine.
why do we have to add some libslike wsock32.lib when we use winsock..etc....
User Profile
Collapse
-
[code=cpp]
include <windows.h>
#include<psapi. h>
#include <iostream>
using namespace std;
int main() {
u_long a[100];
u_long rsize;
EnumProcesses(a ,sizeof(a),&rsi ze);
return 0;
}
[/code]...Leave a comment:
-
its giving error
process error LNK2019: unresolved external symbol _EnumProcesses@ 12 referenced in function _main...Leave a comment:
-
get list of pid of all processes running on the system
how to get list of pid of all processes running on the system using c++ in windows??? -
-
how to check a process is running or not
I have created a process using CreateProcess() function .
the PROCESS_INFORMA TION gives me the process handle and pid..
now if i want to check if the process is still running or not..how to check it..
as the pid is valid even after the process stops.. -
-
how to start a new process
how to start a new process (for example opening a notepad)
from a c++ program??
i tried the following code but it gives error
fatal error C1190: managed targeted code requires '#using <mscorlib.dll >' and '/clr' option
...Code:#using <mscorlib.dll> #using <system.dll> #using <System.Windows.Forms.dll> int main(){ //Use no more than one assignment when you test -
-
thnks i already visited the msdn site but
these functions search only a particular directory specified in the function call.
but file can be anywhere ..then it means i will have to search each and every directory and for that i need the list of all the directories...
how to get that.....Leave a comment:
-
findfirst /findfirst are Delphi related things..
how to use them in C++..i tried to use but its giving errors.....Leave a comment:
-
I cant force the file to be in a certain location..other wise there would have been no problme.the file location depends where the user has stored the file....Leave a comment:
-
-
I am concerned only for windows.so please tell me about the better way ..using Win32 api.....Leave a comment:
-
well i think you didnt get my question how can i give the absolute path name..if i dont know the location of file...Leave a comment:
-
-
how to open a txt file just by knowing its name..
In the c++ fopen() function we need to give the full path of the file along with its name.
But how to open a file if we just know the name like "xyz.txt" and dont know the location of file. -
-
the code behind opening a file by double clicking it.
I have created an exe in Vb.net which displays a message" Hello world" in a messagebox.
and associated this exe with a new file type " .key " of my own(by adding this file type in folder option ..file types.)
so when i save a text file as " xyz.key " then a new fil is created with extension .key
now when i double click this xyz file my hello world exe gets executed and displays the... -
the code behind opening a file by double clicking it.
I have created an exe in Vb.net which displays a message" Hello world" in a messagebox.
and associated this exe with a new file type " .key " of my own(by adding this file type in folder option ..file types.)
so when i save a text file as " xyz.key " then a new fil is created with extension .key
now when i double click this xyz file my hello world exe gets executed and displays the...
No activity results to display
Show More
Leave a comment: