- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
C64 Ruled... Optimization.. Control.
- Interests
- Physics, math, programming
17 Posted Topics
Hi all, Hopefulle someone outthere can help me identify whay i'm doing wrong. I'm sure it's something simple I have overlooked. I have the following templates in my xaml. [CODE] <Window.Resources> <DataTemplate x:Key="ModuleTemplate" > <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Path=fileName}"/> <TextBlock Text="{Binding Path=baseAddress}"/> <TextBlock Text="{Binding Path=entryPointAddress}"/> </StackPanel> </DataTemplate> <HierarchicalDataTemplate x:Key="ProcessTemplate" ItemsSource="{Binding … | |
Hi All, I'm trying to bind a textbox to a listbox's selected.Content properties. The listbox displays the items as designed in the datatemplate. But I can't get a textbox to display one/any of the selectedItems properties. [B]DataTemplate[/B] [CODE] <DataTemplate x:Key="dt_Afloeser" > <Border BorderBrush="Black" BorderThickness="0.5" CornerRadius="2" Margin="2,2,2,2"> <DockPanel HorizontalAlignment="Center"> <TextBlock Name="navn" … | |
Hi, In my main wpf Window I instantiate a new wpf window at a click of a button, that collects a bunch of data. This data is stored in a class object (see below). Now when I try to pass this class to a backgroundworker I get the well-known “The … | |
Hi all, i found [CODE] <Window.CommandBindings> <CommandBinding Command="ApplicationCommands.Paste" Executed="PasteExecuted" /> </Window.CommandBindings>[/CODE] to be a very effective and useful. But I was expecting it to tunnel and not bubble. I want it to call "PasteExecuted" no matter what control is selected.. Is this possible? Without having to add this to every … | |
Hi, I'm waiting for a file, and then trying to delete it. This is what I have. [CODE] repeat file, msg = io.open("Done.txt", "r") until file file:close() os.remove("Done.txt") dbg=io.open("DEBUG.txt", "a+") dbg:write(file .. "|" .. msg); dbg:write("\n") dbg:close() [/CODE] It does wait for the file to be created (so I know … | |
Re: Hi, According to [url]http://msdn.microsoft.com/en-us/library/system.drawing.size.aspx[/url] there are no constructor that takes a string as a parameter. You have to convert the Size string to a Point struct og two Int32. If you could tell what the structure of your Size string is, then I could help with the conversion. Hope this … | |
hi all, I'm new to PHP and Java script, but would like to get som experience with em'. Im trying to make a search for a dropdown list, but it doesnt work? It is based heavily on this code [url]http://www.rgagnon.com/jsdetails/js-0089.html[/url] (wich works fine?) I have testet to see if the … | |
Hi all, Now I've spend hours on google without findeing a solution to this small problem. I have a running program that uses an access database as datasource. When startet it opens the mdb in exclusive mode. [B]Now the problem:[/B] I need to read (and only read) the data from … | |
Hi All, I have in the past years done a bunch of Genetic Algorithms, and some Genetic Programming. But now I want to do a real Genetic Programming program. I generate a random set of instruction and parameters, and run the program that they represent. 4 bit for the instruction … | |
Hi all, Im trying to read an int from a binary file.. (As I have done many times before) [CODE] int chunkLength=0; fileRead.read (reinterpret_cast<char*>(&chunkLength),sizeof(chunkLength)); [/CODE] I know (and can see) that the file contains the bytes 00 00 00 0D, so to the best of my knowledge the int should … | |
Hi all, Here is the problem; I’m trying to make two threads draw pixels in two different memory spaces at the same time. Nothing fancy, just a test program to learn about thread programming. I allocate the memory, send the address as parameters to the two threads, and in each … | |
Re: If I understand what you want to do, I would recomend you take a look at merge sort. You can use this algorithm to eighter make a new array containing the result and then print it out, or print out the values as you do the merge sort. I found … | |
Hi all, I'm not sure a allegro questing should e posted in Software Development>C++ but all other allegro questions are in this section, so here goes. Im doing some Genetic Algorithms, and normaly used OpenGL for doing the graphics, but now I reprogramming the GA to run on multicore systems, … | |
Re: Shouldn't you be able to use [B]wcout[/B] instead of cout to get the disired result? Havn't tested it, tho'. Kind regards, - Henning | |
Re: Hi kz07, MrSpigot explained it very well, but I thought I would add some code, as I would do it.. [code] #include "stdafx.h" #include <iostream> #include <string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { string s = "0123456789017893469178234691"; int* numbers = new int[s.length()]; char currentChar; [/code] Now we … | |
Hi all, I’m doing some automation for a nightly deployment of some software. My program should: Open a program Send shortcut key press to the program Push a button And close the program again. So far I can open the program, bring it to front, send shortcut keys, but I … | |
Hi All, I'm trying to make a routine that returns node number XX from a BST. The nodes are as follows: [code=syntax] struct Node { signed int type; Node* child1; Node* child2; }; [/code] I can easily count the number of nodes by [code=syntax] long Pheno::CountNodes(Node* n) { if(n==NULL) return … |
The End.