Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

demonrealms

Do I have to use dos??

This topic is 5654 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I''m just wondering...is there a way to create directories using visual c++ instead of dos? Becuase I think it would get kind of annoying to have to execute a dos file everytime you want to intall the program to create directories.

Share this post


Link to post
Share on other sites
Advertisement
There''s always InstallShield. This is what I see most PC games use to install their games. I''ve never personally used it before but it came standard with my Visual Studio.

Share this post


Link to post
Share on other sites
Gives me this error: --------------------Configuration: webmaker - Win32 Debug--------------------
Compiling...
webmaker.cpp
C:\demonrealms\webmaker.cpp(63) : error C2065: ''_T'' : undeclared identifier
Error executing cl.exe.

webmaker.obj - 1 error(s), 0 warning(s)
I put this code in:#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;

/* The display class goes here.
It''s for reference on when to
display a msg */

class display
{
public:
int display1;
}display;
/////////////MAIN/////////////////
int main(void)
{
// All charactors, strings, etc go here.
string usr = "[user=0]:^:[data=0]";
string NPrj = "new";
char fckver_01[28];
char input1[20];
char input2[10];
// Do all your file checks here.
ifstream fcheck_01("webmaker/user.txt");
fcheck_01 >> fckver_01;
fcheck_01.close();
while(fckver_01 == usr)
{
ofstream file_01("webmaker/user.txt");
file_01 << "[user=1]:<^>:[admin=#@545487@#]";
file_01.close();
cout << "According to our files, this is the first time" << endl
<< "you''ve used this program. If so, please see the" << endl
<< "readme text file located in webmaker/support/readme" << endl;
return(main());
}
while(display.display1 == 0)
{
display.display1=(display.display1 + 1);
cout << "Welcome to Demon Realms Studios Web Maker." << endl
<< "You should see the readme text file for the" << endl
<< "commands, tutorials, and much more. It''s located" << endl
<< "in your webdesign/support directory." << endl
<< "What would you like to do??" << endl;
return(main());
}
cout << ": ";
cin.getline(input1, 20);
if(input1 == NPrj)
{
cout << "What would you like the name to be??" << endl
<< "Project name can only be up to 10 charactors!" << endl
<< ": ";
cin.getline(input2, 10);
cout << "Creating nesessary files and directories" << endl;
ofstream file_02("project.bat");
file_02 << "md " << input2 << endl
<< "md system" << endl
<< "del project.bat";
file_02.close();
CreateDirectory(_T("c:/demonrealms/test"), NULL);
return(main());
}
return(main());
}

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!