Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Tags
c x 13
perl x 2
c++ x 1
form x 1
net x 1
Member Avatar for somename

Hello. I am trying to find out how to write a function to replace a string in a text file. So far i got this: find -> is a word i am looking for replace, rep -> new word, f1 -> my file. And i'm stuck with that piece of …

Member Avatar for deceptikon
0
3K
Member Avatar for somename

Hi all. Ok, i got such php script: [CODE] <?php header('Location: http://localhost/current/'); ?> [/CODE] Now i am sending GET request to this script with my C app and receiving following header: [CODE] HTTP/1.1 302 Found Date: Sat, 20 Feb 2010 18:50:17 GMT Server: Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.5 with Suhosin-Patch X-Powered-By: PHP/5.2.6-2ubuntu4.5 …

Member Avatar for somename
0
129
Member Avatar for somename

Hi there, i am trying to implement thread injection from my windows forms .NET project. Here is the code which works just fine from simple console app or Gtk+ gui application, but unfortunately not from .NET gui app. [CODE]#define NtCurrentThread() ((HANDLE) -2) #define NtCurrentProcess() ((HANDLE) -1) typedef DWORD (WINAPI *Rm_MessageBoxA)(HWND …

0
127
Member Avatar for somename

Hello. Here goes the problem: i got my movie made elsewhere then in adobe flash, converted to .fla and imported to adobe flash to add some AS. But the movie is not assigned to a main timeline and i cannot do a thing with it now. It is playing nicely …

0
68
Member Avatar for somename

Hello. Maybe someone can help me with this, here is my code: [CODE]#include <windows.h> #include <stdio.h> #include <wininet.h> #include <shlwapi.h> #define mb(x,z) MessageBox(0,x,z,0) #define REGKEY "PATH\\to\\my\\key" #define REGNAME "zzzzzzzzzzzzz" #define EXENAME "zzzzzz.exe" void Reg() { HKEY hkey; DWORD dwDisposition; DWORD m_dwMaxFileSize = 16 * 1024; TCHAR m_szLastFileName[MAX_PATH]; DWORD dwType, dwSize; …

Member Avatar for somename
0
177
Member Avatar for somename

Hello. My question is about perlTk. I'm wondering how to write a gui app like that: it has 2 buttons, 1 is "run" and 2 is "stop". App should run some function and when i press "stop" button, it should stop. But when "run" button pressed whole app gets inactive …

0
52
Member Avatar for somename

Hi guys. I cannot figure out how to do next thing. for example i have a little progie like this: [CODE]int myfunction(int argc, char *argv[]){ int i; for(i=0;i<argc;i++) unlink(argv[i]); } int main(int argc, char *argv[]){ myfunction(argc,argv); }[/CODE] works fine, but i'm trying to do that: [CODE]int myfunction(int argc, char *argv[]){ …

Member Avatar for LouPascalou
0
94
Member Avatar for somename

Hi. i'm trying to copy a binary already with a predefined permissions. I got this code: [CODE] FILE *f1, *f2; char cp; f1 = fopen("file1","rb"); f2 = fopen("file2","wb"); while(!feof(f1)) { cp = fgetc(f1); if(!feof(f1)) fputc(cp, f2); fclose(f1); fclose(f2);[/CODE] but this just copy a file. But what i'm trying to do …

Member Avatar for somename
0
119
Member Avatar for somename

Hello. I got a problem of that type: for example i have a simple program like this: [CODE]int main(){ sleep(10); }[/CODE] now if i define time to be 10 sec, prog works fine. [CODE]#define TIME 10 sleep(TIME)[/CODE] but i am trying to do something like that: [CODE]char time; // or …

Member Avatar for somename
0
258
Member Avatar for somename

HI guys. Jeezz, perl forum is kind of abandoned ;/ Anyway, maybe some one will have an idea. I want to write a selfkilling perl prog :D Ok, i got a simple prog which shows up a simple tk window with some text in it, to go to the next …

Member Avatar for katharnakh
0
91
Member Avatar for somename

Hi everyone. I got a total newbe question and i am new to c programming. I want to write a program that will executing commands , written in separate text file. Lets say, in perl i got something like that: [CODE]open (F,"<file.txt"); $x = <F>; if ($x == "2"){ system …

Member Avatar for somename
0
94