Search Results

Showing results 1 to 40 of 56
Search took 0.01 seconds.
Search: Posts Made By: Eddy Dean
Forum: C Nov 16th, 2006
Replies: 3
Views: 3,879
Posted By Eddy Dean
The second link was really helpful, I did not find that one yet.

Now I should be able to read to an different process, but there are just two problems left. How do I get the pid, how do I get the...
Forum: C Nov 16th, 2006
Replies: 3
Views: 3,879
Posted By Eddy Dean
Hello,

I want to be able to read the memory of a process in Linux. After some googling I've read that ptrace can be used to this. The syntax of ptrace is as follows:

int ptrace(int request,...
Forum: C++ Sep 2nd, 2006
Replies: 5
Views: 2,817
Posted By Eddy Dean
// snapshot.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <stdio.h>
#include <Tlhelp32.h>

using...
Forum: C++ Sep 2nd, 2006
Replies: 5
Views: 2,817
Posted By Eddy Dean
I don't know why these errors occur, but you might want to try creating processsnapshots to find the handles.

This way is a bit harder, and it's much more code, but it might just work, right?

...
Forum: C++ Aug 28th, 2006
Replies: 6
Views: 1,035
Posted By Eddy Dean
: error C2143: syntax error : missing ';' before 'constant'
: fatal error C1004: unexpected end of file found
Error executing cl.exe.


1st: You need to add a ; somewhere. I have no clue where,...
Forum: C++ Aug 27th, 2006
Replies: 14
Views: 2,525
Posted By Eddy Dean
Wouldn't shellexecute work?


ShellExecute(NULL, NULL, "epi1.htm", NULL, "C:/folderwithmovies", SW_SHOWDEFAULT);


This code can be used to open epi1.html which is located in...
Forum: C++ Aug 25th, 2006
Replies: 13
Solved: XTEA Encryption
Views: 4,137
Posted By Eddy Dean
// xtea.cpp : Defines the entry point for the console application.
//

#include <stdafx.h>
#include <stdio.h>
#include <iostream>
#include <windows.h>
#include <string>

using namespace std;
Forum: C Aug 24th, 2006
Replies: 18
Views: 4,040
Posted By Eddy Dean
Splitting a string is if you have one string, and separate it to 2 strings at a set location.

I cannot give you an example on this now because I'm not at home. Just google for string split c++.
...
Forum: C Aug 24th, 2006
Replies: 18
Views: 4,040
Posted By Eddy Dean
int strLength = str.length()-1;
int x= 0;
while (x<strLength)
{
int j=0;
while (j < 4){
newString[j] = str[x];
cout<< newString[j];
j++;
}
Forum: C Aug 23rd, 2006
Replies: 5
Views: 1,908
Posted By Eddy Dean
It might sound harsh, but we're (at least, Me) are not interested in how urgent this is for you.

Next time you post please use proper English, punctuation etcetera. Also choosing a proper title...
Forum: C++ Aug 23rd, 2006
Replies: 13
Solved: XTEA Encryption
Views: 4,137
Posted By Eddy Dean
Wow... That's true, I must've totally overseen it. This is because this project involves data communication. Usually it will read the size of the packet, and then decrypt the rest. This might indeed...
Forum: C++ Aug 22nd, 2006
Replies: 13
Solved: XTEA Encryption
Views: 4,137
Posted By Eddy Dean
What I want to achieve:
I want to be able to encrypt and decrypt data with an XTEA algorithm. The key will get loaded from an external program.

What am I trying to do in the given code:
In the...
Forum: C++ Aug 22nd, 2006
Replies: 13
Solved: XTEA Encryption
Views: 4,137
Posted By Eddy Dean
That's the same as my code, except that my code splits it into 8-byte blocks... Thanks for your reply, but unfortunately it didn't help.


Greetz, Eddy
Forum: C++ Aug 22nd, 2006
Replies: 13
Solved: XTEA Encryption
Views: 4,137
Posted By Eddy Dean
I still didn't fix it. The decrypted string is not equal to the buffer I start with.

Anyone, please help me. I posted the code in above post.


Greetz, Eddy
Forum: C Aug 22nd, 2006
Replies: 3
Views: 1,124
Posted By Eddy Dean
I believe that you need to put 0x in front of a number if it needs to be hexadecimal (or was it $??)


Greetz, Eddy
Forum: C Aug 22nd, 2006
Replies: 9
Solved: ????
Views: 1,317
Posted By Eddy Dean
I am really sorry that you don't really feel at home on this nice forum. I do not know any of your posts, but I do believe that you could be a bit more precise with your spelling, punctuation...
Forum: C Aug 22nd, 2006
Replies: 6
Views: 1,703
Posted By Eddy Dean
EDIT: It seems like Micko was just a minute too fast. He is right. cin.get() won't work in C.

--------------------old post----------------------
Then add cin.get() at the end of your code (before...
Forum: C++ Aug 20th, 2006
Replies: 3
Views: 968
Posted By Eddy Dean
Please get a new compiler... Dev-C++ maybe (search google for dev-cpp borland). It's loads better.


Greetz, Eddy
Forum: C++ Aug 19th, 2006
Replies: 13
Solved: XTEA Encryption
Views: 4,137
Posted By Eddy Dean
Because you don't have the program I load the key from, XTEAKey doesn't contain a key.

A key I get is ~9p<›¸*%-Zvæ7‘.

But as you probably notice my computer can't handle some of these...
Forum: C++ Aug 18th, 2006
Replies: 13
Solved: XTEA Encryption
Views: 4,137
Posted By Eddy Dean
You're right, but it does not fix the problem.

Thanks anyway,
Eddy
Forum: C++ Aug 18th, 2006
Replies: 13
Solved: XTEA Encryption
Views: 4,137
Posted By Eddy Dean
Hello everyone,

I am trying to get an XTEA algorithm to work. I read the key from another process of which I'm sure it has a valid key at a specific location in memory.

My encryption algorithm...
Forum: C++ Aug 12th, 2006
Replies: 5
Views: 9,155
Posted By Eddy Dean
That worked, thanks a lot!

Don't know why I didn't figure this out with plain logic... Why would you want to clear something before you even use it?


Thanks a lot,
Eddy
Forum: C++ Aug 12th, 2006
Replies: 5
Views: 9,155
Posted By Eddy Dean
Sorry, I didn't quite catch that.

Did you take a look at my code?
It starts up the WSA-thing, then it cleans, then it starts the socket, which gives an error.

Greetz, Eddy
Forum: C++ Aug 12th, 2006
Replies: 5
Views: 9,155
Posted By Eddy Dean
This was supposed to be an edit, but I did not find an edit button, my apologies.

I called WSAGetLastError and it returned 10093.

According to MSDN error 10093 means:


WSANOTINITIALISED...
Forum: C++ Aug 12th, 2006
Replies: 5
Views: 9,155
Posted By Eddy Dean
Hello everyone,

I am trying to create a "proxy" for a program. I will try to explain how I am going to do that.

The program I want to write a proxy for sends and receives data to/from a server....
Forum: C Aug 8th, 2006
Replies: 5
Views: 1,269
Posted By Eddy Dean
If the list to sort will only consist of integers and you know the smallest and the largest value you can also use counting sort. Rather fast, very easy.


Greetz, Eddy
Forum: C Aug 8th, 2006
Replies: 5
Views: 1,269
Posted By Eddy Dean
Wikipedia has a whole page dedicated to sorting algorithms:

http://en.wikipedia.org/wiki/Sorting_algorithm

Snippet taken from the Dutch wikipedia, "invoer" is the array you want to sort and...
Forum: C Aug 7th, 2006
Replies: 3
Views: 1,343
Posted By Eddy Dean
I suggest you use the search function next time.

http://www.daniweb.com/techtalkforums/thread50205.html


Greetz, Eddy
Forum: C++ Aug 7th, 2006
Replies: 2
Views: 2,241
Posted By Eddy Dean
EDIT:
I did it. String to const char* conversion can be done with string.c_str()

Thanks for your help Dave! I really appreciate it




Mwah... Looking pretty good... I'll try it.
Forum: C++ Aug 6th, 2006
Replies: 2
Views: 2,241
Posted By Eddy Dean
Hello everyone,

I downloaded the source of an internet file and need to filter a specific part of it.

I know how the string::size_type position = Line.find("World:</TD><TD>"); function works,...
Forum: C Jul 31st, 2006
Replies: 19
Views: 24,295
Posted By Eddy Dean
I still don't really get what you mean with the database. Is it an SQL database you need to put it to (or another type of database)? Or do you just mean an array(table) inside your own program?

...
Forum: C Jul 31st, 2006
Replies: 19
Views: 24,295
Posted By Eddy Dean
// reading a text file
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main () {
string line; //this will contain the data read from the file
ifstream...
Forum: C Jul 31st, 2006
Replies: 3
Views: 2,029
Posted By Eddy Dean
C# is decompilable, so it isn't really usefull for bigger projects, unless it's open-source anyway.

I have absolutely no clue about MFC tutorials, so I can't help you, sorry
Forum: C++ Jul 21st, 2006
Replies: 40
Views: 5,964
Posted By Eddy Dean
#include <windows.h>
#include <iostream>
int main(){
POINT c;
GetCursorPos(&c);
std::cout<<c.x<<", "<<c.y;
}

is enough...
Forum: C++ Jul 21st, 2006
Replies: 6
Views: 39,548
Posted By Eddy Dean
char* url;
string sUrl;


HINTERNET hINet, hFile;
hINet = InternetOpen("InetURL/1.0", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );
if ( !hINet )
{
return false;
}
Forum: C++ Jul 21st, 2006
Replies: 6
Views: 39,548
Posted By Eddy Dean
Hello,

I've had some problems converting a string into a char. I've tried many, many things, but it didn't seem to work.

I'll post the code below:


char filename[1024];
char* url;...
Forum: C++ Jul 20th, 2006
Replies: 7
Views: 1,032
Posted By Eddy Dean
#include <iostream>
#include <string>


int main()
{
string name;
name="mark";
cout<<name;
return 0;
Forum: C++ Jul 20th, 2006
Replies: 40
Views: 5,964
Posted By Eddy Dean
I don't think you'll be able to do this with 2 weeks of C++ experience. Of course I have no idea about how good you are at C++, but I think it's too advanced.

You should search www.msdn.com, there...
Forum: C++ Jul 20th, 2006
Replies: 7
Views: 1,032
Posted By Eddy Dean
Don't you think you need a Main() function?
Forum: C++ Jul 18th, 2006
Replies: 4
Views: 1,089
Posted By Eddy Dean
If you're planning on making rather simple programs Visual Basic is nice too. Designing a gui is really easy and to put code "under" a button is really easy.

Still I always use C++, GUI of no GUI....
Showing results 1 to 40 of 56

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC