Don't be too hard on me!
Simply put:
foo.h:
#include "bar.h"
class foo {
private:
bar it;
void DoIt();
}
bar.h:
class bar {
public:
void Test();
}
foo.cpp:
void foo::DoIt() {
it.Test();
}
This will result in a:
error LNK2001: unresolved external symbol
Why?
...
can some-one please walk me threw the procces of loading a class or package in jsp with tomcat?
i think it might just be a tomcat setup issue :S my jsp file runs fine without importing or using dbpool or dbpooljar. ive tried many suggestions to other peoples similar issues without any luck. any help would be apreciated!
//============...
my ruby (on rails) class looks like:
class Foo
def self.method1
someAction
end
def self.method2
someAction
end
def someAction
//doSmth
end
end
any ideas how to make this work or achieve the same behavior some other way?
thanks!
...
I am building a menu using XHTML,CSS, and jQuery and I ran into a problem with my CSS.
Here is my test page, and here is my css.
What I am having problems with is that my .subMenu class is inheriting the properties of my #menu, the background colors and sizes are the same. I am looking for a solution that leaves .subMenu as a class s...
Is anyone familiar with a tool that generates code stubs with meaningful names from class and javadoc?
The real question should've been "I have classes without debug information and a matching javadoc, but my IntelliJ IDEA 8.0.1 (please, no IDE wars) doesn't take into account the javadoc and shows me "void setLocation(Object object, Str...
I have a JavaScript class that I have made and put it into its own .js file. When I reference the the file from a web page and create an instance of that class there is no intellisense telling me the methods\variables available, it just show constructor as the only method. But when I copy the class and past it straight into the web page ...
I'm looking for something like break for loops.
Here's some example code (using Symfony's lime) where stop() would not let the class continue and I_DONT_WANT_THIS_TO_RUN() would not be executed.
$browser->isStatusCode(200)
->isRequestParameter('module', 'home')
->isRequestParameter('action', 'index')
->click('Register')
->stop(...
I've recently started poking around in Visual Studio 2005, and I'm mucking about in Visual C++. When I double click on a control in the designer, it opens the .h file, which I've understood to be for prototype declarations, and if I put all the guts to the functions in there, I can get my program to work, but I don't like having the cod...
Socket has a constructor that takes a winsock SOCKET as parameter and stores it in a private variable:
Socket::Socket(SOCKET s) {
this->s = s;
}
I'm trying to make an abstract class "GameSocket" that will parse data from my Socket class:
class GameSocket : public Socket {
protected:
void ParseData(unsigned char* data, int s...
Is there a utility out there that will create VB.NET classes from a Dataset.xsd file? And I don't mean like the XSD.exe utility does - all that does is convert the XML of an XSD file into classes in a .vb - it doesn't append any "extended" functionality.
I'm basically looking for something that will generate the beginnings of a busin...
While I'm not entirely new to javascript I have very little knowledge when it comes to best practices. In particular, I prefer to use OOP in large scale projects like the one I'm working on right now. I need to create several classes in javascript but, if I'm not mistaken, there are at least a couple of ways to go about doing that. Can...
In my Dev C++, I am trying to create a 2D Array class that acts like a Grid.
But one of the problem is I am unsure what do for the constructor.
When I try to compile, I get the following errors:
In constructor 'Grid::Grid(int,int)':
'sqaures' is not a type
'yPos' cannot appear in a constant-expression
[Build Error] [grid.o] Error 1
Her...
Hello, I'm trying to create proper header files that don't include much other files.
(To keep them clean, to speed up compiling time, ...)
I encountered two problems while doing this:
1 - Forward declaratoin on base classes doesn't work.
class B;
class A : public B
{
// ...
}
2 - Forward declaration on STD classes doesn't work...
In PHP, if you define a class, and then instantiate an object of that class, it's possible to later arbitrarily add new members to that class. For example:
class foo {
public $bar = 5;
}
$A = new foo;
$A->temp = 10;
However, I'd like the ability to make it impossible to add new members this way. Basically I want the class to ON...
I have 2 classes, main and extended. I need to use main vars in extended class.
<?php
class Main {
public $vars = array();
}
$main = new Main;
$main->vars['key'] = 'value';
class Extended extends Main { }
$other = new Extended;
var_dump($other->vars);
?>
Who I can do it?
No valid for example:
<?php
class Extended extends Mai...
Hello
I'm currently using phpmsnclass to send messages to contacts on the MSN network. But to get the nickname on my "bot" to work I have to accept the "friend-request" my contacts has sent me.
From the debuginfo I have found that around line 1672 in the file msn.clas.php it's a kind of auto-accepting feature. But I cant use the doLoop ...
I've a DLL assembly, in which there are various classes. Each class has around 50-100 members and 4-5 functions.
How can I create a list of all the classes and their respective members using VB program. I need to show to the user for performing operation using a particular class.
Thanks
Rahul
...
Assume a requirement of implementing a class "CAR".
Now, this class contains various states like "un-ignited", "ignited", "broken-down", "punctured", etc.,
The way I look at to implement this requirement is to have boolean flags aka "properties" in the class and 'check the state' using these boolean flags inside each member function. F...
What is a Synthetic Class in Java? Why should it be used? and How can I use it?
...
I am using RapidQ (an obscure environment, I know). The programming language is Basic.
The following source code illustrates the problem:
Type MyType Extends QOBJECT
aVar as Integer
Sub SetTheVar
this.aVar = 10
End Sub
Sub DoSomething
this.Avar = 20
this.SetTheVar
SHOWMESSAGE "aVar =...