I have this code I'm trying to load a file .txt in my FLEX project. But something weird is happening, it's giving me this error, but the main point is... I ran this code in Flash using Dynamic text instead TextArea... and it runs perfectly, I'm starting to think that I have some problem with my FLEX software... Does somebody could help m...
It got me stuck for an hour. I happened to have a string constant with about 280 characters in it.
I was trying to use Pos to look for a substring within a long string constant. It gives the result 0 when the string is longer than 255 characters, but gives the correct result when the string is shorter.
e.g.:
pos('5', '123456789.12345...
I was writing a test case out to tackle a bigger problem in my application. I ended trying some code out on codepad and discovered that some code that compiled on my local machine (g++ 4.4.1, with -Wall) didn't compile on codepad (g++ 4.1.2), even though my local machine has a newer version of g++.
Codepad calls this a reference to refe...
Can we have a "not override a concrete method ..." compile time error when implementing interfaces ?
An example to be more clear :
I build up a framework containing interfaces. To use the framework developers need to implements some interfaces.
But if they don't override equals(Object object) and hashCode() Object methods the internal ...
Hello everybody.
I have been trying to implement my own linked list class for didactic purposes.
I specified the "List" class as friend inside the Iterator declaration, but it doesn't seem to compile.
These are the interfaces of the 3 classes I've used:
Node.h:
#define null (Node<T> *) 0
template <class T>
class Node {
public:
...
I'm trying to use code contracts with .NET 3.5 in a large desktop application project, which also have a mixed mode C++ DLL dependency, written in old managed C++ syntax.
The real solution consists of at least 20 projects, but lets assume that there is only A, B, C, and D projects, and the mixed mode M project. C depends on A, B and M. ...
I'm getting error below when I debug my ASP.NET MVC app.
Any thoughts on how I could solve this?
Any idea how the problem would have occurred in the first place? I promise you I didn't go randomly deleting dll's from deep within protected directories on my system.
Server Error in '/' Application.
Compilation Error Description...
I have written a class for managing GPU memory buffers.
I've got one method for building a buffer initialized with a chunk of CPU memory (if pData is null, then allocated block of GPU memory is not initialized, remaining with indeterminate values) and an overload for building it initialized with the same byte value:
IBuffer* CreateBuff...
I'm trying to modify this code in an attempt to make it work on an Arduino Mega. I'm pretty much new to C so, I may have made some major mistakes. By the way, this is for a self balancing skateboard.
This code is taken from an ATmega32 (from here and I'm trying to make it work on a Arduino Mega).
This code was writen for an ATmega32 d...
I'm facing a very weird problem.
This is map.h:
#define MAP_WIDTH 256
#define MAP_HEIGHT 256
typedef struct {
char exit_n;
char exit_s;
char exit_w;
char exit_e;
} room;
room map[MAP_WIDTH][MAP_HEIGHT];
void generate_map();
And this map.c:
#include "map.h"
void generate_map()
{
char room_x, room_y;
ro...
Hello evey one,
I have a web site developed on VS2005. that compiles fine.
But when i try to publish it whit the "Allow this web site to be updatable" i get the following compiller error:
error BC30002: The type 'ASP.ucDireccion' is not defined.
The problem seams to be related to a user control im accesing its public properties and me...
this is the code:
private TreeNode GetTopLevelNode(TreeNode childNode)
{
if (childNode == null)
throw new ArgumentNullException("childNode", "childNode is null.");
if (childNode.Parent == null) return childNode;
TreeNode node = childNode;
while (true)
{
if (node.Pare...
Solved
When I try to compile this program i keep getting these errors:
(50) : error C2059: syntax error :
'<=' (50) : error C2143: syntax error
: missing ';' before '{' (51) : error
C2059: syntax error : '>' (51) : error
C2143: syntax error : missing ';'
before '{' (62) : error C2059: syntax
error : 'else' (62) : er...
The following line generates a compiler error:
std::vector<int>::iterator blah = std::advance(instructions.begin(), x );
where I have declared:
std::vector<int> instructions;
int x;
The error I get is:
error C2440: 'initializing' : cannot convert from 'void' to 'std::_Vector_iterator<_Ty,_Alloc>'.
What element of that stateme...
I have three machines. one installed VS2008 another two installed SDK6 and Framework3.5 (one of these two is a build machine).
When I use MSBuild to build our application, all of them get this warning:
C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not loca...
I am trying to install the Perl module Font::FreeType on a CentOS linux box using cpan. I run sudo cpan and inside the cpan shell I run install Font::FreeType. However make fails as follows:
Writing Makefile for Font::FreeType
cp lib/Font/FreeType.pm blib/lib/Font/FreeType.pm
cp lib/Font/FreeType/Face.pm blib/lib/Font/FreeType/Face.pm
c...
public class BaseClass
{
protected void BaseMethod()
{
}
}
public class DerivedClass : BaseClass
{
public void Test()
{
DerivedClass d1 = new DerivedClass();
d1.BaseMethod(); // No error here.
BaseClass b1 = new DerivedClass();
b1.BaseMethod(); // I get compile-time error for this. Why ?
}
}
...
I have this code that does not compile anymore since I am on last F# CTP 1.9.7.8:
[<Struct>]
type MyStruct =
val mutable private _i : int
val mutable private _s : single
val mutable private _i2 : int
member t.I = t._i
member t.S = t._s
member t.I2 with get() = t._i2 * 2 and set(value) = t._i2 <- value * 2
...
Hello,
I get a compiler error when trying to synthesize a bool array like this:
// .h
#import <UIKit/UIKit.h>
@interface SomeViewController : UIViewController {
BOOL boolArray[100];
}
@property (nonatomic) BOOL boolArray;
@end
//m
#import "SomeViewController"
@implementation SomeViewController
@synthesize boolArray;
@e...
Hey there. I am trying to return an array, but the compiler is telling me that it's an incompatible type..?
My code: http://pastie.org/private/v4xn4eahkojftsghudf1g
I'm a beginner at Java, sorry about this :)
Thanks very much.
...