954,480 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Unable to run the application on machine without visual installed

Hi All,
I have a build an application which uses file names from a directory.
to get these file names I used the following code from MSDN.

FILE * fp;
String *extension;

// Create a reference to the current directory.
DirectoryInfo* di = new DirectoryInfo("C:\Sachin");
// Create an array representing the files in the current directory.
FileInfo* fi[] = di->GetFiles();
//Console::WriteLine(S"The following files exist in the current directory:");
// write the names of the files in the current directory.
Collections::IEnumerator* myEnum = fi->GetEnumerator();
fp = fopen("nest.lst","w+");
while (myEnum->MoveNext())
{
FileInfo* fiTemp = __try_cast(myEnum->Current);
//Console::WriteLine(fiTemp->Name);
extension = Path::GetExtension(fiTemp->Name);

fprintf(fp,"%s\t%s\n",fiTemp->Name,extension);
}

fclose(fp);
this code works using
#using with /clr option.
but i fail to run this application on another machine that doesnt have visual studio installed. As i dont how to specify this dll at run time.
thanks in advance for any help
sachin

sachin kumar
Newbie Poster
3 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

You need Microsoft .NET Framework installed on the other machine not VS. Download and install this on your second machine:
http://www.microsoft.com/downloads/details.aspx?FamilyID=d7158dee-a83f-4e21-b05a-009d06457787&displaylang=en

This is an issue Microsoft is working on as they failed to build the 2006 Windows on .NET technology. I dont need to say more, i dont need any more trouble.
Good luck.

Intel
Light Poster
30 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 

Try compiling it in Rlease mode. It should'nt look for the DLL then.

steveh
Newbie Poster
15 posts since Nov 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You