|
okidoki! No problemo!
|
|
|
|
|
hi,
what is an UNREACHABLE object?
thnx.
|
|
|
|
|
An object that cannot be reached.
eg, you may have a return statement before a call to new MyObject() - in which case the instance of MyObject could be considered "Unreachable"
|
|
|
|
|
An instance that cannot be accessed on any code path. Basically, an object that has no references to it or has fallen out of scope.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm using System.Net.WebClient to download HTML from Google's translation page. However, when I do that, the text downloaded is losing international/accented characters. I tried all of the various Encodings. UTF8 is the most promising of all. Unicode only has garbled characters.
System.Net.WebClient wc = new System.Net.WebClient();<br />
string url = "http://translate.google.com/translate_t?text=Hello World&langpair=en%7Czh-CN";<br />
byte[] bytes = wc.DownloadData(url);<br />
string data= System.Text.Encoding.UTF8.GetString(bytes);
The same code works (e.g. all the characters are preserved) if I substitute "en%7Czh-CN" (English to Chinese) with "en%7Cfr" (English to French).
I also tried the solution from http://www.eggheadcafe.com/articles/20050725.asp[^] but even that has the same results.
I'm displaying my string data in a multi-line textbox with Arial Unicode MS font -- which does support displaying of these characters. The textbox shows the text properly if I manually copy and paste the Chinese characters from Google's webpage into my program.
Any suggestions / tips?
Thanks much.
- Malhar
|
|
|
|
|
Hi,
I have a datagrid, and when I click on a cell, the backcolor and forecolor change while the mouse is still down. When I release the button, it turns back to normal. Is there any way to avoid the color change?
Thanks!
Mel
|
|
|
|
|
hi melanieab!
what do you want to avoid, changing its color when the mouse is down? if ever, i suggest that you just make the selectionbackcolor and selectionforecolor same as the backgroundcolor and forecolor properties.
hope this solve your problem!
-- modified at 22:58 Monday 19th December, 2005
|
|
|
|
|
Hi!
The problem is, I do have selectionforecolor and selectionbackcolor the same as forecolor and backcolor. When I let go of the mouse, the selected row is how I want it to be, it's just during the mousedown where the background and text turn what look like some default colors (control). And it's only the first time that I click on the cell that this happens. If I continue to click on it (without clicking on another cell in the meantime) the colors are just the way I want them to be.
Any ideas??? At the moment, I'm trying to make a whole new custom datagrid in the hopes that it won't have this issue. But it's going slowly, and I don't even know if it will work.
Mel
|
|
|
|
|
Currently, I am working on an OCR solution where a camera push video frames into the application. One task is template matching where I try to find a bitmap within a bitmap.
1)Is template matching worth the work related to performance (Resolution 1024x768 - 24 Bit)?
2)Are there any information or resources for this subject on the web? Google show only rare information about it.
thx
|
|
|
|
|
If you are looking for similar bitmaps contained in other bitmaps, then I suggest you start by looing at the Hausdorff distance. This can get computationally intensive.
If you feel comfortable with complex analysis, though, you might want to look into Jacek Turski's Geometric Fourier Analysis of the Conformal Camera for Active Vision. You can compute the convolution of the Fourier transforms of the complex transformation that he describes to evaluate similarities. His system models a foveated camera, though; if you don't need that, maybe just vanilla Fourier transforms and convolution computation would work.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Hello dear all
i am facing a problem in crystal report. that crystal report is working well in windows 200 server but not working in windows XP. i have created one cystal report in .NET C#. this is giving error when i open this crystal report in windows XP operating system. it display a one dilaog and get user name and password. in my sql server 2000 i have set SQL Server Authentication and when i open that report then it display a dialog. this dialog does not display in windows 2000 operating system. i use same SQL Server Authentication in SQL Server 2000.
please help what can i do for this issue
Priyank Gupta
|
|
|
|
|
I have a problem with form inheritance in .Net 2005.
When I add a control to the new form which is inherited from base form, I couldn't change its size by mouse, I only change it by using shift and arrow keys or by changing value of size from properties dialog box.
Is there any solution of this problem?
|
|
|
|
|
Dear friends,
I have a UserControl with an ActiveX control Filled in it.In fact this is a simple .NET wrapper for this COM component. I want to filter windows messages JUST for my control and prevent the COM component to receive Right Click events.
Note that I don't want to use from Application.AddMessageFilter to filter messages in all application scope. I want to prevent this message JUST in my user control.
The importatnt note is that,this OCX doesn't handle .NET MouseClick event.
Thanx...
[ _ Always there is another way _ ]
|
|
|
|
|
|
hi
I wonder of someone can help me with this Substring operation.
I have : "12.10" or "120.10"
Now I want to convert these values to : "1210" or "12010"
Basically, I want to removce the dot within my strings. How can I do this.?
Thanks
|
|
|
|
|
Locate the dot and get the string before and after:
int pos = myString.indexOf('.');<br />
string newString = myString.Substring(0, pos) + myString.Substring(pos + 1);
Or why not simply replace the dot?
string newString = myString.Replace(".", string.Empty);
---
b { font-weight: normal; }
|
|
|
|
|
Or using Trim
<italic>Work hard, Work effectively.
|
|
|
|
|
Trim only removes characters from the beginning or end of a string.
---
b { font-weight: normal; }
|
|
|
|
|
|
the best solution is Guffa's answer
string sub = "12.10";
MessageBox.Show(sub.Replace(".",string.Empty));
result is 1210
|
|
|
|
|
Hi all,
I'm working in C# with a unmanged Dll that provides me a pointer to a byte buffer (768x576) that holds some video data. Is there any fast way to access the data and work e.g. with a bitmap object?
Currently I'm converting the data by the help of: System.Runtime.InteropServices.Marshal.ReadByte
But that is to slow for me.
Any suggestions?
Thanks,
Snow.
|
|
|
|
|
|
Thanks for your hint.
But I knew already that I can use pointers and I also used code simiar to the example. What I dont like in this solution is the "byte per byte" transfer to the new buffer. Isnt there a way to copy a complete block (like in C++ "memcpy" wich should be faster than a byte per byte transfer)?
Thanks again
Snow
|
|
|
|
|
MDI Container has child forms, in VS.net2003 automatically "Windows" menu (is menu u can cascade forms for example) shows child forms' names but at VS.net 2005 menuitem object doesnt have any property you can set to show names. :S
How can i do?
|
|
|
|
|
Is there any way i can skip this message, its not so bad on one computer, i can just click, do not show this message again.
But how can i unblock the app for other computers.
|
|
|
|