Search Results

Showing results 1 to 40 of 69
Search took 0.01 seconds.
Search: Posts Made By: laconstantine
Forum: C++ Aug 5th, 2009
Replies: 1
Views: 195
Posted By laconstantine
I am very interested in ASM I wana learn write it and read it like a pro..
Now i'm in CLASS issue I want to know how c++ Class definition looks in ASM code..

for example this code


class...
Forum: C++ Jul 18th, 2009
Replies: 6
Views: 550
Posted By laconstantine
this thread is so ** up
Forum: C++ Jul 18th, 2009
Replies: 5
Views: 312
Posted By laconstantine
You didnt get my point right I wana change function of a program by injecting a dll into it.

for example we have 2 progs.
1 is .exe which has function DisplayMessage and main funcs call it..
2.a...
Forum: C++ Jul 18th, 2009
Replies: 5
Views: 312
Posted By laconstantine
can you explain why it wont work?because i already hooked regular variables this way
im totaly new to it..
and yes i heard about detours libary but is there anyway to do it without it? because i...
Forum: C++ Jul 18th, 2009
Replies: 5
Views: 312
Posted By laconstantine
I am playing with function hooking so I wrote simple program that calls
DisplayMessage Function which prints out Hello..

void DisplayMessage()
{
cout << "Hello";
}


After this one i found...
Forum: C++ Jul 16th, 2009
Replies: 0
Views: 244
Posted By laconstantine
My first school project after first year of c++ studying in 10 grade for summer to code virtual stack emulation in C++..

Well i've done it perfectly finished just today !!
It supposed to be for...
Forum: Assembly May 7th, 2009
Replies: 7
Views: 557
Posted By laconstantine
Thanks man anyway i found the explanation here
http://www.delphi3000.com/articles/article_3771.asp?SK=

and why did you say that i dont understand lick of asm
the fact that you are a pro coder...
Forum: Assembly May 6th, 2009
Replies: 7
Views: 557
Posted By laconstantine
Thank you man you explained me a lot of new things I never knew before.

But can you specify what happens inside the asm when I call a kernel function.

Because you said that kernel funcs dont...
Forum: Assembly May 6th, 2009
Replies: 7
Views: 557
Posted By laconstantine
ok but why the caller should balance the stack after the function execution doesnt the function balances the stack when it pops the arguments??
Forum: Assembly May 6th, 2009
Replies: 7
Views: 557
Posted By laconstantine
ok but why the caller balance the stack??

doesnt the function balances it after it returns??

just call _printf


why does the caller balances the stack and not the function itself??
Forum: Assembly May 5th, 2009
Replies: 7
Views: 557
Posted By laconstantine
I started with masm32 and i have some questions

I read this



I also read that in Pascal Convention the called func responsible for stack and in C the caller is responsible..

Can anybody...
Forum: C++ Mar 26th, 2009
Replies: 14
Views: 899
Posted By laconstantine
ahh i got your point!
First of all you need to create an exe which says hello world.
And than you should create another program that injects a dll into the first program which will add "hello...
Forum: C++ Mar 25th, 2009
Replies: 0
Views: 231
Posted By laconstantine
O.k guys the reason for the new thread because no one understood the previous thread even I didn't understand what I wrote lol!

Now listen to my problem.

I wrote an exe file that loads a dll...
Forum: C++ Mar 25th, 2009
Replies: 1
Views: 223
Posted By laconstantine
Listen guys i just discovered that the problem comes when I try to use the hello function from the dll.


any ideas?? please?
Forum: C++ Mar 25th, 2009
Replies: 1
Views: 223
Posted By laconstantine
OK so I got my executable file that should load all the functions from
"message.dll" so I can use them.

But every time I run my executable file I am getting an error that say my executable is...
Forum: C# Jan 12th, 2009
Replies: 4
Views: 1,230
Posted By laconstantine
ok its helped

but now i am getting an error at my main func

"The name 'add' does not exist in the current context"

any ideas?
Forum: C# Jan 12th, 2009
Replies: 4
Views: 1,230
Posted By laconstantine
listen i got to compile one file to a dll and one to an exe
all in one project

so i got 1 file called


main.cs


// File: main.cs
Forum: C# Jan 11th, 2009
Replies: 2
Views: 285
Posted By laconstantine
ok so i got 2 files which i want compile to dll and 1 to exe

i got this command:

csc /out:MyClient.exe /reference:MyLibrary.DLL MyClient.cs

i totaly have no clue where do i add this at...
Forum: C++ Jul 12th, 2007
Replies: 10
Views: 1,228
Posted By laconstantine
I've got a great site too.

