Hi all, I have a very strange problem and the following code wont compile:
#ifndef MYWINDOW_HPP_INCLUDED
#define MYWINDOW_HPP_INCLUDED
class MyWindow{
private:
WNDCLASSEX window_class;
HWND window_handle;
HDC device_context_handle;
HGLRC open_gl_render_context;
MSG message;
BOOL quit...
Hi
I'm new to java.
I'm trying to use some dynamically loaded classes in my application.
The application doesn't know classes , Just it try to load a class by name that its name came from input.
It doesn't know class (So I can't use casting) but just needs to call some methods of that class (every class should have that methods).
I thoug...
Hello,
A class A possesses an instance c of a class C. Another class B has to modify c through C::setBlah(); method.
Is it bad to create an accessor C getC(); in A and then use A.getC().setBlah() ?
Or should I create a method A::setBlah(); that would call C::setBlah(); ? Isn't it annoying if there are several methods like that ?
...
I am using Netbeans. How to know all the classes of a package(say lucene, which I am using) that are actually being used/loaded by my program. I want to keep my distribution small, therefore remove all the classes that are not being used at all.
...
Hi all
I am trying to build a PHP class to check the username and password in MySql.
I am getting "mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\2010Portfolio\football\main.php on line 38" database has errors:" message.
When I move my userQuery code out of my Class, it works fine. Only if it is inside my C...
Hi guys I'm using this wonderful class here to do a bit of code embed filtering: http://simplehtmldom.sourceforge.net/. It extends the PHP DOM document class.
Pretty much what I am doing is parsing a string through this class that contains embed code, i grab the unique bits of information eg id, width, height send through a handler fu...
I'm writing an interactive fiction game in java from scratch. I'm currently storing all of my game object references in a hashmap in a singleton called ObjectManager. ObjectManager has a function called get which takes an integer ID and returns the appropriate reference. The problem is that it returns a BaseObject when I need to retur...
I'm developing an AS3 application which has some memory leaks I can't find, so I'd like to ask some newbie questions about memory management.
Imagine I have a class named BaseClass, and some classes that extend this one, such as ClassA, ClassB, etc.
I declare a variable:
myBaseClass:BaseClass = new ClassA();
After a while, I use it...
Hello,
i have some class which constructs itself from string, like this:
CurrencyVector v = new CurrencyVector("10 WMR / 20 WMZ");
It's actually a class which holds multiple currency values, but it does not matter much.
I need to change type of column in my LINQ table (in vs 2010 designer) from String to that class, CurrencyVector.
...
I have created a class say A which has some functions defined as protected.
Now Class B inherits A and class C inherits B. Class A has private default constructor and protected parameterized constructor.
I want Class B to be able to access all the protected functions defined in Class A but class C can have access on some of the functio...
Hi Guys,
I have 2 anchor links (a.selector) and when one is clicked it has a class applied to it of 'active-arrow' and the click also removes the class of the same name from the other anchor as well as lowering the opacity to 0.2.
I then want to have a fade effect when the user hovers over the anchor that doesn't have 'active-arrow' ap...
I have an optgroup like this:
<optgroup label="Eller välj Län" title="Eller välj Län" style="background-color:#FC9;">
<option value="Blekinge Län">Blekinge</option>
<option value="Dalarna Län">Dalarna</option>
<option value="Gotlands Län">Gotland</option>
</optgroup>
Problem is, only in Firefox, the class applies to all options i...
If you have a namespace that contains a property in ClassA and a class that has the name of that Property somewhere else in your project and both are in the same namespace this won't cause conflicts will it?
So lets say I have a class named Car
namespace Dealer
{
class Vehicle
{
// the main class that defines vehicle, so ...
Hello, I'm writing (well, completing) an "extension" of Java which will help role programming.
I translate my code to Java code with javacc. My compilers add to every declared class some code. Here's an example to be clearer:
MyClass extends String implements ObjectWithRoles { //implements... is added
/*Added by me */
public s...
Hi !
If you add a directory in your Visual Studio project and you add a class inside it, the namespace will respect the whole path the directory inclusive.
But sometimes, I prefer having the class in the main project namespace, although it lies in a directory structure, just because I don't want to have mess in my code.
So often happe...
When declaring a class that inherits from a specific class:
class C(dict):
added_attribute = 0
the documentation for class C lists all the methods of dict (either through help(C) or pydoc).
Is there a way to hide the inherited methods from the automatically generated documentation (the documentation string can refer to the base c...
We have two classes:
template<typename T, typename Size, typename Stack, typename Sparse>
class Matrix
and
template<typename T, typename Size>
class Iterator
Matrix should be able to return begin and end iterators and Iterator will keep a referrence to the Matrix to access the elements via it's interface. We don't want Iterator t...
Hello SO,
I'm very new to OOP and am trying my hardest to keep things strictly class based, while using good coding priciples.
I'm a fair ways into my project now and I have a lot of general use methods I want to put into an utilities class. Is there a best way to create an utilities class?
public class Utilities
{
int test;
...
Apoologies in advance for the slightly long winded code in this question
@charset "UTF-8";
/* CSS Document */
* {
margin:0;
padding:0;
font-family:Arial, Helvetica, sans-serif;
}
#wrapper {
width:900px;
margin:0 auto 0 auto;
}
#header {
background-color:#800080;
width:894px;
min-height:60px;
paddin...
I'm creating a slideshow where each slide can have:
- a video or a still
- 1 audio track or many (up to 3)
- 1 button or many (up to 3)
I was thinking that each slide can be it's own object, and then I would pass the video, audio, buttons, etc., into it as parameters:
package
{
import flash.media.Video;
public class Section
...