|
This is the situation:
class Base { virtual void methodA() = 0; virtual void methodB() = 0; }; class Base_A : public Base { void methodA(); void methodB(); }; class Base_B : public Base { void methodA(); void methodB(); }; class MyClass { private: Base...
Started by Derk on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So you might have written.
Can't create object of it , but you can definately declare pointer of it.
|
|
I have a .Net app running in IIS6. The app dlls are compiled against the 3.5 framework, which is installed on the server. The app works. I hit an aspx page that has no codefile; it is an .aspx page only, which has inline code in tags. Code declares auto...
Started by Chris on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You....
In Solution Explorer, right-click the project name and then click Properties Pages and the go to the Build tab .
Presuming you are using Visual Studio 2008 then you can set the version of the .NET runtime you are targeting in the project properties .
|
|
I have a .NET 3.5 (target framework) web application. I have some code that looks like this:
public string LogPath { get; private set; } public string ErrorMsg { get; private set; }
It's giving me this compilation error for these lines:
"must declare ...
Started by Matthew Cole on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
That error should://msdn.microsoft.com/en-us/library/bb384054.aspx
Hence I would recommend you re-check the error message, and where the compiler says ....
Pages of your project and make sure that the "Target Framework" is .NET 3.0 or 3.5 .
|
Ask your Facebook Friends
|
How to declare static NSString ,if i declare within the interface as static NSString *str; and i set to property as @property (nonatomic, retain) static NSString *sportsName;
it gives error?any tutorial
Started by senthilmuthu on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's another way:
NSString *const.
They cannot be used to declare accessors for a static variable.
MyStaticString { return @"Hello world!"; }
If by static you mean global, then just declare.
|
|
Everything is fine when I declare
String a;
but it says Syntax error on token "1", invalid VariableDeclaratorId when I do this
String 1;
I guess it must be very trivial but I don't get it.
Started by Ravi Gupta on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Well, first of all, it's because it's written in the Java... .
The rules for identifiers in the Java language specification state that you cannot start an identifier with a number .
The parser can't distinguish it from the int literal, so it's disallowed .
|
|
DECLARE @ID INT ;
This statement parses fine with MS SQL Server, but gives me
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DECLARE @ID INT' at line 1
Does anyone...
Started by Ahmed Mozaly on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're looking to set a variable for just regular queries, use SET
try naming the variable without the @
DECLARE id INT;.
DECLARE is used in stored procedures/functions.
|
|
How do I declare a simple string "test" to a variable?
Started by powtac on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
A String from a File
+ stringWithContentsOfFile:encoding:error: – initWithContentsOfFile:encoding:error: + stringWithContentsOfFile:usedEncoding:error: – initWithContentsOfFile:usedEncoding:error:
Creating and Initializing....
|
|
I am reading $digit from infile and want to print it to outfile . But the Perl script is giving an error saying 'Global symbol "$digit" requires explicit package name'. But, if I do declare it globally , $digit='' , then the this value is printed to the...
Started by shubster on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It with the line:
print FILE "9 $digit";
You must declare it outside the while loop for this to be visible;
Don't declare $digit with my inside your while() loop; declare it just outside:
my $digit; while( < statement is out of....
|
|
Is it possible to declare an alias with .net type ? in c# and if so how ?
Started by TonyP on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
P = 123; GiraffeCount g = p; // ERROR, can't convert a count of giraffes into a count of popsicles.
|
|
When i'm trying to declare a function with a string parameter in .h file an error occurs. I haven't forgot to include string.h =) Everything builds fine when i'm using char[], but the i want the argument to be a string.
Started by mknight on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It would be helpful if you had posted the exact error message and a code to reproduce the error.
|