Forum: C++ Aug 5th, 2009 |
| Replies: 1 Views: 215 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: 588 |
Forum: C++ Jul 18th, 2009 |
| Replies: 5 Views: 323 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: 323 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: 323 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: 260 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: C++ Mar 26th, 2009 |
| Replies: 14 Views: 939 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: 238 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: 234 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: 234 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++ Jul 12th, 2007 |
| Replies: 10 Views: 1,250 I've got a great site too.
its called google.. |
Forum: C++ Jun 16th, 2007 |
| Replies: 16 Views: 2,273 I learned c++ by reading books and asking my friends weird questions lol. |
Forum: C++ May 31st, 2007 |
| Replies: 15 Views: 3,264 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,264 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,264 You mean to reserve memory for new variables and anything else?
yup? |
Forum: C++ May 31st, 2007 |
| Replies: 15 Views: 3,264 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,264 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,264 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,264 Hi Everyone,
I have the following function,
char* sample1()
{
char *p = "Israel";
return(p);
} |
Forum: C++ May 24th, 2007 |
| Replies: 12 Views: 1,835 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,835 what is wrong here?
void foo()
{
cout << "Foo Called";
}
int main()
{
(****foo)();
return 0; |
Forum: C++ May 24th, 2007 |
| Replies: 12 Views: 1,835 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,835 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,835 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,635 Dont use void at the main part. |
Forum: C++ May 16th, 2007 |
| Replies: 3 Views: 1,500 type casting
cout << (int)x; |
Forum: C++ May 8th, 2007 |
| Replies: 49 Views: 5,150 I realy realy realy appreciate this 10000 replys help !! |
Forum: C++ May 8th, 2007 |
| Replies: 49 Views: 5,150 |
Forum: C++ May 8th, 2007 |
| Replies: 49 Views: 5,150 Its the last time i asking :)
please can you read it and say me if its correct so i will know for sure? |
Forum: C++ May 8th, 2007 |
| Replies: 49 Views: 5,150 Okay listen i got it all, i very appreciate your help and all others here that tried to help me ;)
Now after i understood every thing let me test my self, because i'm doubting about this stuff and... |
Forum: C++ May 8th, 2007 |
| Replies: 49 Views: 5,150 No no no my post 40 is not right.
tell me if this one correct.
Long time ago strings were not constants.
so long time ago it was allowed to assign string literal to a pointer because strings... |
Forum: C++ May 8th, 2007 |
| Replies: 49 Views: 5,150 look if i understood it good.
you say that long time ago string literals were not constants. so long time ago its was allowed to assign string literal to a a pointer because string literal long... |
Forum: C++ May 8th, 2007 |
| Replies: 49 Views: 5,150 Oh sorry you maybe confused with my questions because of my poor english.
Look all i want to know is
char *ptr = "String";
Why here the assignment is legal?
its should be ilegal -... |
Forum: C++ May 8th, 2007 |
| Replies: 49 Views: 5,150 Can you just tell me if its correct so that i can be sure?
If you say " Close Enough" so maybe you just tell me what is correct once for good?? |
Forum: C++ May 8th, 2007 |
| Replies: 49 Views: 5,150 Correct me here if i'm wrong..
You mean some time ago people needed to use strings somehow so they said that the compiler should allow assign address of const string to a pointer, then they did... |
Forum: C++ May 7th, 2007 |
| Replies: 49 Views: 5,150 char *str = "Hello";
the "const drop" Is it the feature which standard mandates or its an addition?? |
Forum: C++ May 7th, 2007 |
| Replies: 49 Views: 5,150 Ok you explained me all very nice
i'm getting everything now except
why here the const is droped?
char *str = "string";
can you explain it more specific here? |
Forum: C++ May 7th, 2007 |
| Replies: 49 Views: 5,150 I use "Microsoft Visual C++ 2005 Express Edition".
and with this compiler i cant modify "Literal strings" because they are constants.
So in my compiler if i do this:
char *str = "Literal... |
Forum: C++ May 7th, 2007 |
| Replies: 49 Views: 5,150 Dont you see??
char *str = "HI";
*str = 'z';
In this case the program will crash with bus error on RunTime !! TEST IT YOUR SELF!!!
1.Or its will crash with runtime error.
2.Or its just will... |
Forum: C++ May 7th, 2007 |
| Replies: 49 Views: 5,150 You dont understand me do you?
All i ask is
char *ptr = "Hi";
*ptr = 'x';
Why here the compiler doesnt give any errors???
char *ptr = "Hi"; |