I will post if I find anything. Thanks.
Type: Posts; User: phal
I will post if I find anything. Thanks.
Fixed it. I was using malloc() to initialize a few strings, in some other parts of the program. Like this:
char * string = (char *) malloc(1024);
Apparently this was poisoning the stack. I...
Ok, I corrected it, thanks.
The main problem is not related to this, anyway. Just before the fprintf() called, I can see that the file pointer, the char 'c' and the format string are all correct....
I corrected that & after I posted the message, I know it shouldn't be there. BTW, what's wrong with feof()?
PS. I don't wan't to use CopyFile() here, so please don't suggest it.
Hi,
It's a code for copying a file. It had been working fine but now something goes wrong and it causes the main process to crash, even without an error message.
I can't figure out what's...
You can use Resource Hacker.
http://www.angusj.com/resourcehacker/
Well, I can install it within itself, but the thing is, it can't start itself from it's own process.
OK, thank you again. That didn't seem easily possible to me, too.
Thank you BobS0327. But I didn't understand how i can start the service from it's own PE file. This code is for starting a service that has another executable, isn't it? Correct me if I got it wrong.
I got it working today. SERVICE_INTERACTIVE_PROCESS was used with SERVICE_WIN32_OWN_PROCESS while installing the service with CreateService(). I could even create a visible window this way. :)
Now...
Well, I made some progress today and set program's WinMain as the service's main function. I was able to start the service and it was working OK, but now I made some changes and...
It already has no visible windows. It runs completely in the background. I use it for HTTP tunneling and it needs to be running all the time. So I thought setting it up as a service would be a good...
Hi,
I've finished coding a program a few days before. It has a WinMain function, a window procedure function and a couple of more. Now the problem is I have decided to run it as a service. But...
Thank you, i got it working now. But this doesn't happen it Windows, does it? I've never came accross this...
Hi,
With the program below, i am trying to connect to a web host. But there is a problem; the line that prints "abcd" shows up when i enter a correct IP address, otherwise it doesn't. Shouldn't it...
Compiling in console can help you understand what's going on, i agree with that, but what about using a command line text editor? What's the point in using them for programming?
I'm new at Linux, too. And after using Windows for a long time, it comes a bit strange to do things in terminal. It's like using DOS command prompt in XP, which i don't like very much and find...