|
HI
transferring quantity in shopping cart for different items different
quantity..
plz help me with code
thanx in advance...
suman.c
|
|
|
|
|
mrsuman,
Sorry, you'll have to explain a bit more. I don't understand.
Regards,
Gareth.
|
|
|
|
|
I used CheatEngine 5.4 to get two elements: an address of pointer is login.exe+005D1440 and its offset is 4C.
I'm a newbie in C# so I need an example code to find out the Address from two elements as below. Thanh you.
Here is a window named "Change Address" in CheatEngine 5.4 I got:
This pointer points to address 0D6BC004------The offset you chose bring it to 0D6BC050
Address of pointer: login.exe+005D1440 -----Offset(Hex): 4C
You can see, 0D6BC050 is what I want the C# code to print out.
Thank you again.
-=Noob=-
|
|
|
|
|
Well, get the address of login.exe, then:
IntPtr finalAddress;
unsafe {
IntPtr* _pointer;
_pointer = (IntPtr*)login + 0x005D1440;
*_pointer += 0x4C;
finalAddress = _pointer;
}
I may have gotten *_pointer , and just plain _pointer mixed up, but i don't think so.
Try it out.
My current favourite word is: Nipple!
-SK Genius
|
|
|
|
|
many thanks for taking time to look my question.
By following your help, I got address of login.exe is 000005B4 ("000005B4-login.exe" in Cheat Engine Process List).
So is here the finally code?:
IntPtr finalAddress;<br />
unsafe { <br />
IntPtr* _pointer; <br />
_pointer = (IntPtr*)0x000005B4 + 0x005D1440; <br />
*_pointer += 0x4C; <br />
finalAddress = _pointer;<br />
}
I inserted this code i got some errors:
1/Error 1 Operator '+=' cannot be applied to operands of type 'System.IntPtr' and 'int' and Error 2 Cannot implicitly convert type 'int' to 'System.IntPtr'. An explicit conversion exists (are you missing a cast?)
at the line *_pointer += 0x4C;
2/Error 3 Cannot implicitly convert type 'System.IntPtr*' to 'System.IntPtr'. An explicit conversion exists (are you missing a cast?)
at the line
finalAddress = _pointer;<br />
What was wrong?
|
|
|
|
|
Woops, sorry.
Just cast the int as an IntPtr:
*_pointer += (IntPtr)0x4C;
and just add the star to the last _pointer:
finalAddress = *_pointer;
Then assuming i didn't mess anything else up, it should work *crosses fingers*
A pointer with a '*' infront of it means "the value at this address".
And if you ever see '&' infront a regular variable (not a pointer) it means "get the adress of this value".
My current favourite word is: Nipple!
-SK Genius
|
|
|
|
|
|
Ok, try something like:
Process login = Process.GetProcessesByName("login.exe")[0]; //assuming the first login.exe is the one you want
then the address you want is probably:
login.Modules[0].BaseAddress;
or
login.Modules[0].EntryPointAddress;
Hopefully, one of those is the address you are after, open up CE and check the address it gets, then compare it with the Base and EntryPoint addresses, and see if they match up.
My current favourite word is: Nipple!
-SK Genius
|
|
|
|
|
hi SK Genius, how are you?
Yes, "login.exe" is exactly gotten from
login.Modules[0].BaseAddress;<br />
here is my code, please takes a look. There's something about it I want to learn from you:
<br />
Process login = Process.GetProcessesByName("login")[0];<br />
IntPtr i = login.Modules[0].BaseAddress; <br />
int pAdd = (int)i + 0x005D1440; <br />
int x, temp;<br />
unsafe<br />
{<br />
int* xpointer;<br />
xpointer = (int*)(pAdd);<br />
x = *xpointer;<br />
}<br />
temp = x;
This code was built successfully but when this program was run, I got a warning "AccessViolationException was unhandle" : "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
at the line: x = *xpointer;
Then, it was not responding
How to pass this? Please help me, it seems that I nearly reach my goal. Thank you SK Genius
|
|
|
|
|
|
It was solved. I tested with PINBALL.EXE to print out the score players get and it worked.
Thanks to SK_Genius, arikp and Chris Kolkman
|
|
|
|
|
Hi I am using IIF condition for textbox expression in SSRS .I used following condition,
=IIF(sDenom = 0,0,sNumerator/sDenom)
Now when sDenom is '0', I get #ERROR as result. I tried a lot to find the problem but couldn't succeed.
Finally I had to use following work around :
=IIF(sDenom = 0,0,sNumerator/IIF(sDenom = 0,1,sDenom))
And this worked.Can anyone exlpain the reason for this.
|
|
|
|
|
Sounds like the Iif function is behaving like the dodgy Iif in VB.Net.
You expect it to work like a true ternary operator that shortcuts - but it really just acts like a function. So it tries to evaluate all the arguments first, and then checks the condition.
Very annoying... doubly so because the usual use of a ternary operator is: mystr = foo==null ? "Null!" : foo.ToString();
|
|
|
|
|
yes it is annoying but cannot help it
i searched a lot in SSRS blogs and then found the mentioned workaround
wouldn't it be great if we can get the source code
anyways i guess we will have to live with this
|
|
|
|
|
I'm trying to add a reference to a web service on a remote sharepoint 2003 server and I keep getting an error:
There was an error downloading 'https://portal.example.com/site/_vti_bin/usergroup.asmx'.<br />
<br />
The request failed with an empty response.
It comes up with a description that looks right in the web page view though. Here's a quick screenshot:
http://i223.photobucket.com/albums/dd58/armo_2007/webservice.png[^]
I'm connected to the Internet through a proxy, could this be the issue? Or security on the server?
It's my first time using a web reference so I'm probably doing something stupid, any help would be appreciated.
|
|
|
|
|
How do they work?? Any tip/article would be appreciated.
ps. Well, dont misunderstand me for I'm an old man and for there are many proxy avoidance websites out there to use for free, I was just wondering "how can they do that".. Where I live, even YouTube is blocked!
Thank you guys
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Have you come up with any good ideas?
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
|
Hi,
i want to retrive data from database to arraylist ---
i wrote the code --but the content of arraylist is showing "sysytem.data.datarow"...please check my code and give me solution.
mycode is :
ArrayList empList = new ArrayList();
string connection = @"Provider=Microsoft.Jet.OLEDB.4.0;" +
@"Data source= C:\NorthWind.mdb";
OleDbConnection myconnection = new OleDbConnection(connection);
myconnection.Open();
//OleDbCommand mycommand = new OleDbCommand("select * from cellproducts", myconnection);
//OleDbDataReader empReader = mycommand.ExecuteReader();
OleDbDataAdapter da = new OleDbDataAdapter("select * from cellproducts", myconnection);
DataSet ds = new DataSet();
da.Fill(ds, "cellproducts");
foreach (DataRow row in ds.Tables[0].Rows)
{
empList.Add(row);
}
return emplist;
murali krishna
|
|
|
|
|
I don't get it - what's your problem?
You are adding "row" which is a DataRow-object to your ArrayList - so of course all the items of your ArrayList will be "DataRow"s.
With "showing" I guess you are talking about the ToString() function (or maybe you are adding the ArrayList to a listbox or something - and yes this will show the datatype.
So maybe you can tell us what you want to do with the content of the list and then we will try to help you.
|
|
|
|
|
Here i want to store database values in arraylist ( upto now ).
then after some i want to use that arraylist values into datagrid or table.
murali krishna
|
|
|
|
|
avvaru.murali wrote: then after some i want to use that arraylist values into datagrid or table.
So why do you need the ArrayList? You already know how to load the data into a DataTable and that can be used directly as the datasource for a dataGrid (or any other data bound control for that matter).
|
|
|
|
|
Hi All,
Could you help me please.
" I want to change my line color while debugging, the line which is yellow by default.
But i want to change line color from yellow to Dark green (or) any other color.
How it is possible?
Please help me.
Thanks
|
|
|
|
|
Sophia Rekhi wrote: How it is possible?
Yes
Menu:
Tools > Options
Enviroment > Fonts and Color > Display Items
Here you can choose any display item and Change the ForeColor and BackColor
|
|
|
|
|
Hi Abhijit,
Thanks a lot for u r help.
|
|
|
|