its called google..
Forum: C++ Jun 16th, 2007
Replies: 16
Views: 2,215
Posted By laconstantine
I learned c++ by reading books and asking my friends weird questions lol.
Forum: Game Development Jun 14th, 2007
Replies: 5
Views: 2,685
Posted By laconstantine
3dbuzz have VTM's on coding a 2D game called "Evil Monkeys" with OpenGL API

The VTM's package costs money.

Here is their website www.3DBUZZ.com
Forum: C++ May 31st, 2007
Replies: 15
Views: 3,160
Posted By laconstantine
I'm not going to use it anyway.
I just asking:
When the object is destroyed the value at the memory location where he been is still the same as it was when the object destroyed, until another...
Forum: C++ May 31st, 2007
Replies: 15
Views: 3,160
Posted By laconstantine
But the values in this memory location still will be the same until some variable will take this place and change them right?
Forum: C++ May 31st, 2007
Replies: 15
Views: 3,160
Posted By laconstantine
You mean to reserve memory for new variables and anything else?
yup?
Forum: C++ May 31st, 2007
Replies: 15
Views: 3,160
Posted By laconstantine
What do you mean?

You mean that this memory that returned can be used with other program variables or over variables from my program, becuase the function end and the objects are destroyed?

...
Forum: C++ May 31st, 2007
Replies: 15
Views: 3,160
Posted By laconstantine
So if i do this

char* sample2()
{
char p[] = "Israel";
return(p);
}

the return value is an address of some memory block (garbage).
But now its about the compiler:
Forum: C++ May 30th, 2007
Replies: 15
Views: 3,160
Posted By laconstantine
when you say garbage you mean the values that is in the memory location that returned in second example?
Forum: C++ May 30th, 2007
Replies: 15
Views: 3,160
Posted By laconstantine
Hi Everyone,

I have the following function,

char* sample1()
{
char *p = "Israel";
return(p);
}
Forum: C++ May 24th, 2007
Replies: 12
Views: 1,791
Posted By laconstantine
Ah sorry i thought in your post 10 you wrote that something is wrong here i just miss understood, anyway thanks:)
Forum: C++ May 24th, 2007
Replies: 12
Views: 1,791
Posted By laconstantine
what is wrong here?
void foo()
{
cout << "Foo Called";
}

int main()
{
(****foo)();
return 0;
Forum: C++ May 24th, 2007
Replies: 12
Views: 1,791
Posted By laconstantine
So its
(***FuncName)()

Its legal because functions have no values so the dereferencing asterik has no effect on the function name?
Forum: C++ May 23rd, 2007
Replies: 12
Views: 1,791
Posted By laconstantine
Why this is legal?

(****bar)() ;

and here is not?
int x =2;
int *ptr = &x;
cout << (***ptr);

???
Forum: C++ May 22nd, 2007
Replies: 12
Views: 1,791
Posted By laconstantine
Why both of the next examples are the same?

Ex1 : int*(*foo)() = Function;
Ex2: int*(*foo)() = &Function;


Notice: In the second example i'm using & operator.

That means that c++ takes...
Forum: C++ May 17th, 2007
Replies: 9
Views: 2,522
Posted By laconstantine
Dont use void at the main part.
Forum: C++ May 16th, 2007
Replies: 3
Views: 1,470
Posted By laconstantine
Forum: C May 12th, 2007
Replies: 27
Views: 3,764
Posted By laconstantine
"That Works" means yes?
Forum: C May 11th, 2007
Replies: 27
Views: 3,764
Posted By laconstantine
The array name is used to represent the whole array (memory block) in 3 situations:
as narue said
1) As the operand to sizeof
2) As the operand to the address-of operator
3) As a string constant...
Forum: C May 11th, 2007
Replies: 27
Views: 3,764
Posted By laconstantine
cout << &arr << endl << &arr[0];

why they both have the same address??

arr is the array not the first element?
Forum: C May 10th, 2007
Replies: 27
Views: 3,764
Posted By laconstantine
Okay i think i got it now.

int arr[2] = {2,3};
we are using a memory block to the first element we are giving the value 2 and the second 3.

The array name is used to represent the whole array...
Forum: C May 10th, 2007
Replies: 27
Views: 3,764
Posted By laconstantine
so when we declare an array:

int arr[2] = {2,3};

we are taking some bytes "as a memory block"

then creating a pointer called 'arr' and pointing him to the block.

then when we using it in...
Showing results 1 to 40 of 69

 


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

©2003 - 2009 DaniWeb® LLC