Here's my problem: I have an object that's referencing a DLL. I would like other objects to reference my object, without having to also include a reference to the DLL itself.
This is fine for the most part except there is an enum in the DLL that I would like to replicate. I could write out the enum line by line, but I'm wondering if the...
I'm sure this is covered in the documentation somewhere but I have been unable to find it... I'm looking for the syntactic sugar that will make it possible to call a method on a class whose name is stored in a hash (as opposed to a simple scalar):
use strict; use warnings;
package Foo;
sub foo { print "in foo()\n" }
package main;
my %...
I have a problem with the "Copy to output" functionality in Visual Studio 2008. Maybe I'm misunderstanding how its supposed to work.
I have a solution with four projects:
TestApp1 (Windows application)
TestAppA (Windows application)
TestProj1 (Class library)
TestProjA (Class library)
The dependencies are as follows (dependency as in...
Well, I think my problem originates in a lake of knowledge of basic C++ concepts. The problem is, in my code (below) I have the classes Header and Register. For both, I pass a reference to a ifstrem file already opened. The Header reads some bytes from it. Register has a method to return a reference of Header (which is passed in Register...
I am wondering why a structure pointer seems to be behave differently than a char pointer.
typedef struct person_struct {
char *name;
} person;
changeStructName(person * name1)
{
name1->name = "Robert";
}
changeCharName(char * name2)
{
name2 = "Jose";
}
int main()
{
person * name1;
...
Possible Duplicates:
Best reference sites for HTML and JavaScript programming
What is the best online javascript/css/html/xhtml/dom reference?
What english-language online resources do you use as a reference on HTML rules, tags and elements, and real-life compatibility information (IE 6 on Mac renders tag X only if the doctype...
Have any of you got a link to an online reference that completely decribes the C(99) standard library?
When i say describes, i mean something i can keep open and refer to when im coding.
I'm looking for something along the lines of DevGuru ECMA script Reference but for the C standard library.
...
Java/C# language lawyers like to say that their language passes references by value. This would mean that a "reference" is an object-pointer which is copied when calling a function.
Meanwhile, in C++ (and also in a more dynamic form in Perl and PHP) a reference is an alias to some other name (or run-time value in the dynamic case).
I'm...
Let's say I have a list A that needs to look exactly like list B. All the objects that B has but A does not have need to be added to A. And all the objects that A has but not B, need to be removed from A.
The reason why I need this is because I have an ArrayList of Players that I'm saving to a file. Every time I update an attribute of a...
I'm experiencing a (for me) very weird problem in Python.
I have a class called Menu: (snippet)
class Menu:
"""Shows a menu with the defined items"""
menu_items = {}
characters = map(chr, range(97, 123))
def __init__(self, menu_items):
self.init_menu(menu_items)
def init_menu(self, menu_items):
i =...
I have been trying to find a good reference book with good hands on example projects to learn from but I can't seem to find any PB10 books out there- On amazon, it looks like it goes up to 9x whilst the newest sybase version is 11 with .NET
I'm trying to pick up Powerbuilder as fast as possible and would like to find a good book to lea...
EDIT: Language is PHP.
So, I'm implementing a listener/observer pattern. One of the objects I implemented was an object for including files. Which works in a way like this:
class IncludeEvent extends Event {
protected $File = '';
public $Contents;
....
public function Begin() {
....
// this is the ONLY t...
I'm converting some old PHP 4.x code for PHP 5.3. I've come across the following, and I'm not sure what it does.
$variable =& new ClassName();
What is the difference between that, and:
$variable = new ClassName();
...
I would like to drag a dll to my project references. Is it possible? Is there an plugin for it?
...
Hi all,
I have a VS2008 solution with two projects in it. One is a web project, the other a class library project. The web project has a reference to the class library project's generated assembly.
Each project in turn references an assembly (call it "mydll") that's built from a class library project located in another VS solution. ...
I've got a C# project (call it "MainProj") which references several other DLL projects. By adding these projects to MainProj's references, it will build them and copy their resulting DLL's to MainProj's working directory.
What I'd like to do is have these referenced DLL's be located in a subdirectory of MainProj's working directory, i....
Hello,
do you use any particular site for function reference or you just google the function?
...
I've been doing my best to learn C++ but my previous training will fall short in one major issue: memory management. My primary languages all have automatic garbage collection, so keeping track of everything has never really been necessary. I've tried reading up on memory management in C++ online, but I have this shaking suspicion that...
Just like the title says, what book(s) would you recommend for learning PHP6?
I know my way around PHP5 pretty well, so I don't need a "beginner" book; just one that explains what's new and maybe some general PHP "best practices."
PHP6 & MySQL 5 for Dynamic Web Sites looks ok.
So does Professional PHP6 (although the one review worries...
I'm trying to use pass by reference in C so that the function can modify the values of the parameters passed to it. This is the function signature:
int locate(char *name, int &s, int &i)
However when I try to compile it I get this error that refers specifically to the above line:
error: expected ‘;’, ‘,’ or ‘)’ before
'&' token...