Hey so i’ve made a text game using the pdCurses library and microsoft opperating system tools and i would like to make it work on any computer. Here are my includes:
#include <iostream>
#include <time.h> // or "ctime"
#include <stdio.h> // for
#include <cstdlib>
#include <Windows.h>
#include <conio.h>
#include<curses.h>
#include <algorithm>
#include <string>
#include <vector>
#include <sstream>
#include <ctime>
#include <myStopwatch.h> // for keeping times
#include <myMath.h> // numb_digits() and digit_val();
myStopwath/Math.h includes:
#include <stdio.h>
#include <math.h>
#include <tchar.h>
Do i need to make some kind of installer wizard like most downloadable programs? Can i simply throw the dlls, libs, and headers in a folder? or is there a much simpler way for such a small program? Thanks! =)
BTW: all i want to be able to do is show someone my game from another computer, not being chained to this computer only and msVS++
Based on your comment, I suppose you want… let’s call it “deployability” rather portability, which usually refers to the ability to run a program across different platforms.
Looking at your includes, everything saves PDCurses should be included in a standard Windows install (although if you use a particularly new version of the VC++ compiler, you might not get it to work on older Windows). For PDCurses, if it provides its DLL, you can place it side by side with the .exe and it should work. Alternatively, look into static linking, which will embed a copy of the library inside your executable.
To be 100% sure, you can use Dependency Walker to check exactly which DLLs your program depend on, cross-check with the internet and bundle whatever you need.