|
Garth J Lancaster wrote: and its only one way of doing it)
I strongly doubt that.
|
|
|
|
|
I dont get you - I did not say 'it was the only way' (which would definately make me wrong)
for solving 'simple' issues, there's usually
a) brute force
b) anything smarter than brute force, a class of algorithms - in this case AI MinMax
are you implying that it cant be solved in some brute force manner ?
|
|
|
|
|
My bad, I misunderstood you. I thought you actually said that minimax was the only way of dealing with connect-four, which obviously isn't.
That being said - what exactly do you mean by brute force? How more brute can it get than minimax?
|
|
|
|
|
Member 1033907 wrote: How more brute can it get than minimax?
A baseball bat with a nail in it? The none holdy end obviously.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
More precisely, i need the following embeddable video player displayable in an HTML window. I managed to make an HTML file but I would like to be able to use it independent of my web browser. Basically make my own mini browser that can only use either the file with the embedded code, or even better, utilize the code to display the video viewer.
The embedded code is the following (I added the quotes to be sure i wasn't creating running code in the message):
"""""""
|
|
|
|
|
You don't need the quote marks, you can't post anything dangerous in your messages. We also have code tags for these kinds of things, a like so:
<code></code> which makes code look like this
Or perhaps what you would want to be using <pre></pre>
which does this
But moving forwards, you can have a web browser control on your form that you can display web pages in. Its basically just an instance of IE running in your window. You have some control over it, but not alot. Check it out here[^].
My current favourite word is: Delicious!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Yeah ive been tinkering with it. But all i can do is define a static location for the file on my machine. The other thing i could do is host it online, and be able to manually set a path. Is there a way to incorporate the html file into the executable, and have the webbrowser object automatically open that file? This way I can use the app on any computer and it will load the video player.
Update!!!!
This is a pic of what i managed to make. The trick is basically a basic webbrowser with resizing abilities stripped away and some trickery with the window boundaries. So ultimately my problem is this. This program relies on the fact that an HTML file exists is specific location on my computer. I would like to make this app portable by including the html file inside the executable. I dont have the means to host the html file online.
modified on Friday, May 1, 2009 10:11 PM
|
|
|
|
|
You can add the html file as an embedded resource, or add it to a resource file (like the ones Visual Studio generates, they store all sorts of strings pictures and other stuff).
To make it an embedded resource, just add the file to your solution and in its properties to it to an embedded resource. To then get the the file back out you should be able to do something like:
Stream myHTMLFile = Assembly.GetExecutingAssembly().GetManifestResourceStream("MyFile.html");
You could then pass that stream into a StreamReader and get a string representing your HTML which you can set yourself. Or save it to disk somewhere as a temporary file and point to that.
My current favourite word is: Delicious!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
I wrote some COM+ Applications Using Microsoft .NET Enterprise Services and its work fine.
But i don't know how to debug it.
I try to use "attached to process" and it is not stop on the break point ( the break point is valid - the modules are up ).
Someone know how to debug this thing ? and why its not stopping on the break point ? ? ?
Thanks ...
|
|
|
|
|
how would u enable and disable ur nic card in C#. i searched a bit and found about WMI but then msdn showed that wmi doesn't have any function like disableNIC or enable... so if anybody has a good link... or can provide help, i will really appreciate it...
thanx
|
|
|
|
|
Seems your not the first to ask this question try[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It would also be much appreciated if you could fully spell your words. And perhaps less of the ellipses, but maybe that's just me.
There may not be a specific function to disable a NIC (there could be more than one you know), but I bet that around somewhere is a function that disables a hardware device, and that just nearby is a function you can use to find hardware devices.
Of course, that google search which Mycroft Holmes linked to probably has all the information you need. You'll just need to do a little reading.
My current favourite word is: Delicious!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
I have managed to put a listbox in my listview and have gotten the box to appear but it is empty. I want to click on the Edit link and based on the datakeyname value pass the parameter to the objectdatasource to fill the listbox. I'm trying to use IEnumerable and am not getting it. Can someone help with an understandable example. Or another way to do it.
<asp:listbox runat="server" selectionmode="Multiple" id="lbNoAuthorizations"
="" datatextfield="AuthorizationDefinition " datavaluefield="AuthorizationID" width="400px" datasourceid="odsAuthorizations">;
<;/asp:ListBox>
<asp:objectdatasource
="" id="odsAuthorizations" runat="server" selectmethod="GetAuthorizations" typename="Authorizations">;
<selectparameters>;
<;asp:Parameter Name="PersonnelNumber" />;
<selectparameters>;
;
|
|
|
|
|
well u r on the wrong forum plz select the right forum and go to asp.net forum where u will find the right person for it.
but can we put a button over a button, or in other words can we write code of a button in another button.
the answer is no. i guess that?
|
|
|
|
|
i'm teaching myself c#. i got through polymophism, pointers, linked lists, and data structures in C++ in college decades ago. however, I'm spacing on the easy sh*t it seems. Can someone help me out?
using System;
...
using System.Windows.Forms;
namespace WindowsFormsApplication4
{
...
public class character
{
protected Hashtable charSheet = new Hashtable();
protected Hashtable mutantStats = new Hashtable();
protected Hashtable mutantPower = new Hashtable();
public void character()
{
charSheet.Add("Name", "");
...
mutantStats.Add("Tactics", "");
}
public void character(string nm,int xp,int lvl,int str,int dex,int sta,int spe,int hea,int soa,int def)
{
charSheet.Add("Name", nm);
...
mutantStats.Add("Defense", "");
}
...
|
|
|
|
|
The error does tell you what it the problem is. Basically, you can't have a method name that's exactly the same as the class name. BTW - if you're using .NET 2 (or later), you have better options than Hashtable available to you. You may want to use the generic Dictionary class.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
If public void character() and public void character(string nm,int xp,int lvl,int str,int dex,int sta,int spe,int hea,int soa,int def) ,
are meant to be constructors remove the void. Leaving just public character(..... .
Constructors do not have a return type.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
yeah fixed. thanks. getting better at getting bugs fixed using MSDN search. hopefully keep the stupid sh*t to a minimum.
|
|
|
|
|
Today I ran into an issue on my inventory application. Someone came and got 20 items. Well I have only set it up to print a "Hand Receipt" for one item. They select the item from the ListView and it passes the SQL ID to the report and runs it.
So I have two questions....
How can I print these without actually loading my form that has the reportviewer control in it? If I can't do this.. what would be a good way to pass multiple ID's then query the database for all the rows and pass that to the reportviewer? I know how I can do this with passing a Array containing the ID's and running multiple sql querys for each ID and adding it to a datasource.. but.. that seems kind of intensive...
I just think I'm overlooking a simple way and can't figure it out.
|
|
|
|
|
I figured it out... I found a sample on Microsoft.com for printing without viewing
|
|
|
|
|
I am working on a project where I import a Word document into a richtextbox, and, based on certain criteria, save some lines from the richtextbox into a list array. Finally, I add each array element to its own richtextbox; actually, an array of richtextboxes. The only problem I am experiencing is that the appearance of bullets changes in the richtextbox array. Bullets are displayed as § or o, depending on the bullet type in the original document. I would appreciate any insight offered.
Thank you in advance.
Ed
|
|
|
|
|
hi all,
I am using a GridView Control in my application to display some records. Inside the GridView, i am also displaying a CheckBox and a TextBox on each row. The textbox is initially disabled in the view version. after click 'Edit' button, I want to enable the TextBox when the CheckBox on the same row is Checked and disable it when it CheckBox is Unchecked. I want to achieve this functionality If anyone knows how to do this, please tell me...it's very very urgent...
this is how my GridView looks:
<asp:TemplateField HeaderText="ck1" SortExpression="ck1" >
<ItemTemplate>
<asp:CheckBox ID="ck1" runat="server" AutoPostBack="true" >
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="text1" SortExpression="text1" >
<EditItemTemplate>
<asp:TextBox ID="TextBoxMax" runat="server" Text='<%# Eval("text1") %>;' BorderStyle="None" Enable="false">
</asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="TextBoxLb" runat="server" Text=<%# Eval("text1") %>' Enabled="true" />
</ItemTemplate>
</asp:TemplateField>
all posts will be greatly appreciated...
thanx in advance...
|
|
|
|
|
You are aware that we have an ASP forum, right?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
solved by using onclickevent with editIndex.
|
|
|
|
|
Hi my Friends
how can i convert text in the text box to the int value or somthing esle?
or in general how can chage datatypes text--> int int--->text or ...
Thans`s for Thire Regard .
|
|
|
|