|
Wow thanks, it really is easy as that? then the passwords in the XML file are totaly safe?
Cheers.
|
|
|
|
|
They can't be accessed over the web. If your box is hacked you're still sunk though.
|
|
|
|
|
They can still be read by someone on the webserver, but by placing them outside of any web directory they cannot be browsed using an internet URL.
|
|
|
|
|
Hi,
I'm completely new to DirectX, and have managed to create a 3D yawing, pitching, and rolling rectangle that zooms in (with the help of the graphics & game programming book by Tom Miller). I need to cut out a 3D triangle chunk (straight through, nothing fancy) from one of the long sides of the rectangle (about 1/4 size of that side and midway down).
To create my yawing, pitching, rolling rectangle, I used this:
private Mesh mesh = null;<br />
public void InitializeGraphics()<br />
{<br />
...<br />
mesh = Mesh.Box(device, 0.78f, 2.0f, 0.5f);<br />
...<br />
}<br />
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)<br />
{<br />
...<br />
DrawBox(angle / (float)Math.PI, angle / (float)Math.PI * 8.0f, angle / (float)Math.PI, -0.41f, 0.8f, hDepth);<br />
...<br />
}<br />
private void DrawBox(float yaw, float pitch, float roll, float x, float y, float z)<br />
{<br />
angle += 0.01f;<br />
device.Transform.World = Matrix.RotationYawPitchRoll(yaw, pitch, roll) * Matrix.Translation(x, y, z);<br />
Material boxMaterial = new Material();<br />
device.Lights[0].Type = LightType.Directional;<br />
device.Lights[0].Diffuse = Color.Red;<br />
device.Lights[0].Direction = new Vector3(0,-1,-1);<br />
device.Lights[0].Commit();<br />
device.Lights[0].Enabled = true;<br />
boxMaterial.Diffuse = Color.White;<br />
device.Material = boxMaterial;<br />
mesh.DrawSubset(0);<br />
}
I basically tried following the same steps as above to put a black triangle into that chunk of rectangle.
private Mesh tmesh = null;
(in InitializeGraphics) tmesh = Mesh.Polygon(device, 0.5f, 3);
(in OnPaint override) DrawTriangle(angle / (float)Math.PI, angle / (float)Math.PI * 8.0f, angle / (float)Math.PI, -0.41f, 0.8f, hDepth);
and then a private void DrawTriangle(float yaw, float pitch, float roll, float x, float y, float z) with basically the same innards as the DrawBox (replace mesh with tmesh , got rid of boxMaterial , and made Color.White (so I could see it)).
I'm thinking that this isn't the way to go because it's not doing what I'd like it to do. It appears to create a triangle, but only in 1 plane (Mesh.Polygon doesn't ask for for depth like Mesh.Box does). I then tried creating a bunch of triangles to create layers and it didn't work so well either. What's the best way to cut this chunk out?
Thanks so much!
Mel
|
|
|
|
|
Hi,
I run into a localization problem. I created a framework consisting of a few custom controls I want to use in different applications. I tried to localize the controls into different languages. Now, when I include them into the applications, they never display the local language but the neutral language, although the current culture is german and all strings that are localized in the main application appear in the correct language. Only the user controls that are localized inside themselves are not displayed correctly. I don't have implemented any localization code except the generated code by the designer. Do I have to add any code that tells the controls excplicitely which culture to use?
thanks,
alex.
modified 23-Aug-18 21:01pm.
|
|
|
|
|
You have to create language-specific copies of the .resx files for your custom controls. You do this by setting the Localizable property to True. When you set the language to something other than the default it will create a .resx file with a name something like this "Control.es.resx" if you are localizing to Spanish. So you can have two .resx files. The default will be in German but if your user is on a machine set up with Spanish as the language being used, their computer will load the Control.es.resx file.
Here is a link to an article that discusses this some more.
http://www.ftponline.com/vsm/2005_05/magazine/features/lhuang/[^]
Andy
Deus caritas est
|
|
|
|
|
Thanks, but I did that. all user controls have two resx files. one named "form.resx" and one "form.de.resx". I localized them with the IDE - just as you said. But that is the point where I don't know, why the application shows the correct (.de.resx) files/localization, but the controls don't.
alex
modified 23-Aug-18 21:01pm.
|
|
|
|
|
|
i use this code to represente xml document oon treeViewer
but the attributes don't apprae in treeViewer
can you help me
<br />
try<br />
{<br />
XmlDocument dom = new XmlDocument();<br />
dom.Load(textBox1.Text);<br />
<br />
treeView1.Nodes.Clear();<br />
treeView1.Nodes.Add(new TreeNode(dom.DocumentElement.Name));<br />
TreeNode tNode = new TreeNode();<br />
tNode = treeView1.Nodes[ 0 ];<br />
<br />
AddNode(dom.DocumentElement, tNode);<br />
treeView1.ExpandAll();<br />
}<br />
catch(XmlException xmlEx)<br />
{<br />
MessageBox.Show(xmlEx.Message);<br />
}<br />
catch(Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
<br />
<br />
<br />
<br />
private void AddNode(XmlNode inXmlNode, TreeNode inTreeNode)<br />
{<br />
XmlNode xNode;<br />
TreeNode tNode;<br />
XmlNodeList nodeList;<br />
int i;<br />
<br />
if (inXmlNode.HasChildNodes)<br />
{<br />
nodeList = inXmlNode.ChildNodes;<br />
for(i = 0; i<=nodeList.Count - 1; i++)<br />
{<br />
xNode = inXmlNode.ChildNodes[ i ];<br />
inTreeNode.Nodes.Add(new TreeNode(xNode.Name));<br />
tNode = inTreeNode.Nodes[ i ];<br />
AddNode(xNode, tNode);<br />
}<br />
}<br />
else<br />
{<br />
inTreeNode.Text = (inXmlNode.OuterXml).Trim();<br />
}<br />
}<br />
<br />
|
|
|
|
|
Add a section that processes attributes similar to the processing of child nodes. Something like...
<code>
if (inXmlNode.Attributes != null)
{
foreach (XmlAttribute attribute in inXmlNode.Attributes)
{
inTreeNode.Nodes.Add(new TreeNode(attribute.Name));
}
}
</code>
if (inXmlNode.HasChildNodes)
|
|
|
|
|
i am biginer in c#
i don't know whre place the code that you give me
he^ple me please
|
|
|
|
|
How to Change the IP Address of the Local Machine Using C#.
|
|
|
|
|
1) Your subject is useless. "Help Me!" does not in any way give an indication of your question.... the whole reason to have a subject line in the first place
2) Your question is useless. It does not in any way provide enough information, nor does it provide a question that can be answered in a forum environment. There should be a link in the forum for "How to get answers to your question", you would do well to read it.
3) A google search with the EXACT text you just typed into the message body actually returns a number of useful links. For a broad question such as yours google is 100x better to look on than a forum.
Try it sometime[^]
|
|
|
|
|
Hello folks.
I see That Win32 Has alof of methods that could be useful but my problem in win32 is not to find the specific method but the problem is , How can i know the value of the constants variables and how can i determine them ?.
Cause these constants are written in Hex like 0x140 For example . i need to know how can i determine these constants in any upcoming problems in the future ?
Thanks folks
Any help will be greatly appreciated.
Mess With The Best And Die Like The Rest
|
|
|
|
|
If you're lucky they're listed on pinvoke.com. If not, they're defined in the same win32 .h file as the api itself. You can also look on msdn.com
|
|
|
|
|
hi!
can anyone plz tell me how to implement a client that does http basic authentication via web services.
the service is in java. and the client which is a destop app. in C#.
the service is supporting basic authentication....
but SoapHttpClientProtocol or WSE 3.0's WebServicesClientProtocol is unable to do it via Credentials propterty... i have tried ICredentils, NetworkCredentials and CredentialsCache but its not working. i have also set the PreAuthenticate = true.
thanx
-- modified at 0:22 Thursday 16th February, 2006
|
|
|
|
|
Hello to all,
I have to develope an RTP streaming in C#.Net. By googling i found a some description of namespace "MSR.LST.Net.Rtp".But i dont know from where can i download this dll?
Thanks.
Regards,
Divyang Mithaiwala
|
|
|
|
|
|
the link is now invalid.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
...and?
Look at the date of the post. It's over 8 YEARS OLD!
Don't reply to posts that are older than a few months.
|
|
|
|
|
any idea how to extract car plate number from jpeg image??
i trying to write this code but i need some assistance.....
mind to share with me...a source code would be nice....
|
|
|
|
|
Well, most car plates are done in a standard font
If you could create an array of images / vectors showing the framework for each possible character
(ie the skeleton of an F would be just the basic lines), and then had it search for this shape within each letter in the license plate.
What you have to allow for are lighting, the angle at which the photo was taken, possible different sizes, speeds of car etc.
Looking for a framework will allow you a pretty accurate measurement, and you can make countermeasures against specific problems (ie images on license plates etc)
Regards
James
|
|
|
|
|
|
thats great guyys...thx a lot
for the character recognition, i got think about neural network...i know its the best solution but its hard to write for me knowing that my programming level is not that good..
any suggestion of other ways to do it??
|
|
|
|
|
I've programmed a simple neural network in some hardware before and I've simulated it in C++ too. You only need to first demystify the neural network by realizing it's just standard matrix algebra then figure out how to apply the neural network to the problem.
I figure you'd have to create an image for each character on a place, feed each into the network so the network "learns" all the images, then scan the plate and pick out each letter. It's best to convert your pictures to black and white because the neural network works best when there's ample contrast. If you can't convert the pictures, then you'll have to increase the qualify of the network by adding new nodes.
If you demystify and understand a neural network, the short paragraph above makes much more sense. Good luck. I know two groups of people that used a neural network to correctly identify someone by their voice and by their faces over 99% of the time.
|
|
|
|