|
I guess you have to know more about exactly what I'm doing but when I search for a text sting in a hex editor as a unicode string, the string has dots in between each character. What I'm trying to do is search for a halo 3 service tag written in that format inside an xbox 360 profile based on what the user puts in as their service tag, and then have it search and find and replace the service tag with what the user enters in the second text box.
|
|
|
|
|
krt72012 wrote: but when I search for a text sting in a hex editor as a unicode string, the string has dots in between each character
That's because Unicode characters have two bytes and you're looking on the byte level. However, inside a textbox, in .NET, the string is unicode and it's shown just as a string. That is, the A has two bytes to represent it, but you just see the A.
krt72012 wrote: What I'm trying to do is search for a halo 3 service tag written in that format inside an xbox 360 profile based on what the user puts in as their service tag, and then have it search and find and replace the service tag with what the user enters in the second text box.
Ah - OK. Well, if you're in .NET, it will show as unicode. Then you can use File.ReadAllText to read a file, the Replace method on the string class to replace the text in textbox1 with the text in textbox2, and File.WriteAllText to overwrite the file in it's changed format. If the two strings need to be the same length, you'd need to validate that, and of course, if the text entered is so simple that it appears elsewhere in the text to where you WANT to change it, that will be changed as well. In that case, you'd need to use the Find methods to find the actual index and do some work with the substring method to build your new string ( or the replace method may take parameters to specify where in the string it's allowed to look )
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Hi,
I just finished a client which consume a WCF, but it seems to use only IE proxy setting.
I searched Internet and found this article[^] about how to set and HTTP proxy on WCF client-side.
The problem is because my WCF Server is also on local, so ACTUALLY the client app not go out LAN at all (at least that my understanding ) -> not use the Proxy Setting.
Please tell me how i could test this code.
thanks in advance.
|
|
|
|
|
If your service is on the same machine of the client, it shouldn't use a proxy at all.
If you are using the machine name in place of localhost (or 127.0.0.1) in your web service address, it is possible that the proxy is not recognizing it as a remote address. You could try to add it to the proxy exclusion list.
|
|
|
|
|
my service is actually on another machine but still on LAN, and i had to by pass proxy to connect to service. But IMO that means the proxy setting was not used at all, wasnt it??
Also I searched and found this free web service for testing[^]. Is there any site like this for WCF.
|
|
|
|
|
I wondered if somebody could help me. Im progamming in Visual Studio C# and I´d like that as soon as I execute my program it starts searching for bluetooth devices, without showing anything, in background. And when I push a button, the box with the BT devices available appear. Any suggestion?
Thanks a lot
|
|
|
|
|
You can use 32feet[^] library for working with bluetooth devices from c#.
|
|
|
|
|
Hello,
Can any one tell me how to update the member variable of my windows service from another windows Application. I just need to update a flag variable from external windows application. I want to implement this in c#. The Windows service is already made. Just need to set the flag. This flag is needed to control the launch of another windows application from this running windows service.
modified on Monday, November 16, 2009 3:52 AM
|
|
|
|
|
There are some ways.
You can use self-defined service commands, a small TCP/IP connection, named pipes or maybe names events / shared memory. For the last of these possibilities have a look at this posts.
Hope that helps.
Greetings
Covean
|
|
|
|
|
Thank you for your response. If we develop a windows service in VC++ we can add an "Interface" and can add "Method" to it. This method can be exported to outside applications. This Method can be used by external applications by calling CoCreateInstance() and can get the pointer to the interface and this pointer can call the function. I just like to have similar Implementation but both the Windows Service and Windows Application need to be implemented in c#.
Prasad
|
|
|
|
|
The easiest way is to control your service with user-defined service control commands.
See ServiceBase.OnCustomCommand and ServiceController.ExecuteCommand.
Greetings
Covean
|
|
|
|
|
Thankyou Covean,
With this approach i implemented and is working. The Link http://www.codeproject.com/KB/dotnet/WindowsServices.aspx is helpful.
Thanks,
Prasad
|
|
|
|
|
Probably not what you're looking for but perhaps you could simply use some external resource that both applications may access?
If the service uses a FileSystemWatcher it can receive an event when a file changes, and if it only opens the file for reading there should be no problems with the file being in use or anything like that. So the app needing to inform the service of something would simply update a file, or place a new file in a directory, or put the information in a database.
Or why not use a message queue? This would also let you queue messages regardless of whether or not the service is up and running of the time of creating the message.
I'm sure there are many other possibilities, but generally speaking it seems like an odd way of interfacing between applications to have one application directly modify the state of another - you could hardly get further away from the good OOP practice of encapsulation.
|
|
|
|
|
|
hi
how to open program through C# program and give this program focus - in Windows Mobile ?
thank's in advance
|
|
|
|
|
Hi to all,
I want to send image through other details.
For Example My xml is like this and I want to send like as string (Return type as string).
<xml>
<uid>xxxxx </uid>
<logoimg>Here My Byte code<logoimg>
......
......
<xml>
How can i do it, user after getting the xml how he can save it as image again..
Please give me all details..
|
|
|
|
|
Shaik Haneef wrote: Please give me all details..
Google. Or just do it, all you need to do is add a method that returns a bitmap.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Please Give me accurate link.. I can't found so that I am posted in forums.
|
|
|
|
|
Your profile says that you have 2 years of .NET experience. Is this true ?
I found examples in seconds. The ones I found, sent the image back as a byte array then put them in a memory stream, and built the bitmap using Bitmap.FromStream. I'm not sure you can't just return a bitmap, but if all else fails, that seems like the trivial way to do it, to me.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
What do you a link for, the google search[^]? The second result is an article here on code project addressing your precise question.
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
www.JacksonSoft.co.uk
|
|
|
|
|
Every thing we if we found in google why this forums available & why you need to ask again to search in google, Hmmmmmmmmm I found my solution by my Own
http://www.dailycoding.com/Posts/convert_image_to_base64_string_and_base64_string_to_image.aspx[^]
|
|
|
|
|
hi...
I have a question.
how to restore SQL database with SQLxpress?
suppose SQL not installed.
tanks
|
|
|
|
|
Member 4118635 wrote: how to restore SQL database
Member 4118635 wrote: suppose SQL not installed.
What are you smoking, and can I have some ?
If there's no database installed, what do you expect to restore your DB to ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|