Hi,
I have a question to that struct:
typedef struct b
{
double amount;
char date[11];
Type: Posts; User: keeper
Hi,
I have a question to that struct:
typedef struct b
{
double amount;
char date[11];
Thanks, but where get this file time.txt saved and how does I change the date and time of an existing file. And can you tell me how to call this function int WINAPI WinMain(HINSTANCE hThisInstance,...
Hello,
I want to change the creation, last modified and last viewed date of a file. Can somebody help me with that? I think it can be done with the windows api, but I have no idea how.
MFG,...
OK get it working :)
#include <windows.h>
#include <tlhelp32.h>
#include <iostream>
#include <string>
#include "psapi.h"
Thanks now there are less errors:
process.cpp(12): error C3861: 'EnumProcesses': identifier not found, even with argument-dependent lookup
process.cpp(16): error C3861: 'GetModuleBaseName':...
get it working :)
It was just a little
extern "C"
{
#include "x.h"
}
If somebody can please download the programm one could better see were my problems are. I don't know what I can describe more about the errors that appear because everything I try to solve the...
Making a complete new project insert the code from above (06-22-2007 03:58 AM) nothing more I get these errors:
process.cpp error C2146: syntax error : missing ';' before identifier...
Yes I read the replies. And I think I get this working, if I get solve this problem:
http://cboard.cprogramming.com/showthread.php?t=91082 first. The problem is the same here mixing c and c++ files....
I have test all the different versions available, but I get always the error LNK2005 and error LNK2019 I write in my post above.
And I dont know what type of lib ntdll.lib is.
Making a complete new project without the stdafx.cpp and stdafx.h file and with Not Using Precompiled Headers on, I get these errors:
test error LNK2005: _strcat already defined in...
I have under the option Additional Dependencies these two psapi.lib ntdll.lib libaries.
The only header I include before the system headers is #include "stdafx.h"
I delete the Debug directory...
Hmm now I get these errors after I mark the option Not Using Precompiled Headers:
cerrno(18): error C2143: syntax error : missing '{' before ':'
and
cerrno(18): error C2059: syntax error :...
Hi,
I have two projects and want them to get together. But I have a problem with mixing c and c++ files.
I get this error while compiling:
process.c fatal error C1853: 'Debug/service.pch'...
I use the english version of Visual Studio C++ 2003 with the standard settings.
DWORD GetProcessByFileName(char* name){
DWORD process_id_array[1024];
DWORD bytes_returned;
DWORD...
Yes I realize that, it was only an example.
I try the code in the topics you post, but I have some problems with that. I get the error: main.c(13): error C2143: syntax error : missing ';' before...
Hello,
Ok my problem is that I need a function to find out the process id from a given process name.
e.g.: I want to get the pid for explorer.exe, then the function should give me the pid 1156....
Yes with disabling the WFP and some rename tricks of the dlls it worked so I had a system crash ;)
Anyone an idea how to find out what functions or whatever I have in my new programm which makes...
Ok in a previous thread I had an question about dlls on which my programm based.
With DEPENDS.EXE from the Visual Studio I worked out that my programm (a dll) need some system dlls. I have two...
The programm for what my dll is written is an nt service, so no when it does not run I see nothing.
OK thank you.
Hmm how to post error messages when there are no. And what of the code to you want to see. The programm has 10 .cpp files and 8 .h files the total code is more than 60 Din A 4 printed pages.
P.S....
I have this
#pragma comment (lib,"ws2_32")
#pragma comment (lib,"cryptlib")
#pragma comment (lib,"libeay32")
#pragma comment (lib,"ssleay32")
Hi
I have a problem, my programm does not run on any windows pc (I mean win 2000 and up). Sometimes it does and sometimes nothing happens. I think it must be something with dlls. But I don't know...
I have a file in the following format:
ID;Data;Tag;Date
234;15681;345919;91234;...
156;1924;;134;...
...
...
...
You see in the first line it define what kind of data the following is.