|
|
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.
|
|
|
|
|
Hi Friends ,
i have a grid and i binded a dataset to it .
now if i update any thing in grid it should reflect the changes in the datset.
what i want is i have button when i clicked that it should show me the modifed data set.
i am not able to do this as its post back it is loosing all the data.
Thanks in advance
Phani
|
|
|
|
|
I do not figure out what you actually mean, but I guess using the Cache might help.
SkyWalker
|
|
|
|
|
Hello all...
Can any one please tell me how can we add .rpt and .cri extensions in IIS (windows 2000 with crystal reports 9 installed on the same). For crystal report 8 we need to map these extensions to "C:\Program Files\Seagate Software\WCS\Wcsinsapi.dll" but this is not the case with CR 9, so i am wondering if anybody knows how will it work for crystal report 9(CR 9).
If anyone knows how to do it, that will be a great help...
People often say that motivation doesn't last. Well, neither does bathing - that's why we recommend it daily
Akhilesh Singh
|
|
|
|
|
Hi All,
I am working on a project that requires handling of custom events. Some class will raise the DataEvent of RaiseEventClass. I have to implement event handler for the DataEvent in the RaiseEventClass. Please help me how to implement event handler. Please show some codes if possible.
Below is the skeleton of the class.
Thanks in advance!
public class RaiseEventClass
{
public delegate void RaiseEventDelegate(ArrayList files);
public event RaiseEventDelegate DataEvent;
public void SearchFiles(ArrayList list)
{
DataEvent(list); //raising event for testing
}
}
A.Asif
|
|
|
|
|
|
First you should change
A.Asif wrote: public void SearchFiles(ArrayList list)
{
DataEvent(list); //raising event for testing
}
to
<br />
public void SearchFiles(ArrayList list)<br />
{<br />
if (DataEvent != null)<br />
DataEvent(list);
} <br />
just to handle the case when no handler is attached to the event.
Then if you've got an RaiseEventClass object (call it "myObj") and want to handle the event just use
myObj.DataEvent += new RaiseEventDelegate(myHandler )
where myHandler is a function like
<br />
void myHandler(ArrayList files)<br />
{<br />
}<br />
By the way: afert typing "+= new" in the line where you attach the event you can hit <tab> twice and VS will write a handler-function for you (so you don't have to check the delegate to know exactly what kind of parameter / return you have to use)
One other comment:
you should include a "sender" parameter in every event you write (like object sender, or RaseEventClass sender - this helps you handle events from many sources in the same handler function and is always a good pattern.
|
|
|
|