Visual C++ :: Find And Open A File On Remote Computer
Feb 26, 2013
I have a file on one server(Windows 2003) and need to access from another server (IIS server - Windows 2008) , I have written the program for the same which works fine and I can access the file.
But when this comes to the DLL (which registered successfully on Windows 2008), its not able to find the file on Windows 2003.
View 15 Replies
ADVERTISEMENT
Oct 20, 2013
I am starting to learn C, its quite an easy language to learn from the basics, I hope to learn others as time goes, I wonna know how do I get the external / remote IP of a computer?
View 6 Replies
View Related
Dec 22, 2014
I'm looking for a way to run my console app in C# on one computer, but the actual program is ran on another computer. IE I open the file or hit "Run" in Visual Studio on computer1, the computer2 runs the program. I was looking online and found some stuff that may be applicable, but I didn't see a very clear answer.
View 6 Replies
View Related
Jan 24, 2013
I'm trying to write a program for a pong game using a tutorial online. Every time i try to run my program its telling me "Cannot find or open pdb file" I have tried running Microsoft visual c++ as administrator and checking the box next to the Microsoft symbol server. I only get a black console screen with a blinking cursor.
View 2 Replies
View Related
Mar 28, 2014
Code:
'test.exe': Loaded 'C:UsersPcDocumentsVisual Studio 2010Projects estDebug est.exe', Symbols loaded.
'test.exe': Loaded 'C:WindowsSysWOW64
tdll.dll', Symbols loaded (source information stripped).
'test.exe': Loaded 'C:WindowsSysWOW64kernel32.dll', Symbols loaded (source information stripped).
[Code]...
The thread 'Win32 Thread' (0x2d0) has exited with code 1 (0x1).
The program '[6040] test.exe: Native' has exited with code 1 (0x1). my code is not wrong but there is an error which ı dont understand ...where is my error?
View 1 Replies
View Related
Oct 9, 2012
How can I do this??
Suppose I have Win2008server and many users from defferent domains log in, so every user has its own session.
How can I obtain from the session the domain name of the user who logged in to server??
View 1 Replies
View Related
Oct 1, 2012
I managed to upload a file to a remote server with below code:
Code:
// Get the object used to communicate with the server.
FtpWebRequest request = (FtpWebRequest)WebRequest.Create("ftp://kasunl.worlditsme.com/voo.txt");
request.Method = WebRequestMethods.Ftp.UploadFile;
[Code]....
View 6 Replies
View Related
Jul 12, 2014
I am trying libtiff library (I downloaded the source codes as part of SDL2, but I test it separately). There is a test file named ascii_tag.c.
There is a line
Code:
tif = TIFFOpen(filename, "r");
and it breaks here when I run the program. Filename is:
Code:
static const char filename[] = "images/ascii_test.tiff";
and the file exists on disk, because the program just create it and closed the file handler. The error I got:
Debug assertion failed ... program name ... File: (and this is the strange thing!) f:ddvctoolscrt_bldself_x86crtsrcfstat64.c
line:64
Why it displays this path? I did not added this path to project so why it tries to call this file? I have installed VC in different location and running x86 32bit machine.
I already succeed to run test raw_decode.c where I used libtiff.lib and libjpeg.lib also here I used the libraries. I already succeed to open file there using
Code:
tif = TIFFOpen(srcfile,"r");
and srcfile = "./images/quad-tile.jpg.tiff".
Well I tried to use different path as "./images/ascii_test.tiff" but this also results in break. Where could be the problem that ascii_test.tiff cannot be opened?
Complete code:
Code:
/* $Id: ascii_tag.c,v 1.7 2008/04/15 13:32:12 dron Exp $ */
/* Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu>
* GNU */
* TIFF Library
* Module to test ASCII tags read/write functions.
*/
#pragma once
#define _CRT_SECURE_NO_WARNINGS
//#pragma warning( disable : 4355 )
[code]....
View 5 Replies
View Related
Jan 20, 2013
other posts talk about the fopen function and don't really give any solutions to this the var that has the file path is a char* and has been converted from a system::string^ it is completely valid when I paste it in windows bar.
Code:
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
if(textBox1->Text[0] == (char)'' || textBox2->Text[0] == (char)''){
MessageBox::Show("Please select a valid m3u and path", "Problem",
MessageBoxButtons::OK, MessageBoxIcon::Exclamation);
[Code]....
it crashes right at the pile.open() function call when I put breakpoints in it says , debug assertion failed and shows me the fclose.c file location and Expression: (stream != NULL)
View 5 Replies
View Related
Aug 20, 2013
Its really essential for the program I'm trying to write.
View 3 Replies
View Related
Nov 20, 2012
I'm using Visual C++ 6.0 and I'm trying to use fstream to open and read a file that is created only during runtime. This file is written by another function running on another thread, and my program will keep trying to "open" the file until it can be opened, i.e. after it's created, then read 3 numbers from it and execute the rest of its code.
The file test.txt has the content
Code:
1
3
4
My program that polls and opens the file is as follows:
Code:
ifstream fin;
std::string tfile, snum1, snum2, snum3;
long int num2, num3;
tfile.assign(argv[1]);
printf("Begin prog %s
", tfile.c_str());
[code]....
I executed the program by
Code: test_prog.exe "C: est.txt"
and waited about 3 seconds before putting the test.txt file into C:
My output was
Code:
Begin prog C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
fin is open
snum1 =
num2 = 0 num3 = 0
End of prog
The test.txt file disappears after I refresh the C: folder.
So the values for snum1, num2 and num3 are all wrong, as if the file was not read correctly.
If I put a while fin.good() loop after printf("fin is open "); for that entire block (until printing the values of num2 and num3), then I get
Code:
Begin prog C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
Cannot open file C: est.txt
fin is open
End of prog
How can I correctly read a file that is only created during runtime?
View 4 Replies
View Related
Dec 11, 2012
input X and Y then write the program to compute
Sin(X++) Cos(Y--);Sin(X+X),Cos(Y--)
and write your conclusion for
X=46 & Y=90
View 5 Replies
View Related
Oct 6, 2012
I had some software made for me by another programmer and i think he has put some sort of protection on it, so I can't use this software on any other computer apart from the one it is installed on now, how to remove this protection so I can run it off of any PC.
I have the following files in the folder.
SQLite.dll
SQLite.NET.dll
FUTautobuyer.s3db
FUT13.exe
Newtonsoft.Json.dll
SQLite3.dll
ComputerBenchmark.file
View 1 Replies
View Related
Aug 23, 2013
I am trying to use ini file for configuring my app.
But GetPrivateProfileString is not working.
I am using Windows 7. I tried "Wow64DisableWow64FsRedirection" also.
Not only this-ATLPath::FileExists is also not working.It gives an error code 0x80070002 which means:
"system could not find the file"
View 14 Replies
View Related
Jul 31, 2013
Here the max sdk plugin is looking at X:projects rather than x:program files (x86)autodeskmaxsdk Inside the autodesk folder, there is a projectsettingspropertysheets subfolder where the plugin is looking for.
Now an error pops up saying it needs X:projectsprojectsettingspropertysheets....How can I fix that?
<Import Project="........ProjectSettingsPropertySheets3dsmax.general.project.settings.props" />
I find it hardcoded / How do I set where visual studio to search the correct property setting files automatically?
View 3 Replies
View Related
Sep 22, 2014
For a while, I have been running a Windows 7 Visual Studio 2012 CPP project fine. However, today, all of a sudden, it has stopped being able to read any header files that are in relative directories. I cannot think what I have done to make this happen.
It seems to be an issue with Visual Studio as a whole, rather than my individual project, because I have created a new simple project and I am having the same problem. So, I have a CPP project at `C:/Projects/TestProject`. Then, I have a header file called `test_header.hpp`, which is located at `C:/Headers`. In `TestProject`'s project settings, I have added the directory `../../Headers` to `Additional Include Directories`. Then, my main functions is as follows:
Code:
#include "test_header.hpp"
int main() {
return 0;
}
Which gives me the error:
Code:
Error1error C1083: Cannot open include file: 'test.hpp': No such file or directoryc:projects estprojectmain.cpp11TestProject
Is there some global Visual Studio setting that is responsible for setting up these relative directories? Just in case the relative directory was not correct, I also tried a load of others, such as `../Headers` and `../../../Headers`, but these gave the same errors.
View 1 Replies
View Related
Aug 4, 2014
how could I transfer a .txt file from Computer A to Computer B using c++. (over LAN)
View 3 Replies
View Related
Apr 4, 2013
#include <iostream>
#include <cwchar>
#include <string>
#include <Windows.h>
using namespace std;
#include <shellapi.h>
#pragma comment(lib,"shell32.lib")
static HWND hBut;
#define ShellExecute;
[Code] ....
My function is the issue. I'm not sure how to write a correct function to search your computer for file 'a'.
View 3 Replies
View Related
Oct 15, 2013
I am trying to print a specific line from a textfile
e.g
I have a text file called info.txt and inside it contains the id,item name, price, quantity
Code:
1,shirt,100,10
2,pants,50,9
3,pen,20,8
I know how to find a specific word at the line in the file but how do I find and print out the specific line e.g(print out just the entire contents of line 2)?
Code:
string temDescription;
ofstream fout;
int curLine = 0;
[Code].....
View 1 Replies
View Related
Jan 1, 2014
I am writing a program in which the computer will read a txt file and encypt it. The encryption works fine, but the computer cannot read the file perfectly. If there's a newline, the scanning process stops. For example I have the following text in the txt file.
One two three four five
(newline) Six seven eight
The computer will stop reading after 'five'. I assume that is because I use fgets.
View 4 Replies
View Related
Dec 8, 2014
I am trying to use a combination of windows batch scripts as well a C++ program to put users data into one single .CSV file. Right now, I have a batch file that will output data from the command line into multiple .txt files. These files are mac.txt, serialnumber.txt, computermodel.txt, and computer name.txt. What I want to do, is to have users run the batch file, which will in turn run the .exe C++ file which will concatenate all their data into one file, computerinfo.csv. The file format for this file would be to have the mac address, serialnumber, computer model, and computer name all in their own column.
My main issue is that these individual files don't have the format that I would like, but based on the command prompt functions, there isn't really any good format. For example, the mac.txt file has the following format:
Physical Address Transport Name
=================== ==========================================================
xx-xx-xx-xx-xx-xx DeviceTcpip_{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
yy-yy-yy-yy-yy-yy Media disconnected
zz-zz-zz-zz-zz-zz Media disconnected
but all I really want is xx-xx-xx-xx-xx-xx
The other files have other issues with format, but if I can figure out this one then the others should be a piece of cake.
Also, I want the output of this to all go in one row, and as other users run this file, they will go into new rows without touching the rows above.
View 1 Replies
View Related
Jul 31, 2013
Over the last few days, I've been trying to implement a spell checker in c++ that checks if the inputted word is in the dictionary file on my computer. However, as I'm nearing completion of the project, I keep running into more and more errors, some of which I do not understand. My program is complete, albeit, with some minor bad practices (I hard coded a few things just to get the program up and running.For some reason, everything works well until I output spelling suggestions. I type in "mses" (attempting to spell mess) and it returns some strange characters. It does definitely recognize that there are two permutations that match words in the dictionary (however they are both mess due to the algorithm implemented), and I don't understand why? I will work on removing the duplicates after.
// Spell Checker.cpp : Defines the entry point for the console application.//
#include "stdafx.h"
#include <stdio.h>
#include <string>
#include <stdlib.h>
#include <fstream>
#include <iostream>
[Code] .....
View 7 Replies
View Related
Aug 26, 2014
i need to create an small windows form, with some buttons, and then those buttons will "exectute" an action on a remote webserver.
Im searching with http requestings and didn't find nothing useful for what i need.
The basic thing is that i just need to press "EXECUTE" and then c# will press one link in the Webserver. I do not need any feedback from the page. I just need that C# execute a link like localhost/startbackup.php then the actions from the startbackup.php will run.
I do not need any information regarding if the page was successful executed or not, or even if it opens one window. Nothing.
View 1 Replies
View Related
Jan 23, 2015
I have an error with unable to connect to remote server when it debug to this stream line as below :
Code :
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(FTPAddress + "/" + Path.GetFileName(filePath));
request.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials = new NetworkCredential(username, password);
request.UsePassive = true;
request.UseBinary = true;
request.KeepAlive = false;
request.Proxy = null;
[Code] .....
View 1 Replies
View Related
Oct 11, 2012
I have an MFC program created from the app wizard. It is an MDI program, reading/writing text files using Serialize. I can read the document and know that the entire document was read into my buffer without any errors. This was verified by compaing the number of bytes read with the file length.
How do I get the document to display in my main/child window?
How do I read the document from the window so I can save it back to the file?
View 14 Replies
View Related
Jul 14, 2012
I have a folder "pics" in g: drive. There I want to create some text.txt file. Thus, the final path is "g:pics ext.txt".
How can I do that?
View 3 Replies
View Related