base

C++ Derived Class problems

I am making a game in C++ and am having problems with my derived class. I have a base class called GameScreen which has a vitrual void draw() function with no statements. I also have a derived class called MenuScreen which also has a virtual void draw() function and a derived class from MenuScreen called TestMenu which also has a void ...

Is there any built-in way to convert an integer to a string (of any base) in C#?

Convert.ToString() only allows base values of 2, 8, 10, and 16 for some odd reason; is there some obscure way of providing any base between 2 and 16? ...

What's your best trick to break out of an unbalanced quote condition in BASE SAS?

As a base SAS programmer, you know the drill: You submit your SAS code, which contains an unbalanced quote, so now you've got not only and unclosed quote, but also unclosed comments, macro function definitions, and a missing run; or quit; statement. What's your best trick for not having those unbalanced quotes bother you? ...

How do I inherit subroutines in Perl with 'use base'?

How do I apply 'use base' in Perl to inherit subs from some base module? I'm used to C++ inheritance mechanics, and all the sites I googled for this caused more confusion then help. I want to do something like the following: #! /usr/bin/perl #The base class to inherit from use strict; use warnings; package 'TestBase'; #--------------...

Forward Declaration of a Base Class

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...

Inheriting a Linq to SQL class and cast the result of a linq query

I am writing an application where we will need to extend a basic entity into a number of different things (eg employee, vehicle etc). The design is as such that there is a Entity table and a second table with type specific values eg an employee will have an ID Number but a vehicle will have a registration number. I have inherited from ...

Android BaseAdapter : position not really the position?

I am so confused when my list view using a BaseAdapter goes off the screen, each row no longer maintains a consecutive position. I don't know how else to explain it other than this. If my BA/LV shows 4 items on the screen, and I add a view that displays a TextView of each row, it shows 0,1,2,3 for the row numbers (which is correct). But...

C#: How do I call a static method of a base class from a static method of a derived class?

In C#, I have base class Product and derived class Widget. Product contains a static method MyMethod(). I want to call static method Product.MyMethod() from static method Widget.MyMethod(). I can't use the base keyword, because that only works with instance methods. I can call Product.MyMethod() explicitly, but if I later change Widg...

What do I need to do when I include output from an ASP.NET .aspx page in a HTML page? Something like <base>

I have a ASP.NET file at http://localhost/nn/n.aspx Output from processing that file is included in http://localhost/index.asp. Is there some general or specific things I should do so that the ASP.NET code sitting on the client knows were it is? Setting <form action="http://localhost/nn/n.aspx makes it post to the right loca...

base_convert in .NET

Does .NET have a native function that is equivalent to PHP's base_convert or will I need to write my own? I want to convert from any base to any other base -- where either the 'to' base or the 'from' base can be any integer 2-36. Example of the PHP function: base_convert($number_to_convert, $from_base, $to_base) // convert 101 from bin...

Search in SVN repository for a file name

Issue:- Search in SVN epository for with file name. The Problem is:- We have a bulk repository for code contain thousands of folder and sub folder, i want to search under this repositor with file name or with some word. Exp:- Root folder a\ b\ c\ d\ e\ f\ab\ f\ab\cd.txt I want to search for cd.txt but don...

Unique base class instance

Hi all, i'm developing a c++ dll that containts three classes: say base class Base, Derived1 and Derived2 class. The scenario: class Base { //ctor, dtor, members and methods here } class Derived1 : public Base { //ctor, dtor, members and methods here } class Derived2 : public Base { //ctor, dtor, members and methods here } T...

How to convert an arbitrary large integer from base 10 to base 16?

The program requires an input of an arbitrary large unsigned integer which is expressed as one string in base 10. The outputs is another string that expresses the integer in base 16. For example, the input is "1234567890987654321234567890987654321234567890987654321", and the output shall be "CE3B5A137DD015278E09864703E4FF9952FF6B62C1CB1...

How do I determine an image url string is without a base domain through javascript?

I'm capturing data from an external url using php and throwing it back to my page via ajax to load images. My problem is the external url have some images that are relative("images/example.jpg") so I have to prepend their base domain("http://www.example.com) so I can load it in my page. Problem is some of the images includes a base domai...

Quickest way to convert a base 10 number to any base in .NET?

I have and old(ish) C# method I wrote that takes a number and converts it to any base: string ConvertToBase(int number, char[] baseChars); It's not all that super speedy and neat. Is there a good, known way of achieving this in .NET? EDIT: I should clarify - I'm looking for something that allows me to use any base with an arbitrary s...

How do you rebase hyperlinks and content in an ASP.NET page?

I have an ASP.NET page to handle "404 page not found" it's setup by configuring the <customErrors> section in my web.config file and setting the custom error page for 404 errors in IIS manager. It works as expected for pages in the root of my website but doesn't work in a subdirectory of the site - the hyperlinks and content in my custo...

FileMakerPro equivalent for Linux?

I've got a possible client who has mocked up an application in FileMakerPro, shown it to me, and said "can you do this, but I want it to run on both Linux and Windows XP?" He wants this application to sell with hardware that he currently sells. The main page of the app basically has a normal form at the top with the result of one query...

Xcode iPhone - Base SDK, Active SDK difference?

What's the difference between the "Base SDK for all configurations" and the "Active SDK" in Xcode? ...

Base Class Library

I am new to C#, C++ and .Net. I am currently returning to programming from a stint in Networking and Cisco engineering. I used to program on IBM mainframes etc using Cobol, assembler, easytrieve, Rexx and clist etc so the command syntax is reasonably familiar to me as are programming standards and structures. However I am having quite ...

Fastest base conversion method?

Right now I'm working on a project which requires an integer to be converted to a base 62 string many times a second. The faster this conversion is completed, the better. The problem is that I'm having a hard time getting my own base conversion methods to be fast and reliable. If I use strings, it's generally reliable and works well, bu...