Hello,
I faced one issue while working on a C code with Microsoft Visual Studio-2005 compiler.
I tried to declare a big buffer statically as :
int gbl_data[4096*4096*256];
EDIT: This declaration was a global variable in a header file.
It was giving an compilation error saying – “cannot allocate an array of constant size 0”.
Means...
I'm trying to create the following string:
<script runat="server" type="text/C#">
protected void Page_Load(object sender, EventArgs e)
{
Parent.Page.ClientScript.RegisterStartupScript(typeof(Page), "test", "<script type='text/javascript' langauage='javascript' src='test.js'></script>");
}
</script>
yet i get a comp...
What am I doing wrong?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Box2D.XNA;
//...
Type.Parse("GameObjectModel");
Compilation error:
'System.Type' does not contain a definition for 'Parse'
I am trying to get the type of a class name from a stri...
Here is my small program,
import pygame
pygame.init()
Here is my compilation command.
python myprogram.py
Compilation error,
File "game.py", line 1, in
import pygame
File "/home/ubuntu/Documents/pygame.py", line 2, in
pygame.init()
AttributeError: 'module' object has no attribute 'init'
I have pygame instal...