Microsoft Windows lets programmers draw GUI elements using the look and feel of the current theme using functions like DrawThemeBackground and DrawThemeText. The elements are specified by Class, Part, and State, as described at the Parts and States page at MSDN.
Unfortunately, the page is not very informative (at all!). So the question ...
Hi,
I have an Activity in which user can update a specific information clicking in a button near a label. This buttons than triggers a Dialog where I have some fields to get user input and a button to finish editing.
My problem is that I am not able to get a reference to the button declare in the dialog specific xml layout. The button...
I just explained packet sniffing, ARP injection, and session hijacking to my non-CS roommate using analogies and a simple language, and he completely understood it. He thinks it's really interesting (and pretty straightforward at its core), and he wants to learn more.
What books / material can I refer him to that explains these sorts o...
I have a problem returning an object that was created in other thread.
The situation is this, my app need to send some request to remote server and wait an answer.
In the main thread (1) i have a method called SendAndWait. This method put a message in a message queue for be sent and wait for an answer.
Another thread (2) send the message...
I have joined a new group that has coding guidelines that (to me) seem dated.
But just rallying against the machine without valid backup is not going to get me anywhere.
So I am turning to SO to see if we can up with rational reasons for/against (hey I may be wrong in my option so both sides of the argument would be appreciated).
The g...
if I have a function like that:
void doSomething(int& aVar)
{
// do something
}
and I have this:
int *aVar = new int;
*aVar = 10;
doSomething(*aVar);
Why should I call *aVar? isn't aVar already an address?
...
Point 1):
In one solution called CustomBehaviorsSolution, I have two projects - one is class library and another is silverlight class library project. The silverlight class library project has the class files which are 'linked' to the files of the first project. The solution compiles successfully.
Point 2):
I have another solution whi...
I have this other assembly which has a folder with 10 UserControls and I reference the assembly in XAML so I can use them.
xmlns:usercontrols="clr-namespace:Company.Project.OtherAssembly.UserControls;assembly=Company.Project.OtherAssembly"
However, when I try to use the UserControls with <usercontrols:someUserControl /> it only finds ...
Ok so I -roughly- want this code:
test1.m:
Foo *foo = [[Foo alloc] init];
foo.x = 1.0f;
[staticClass bar:*foo.x];
staticClass.m:
-(void)bar:(float *)argVar
{
*argVar += 1.0f;
}
So I'm pointing the argVar to a property of the Foo class. Obivously the current code doesn't work.
What's the proper syntax for/way to do this?
...
Why this code doesn't work?
public function get($key) {
return isset($_SESSION[$key]) ? &$_SESSION[$key] : false;
}
Error
Parse error: syntax error, unexpected '&' in C:\Arquivos de programas\EasyPHP-5.3.3\www\myphpblog\code\sessionstorage.class.php on line 12
Thank you.
...
I have a C# dll and want to use it in VB.NET. I'm using C# 2008 Express and VB 2008 Express. I have added a reference in a VB project to the C# dll. When I create an instane of a class in the C# dll, it gives the following error messsage: "Type 'RF.RabinFingerprint' has no constructors". How do I fix this?
My C# dll code:
using System;...
Note the following code:
Control foo = null;
Control bar = null;
int i = 0;
protected void Page_Load(object sender, EventArgs e)
{
test();
test();
Page.Controls.Add(foo);
}
void test()
{
i++;
bar = new Control();
bar.Controls.Add(new LiteralControl(i.ToString()));
if (foo == null)
{
foo = new Co...
Hello,
I need to create something like this. Have several nodes ( NODE A ) with:
C++, PHP, PLSQL, JAVA, etc... ( in each node )
And for, each one of these nodes i will have something like (NODE B):
1 - medium skills;
2 - good skills;
3 - guru;
I have a reference field in (NODE B) to (NODE A) but i have always to create the same refe...
I don't know where I got the idea before but a year ago I wrote this in php:
<script type="text/javascript" src="http://www.mydomain.com/getmarkers.php"></script>
Now I'm ready to convert this website to an ASP.NET MVC website and I'm wondering what the best way is to convert this into something more 'normal?'.
The options ...
I'd like to create a function which can cope with JSON in the following nested format. The keys will change ie
conditions - could be anything and the subcondition key could be anything but the structure remains the same.
My function is defined as
populatePageEditorMenu: function (jsonPath, topLevel, childLevel){
and called by
...
I'm not even sure if the title reflects what I want to do. Here's backstory. I have a movieclip with 5 'holder' movieclips in them. They are my containers for dynamically added movieclips.
The parent containers has an instance name of pyramid, the holder instance names are labeled after the 6 food groups, i.e., 'grainholder', 'fruithol...
I want to check if two references point to the same object. It seems I can simply use
if ($ref1 == $ref2) {
# cheap numeric compare of references
print "refs 1 and 2 refer to the same thing\n";
}
as mentioned in perlref, but I vaguely remember seeing the use of some function for the same purpose. Is there any reason I shouldn't u...