开发者

indexof on 64 vs 32 bit pc

i'm using the line below to find a position of the test withing HTML document and it works fine on a 64bit machine but does not work on开发者_运维技巧 my 32bit Windows 2008 server.

IntStart1 variable returns 2 on 64bit and 0000029ae on 32 bit. please help.

Int32 intStart1 = strHtmlText.IndexOf("<TABLE class=");


String.IndexOf() is one of the most widely used functions in existence. I'd be simply astounded if it did not work.

The most likely explanation is that you have different values for strHtmlText. Inspect the values of that string and I'm sure you will see what is going on.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