Click here to Skip to main content
15,897,273 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Can u hand over CStrings from MFC to a WTL DLL? Pin
Stuart Dootson30-Mar-08 2:25
professionalStuart Dootson30-Mar-08 2:25 
GeneralRe: Can u hand over CStrings from MFC to a WTL DLL? Pin
DaveB231-Mar-08 0:10
DaveB231-Mar-08 0:10 
QuestionATL service: Call to LoadLibrary Fails. Pin
abhijitr28-Mar-08 5:53
abhijitr28-Mar-08 5:53 
GeneralRe: ATL service: Call to LoadLibrary Fails. Pin
Stuart Dootson29-Mar-08 16:33
professionalStuart Dootson29-Mar-08 16:33 
Questionwhy WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired? Pin
Ram-Murthi28-Mar-08 1:43
Ram-Murthi28-Mar-08 1:43 
AnswerRe: why WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired? Pin
Ram-Murthi30-Mar-08 19:42
Ram-Murthi30-Mar-08 19:42 
AnswerRe: why WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired? Pin
PuttyTree23-Nov-11 20:47
PuttyTree23-Nov-11 20:47 
GeneralUnable to open file for reading using C++ I/O [modified] Pin
ComplexLifeForm26-Mar-08 23:34
ComplexLifeForm26-Mar-08 23:34 
Hi
I am trying to open a file for reading using C++ I/O. The call to read is simple

#include <fstream>
using namspace std;

int _tmain()
{

std::string infile(_T("testreport.txt"));
ifstream fin(infile.c_str(), ios::in);

if(!fin)
{
cout << "unable to open file for reading";
}

return 0;
}

when I execute the program I always get the failure. However if I specify the full path to the file like "d:\\testdata\\debug\\testreport.txt", I am able to open the file successfully.

I am using VC++ 2005 compiler and debugging with in VC IDE. How do I make VC++ to automatically take the relative path of the file.

This problem only occurs when I am debugging through the VC++ IDE.

Thanks and Regards

modified on Thursday, March 27, 2008 5:49 AM

GeneralRe: Unable to open file for reading using C++ I/O Pin
led mike27-Mar-08 5:00
led mike27-Mar-08 5:00 
GeneralRe: Unable to open file for reading using C++ I/O Pin
CPallini27-Mar-08 5:29
mveCPallini27-Mar-08 5:29 
GeneralRe: Unable to open file for reading using C++ I/O [modified] Pin
ComplexLifeForm27-Mar-08 7:21
ComplexLifeForm27-Mar-08 7:21 
GeneralRe: Unable to open file for reading using C++ I/O Pin
CPallini27-Mar-08 9:56
mveCPallini27-Mar-08 9:56 
QuestionNeed Help on ATL Project Pin
manish.patel25-Mar-08 22:20
manish.patel25-Mar-08 22:20 
GeneralRe: Need Help on ATL Project Pin
Michael Dunn26-Mar-08 17:58
sitebuilderMichael Dunn26-Mar-08 17:58 
GeneralRe: Need Help on ATL Project Pin
manish.patel30-Mar-08 22:34
manish.patel30-Mar-08 22:34 
QuestionHow to use GDI+ in an ActiveX Control? [modified] Pin
samfromcn18-Mar-08 4:54
samfromcn18-Mar-08 4:54 
GeneralRe: How to use GDI+ in an ActiveX Control? Pin
samfromcn18-Mar-08 15:43
samfromcn18-Mar-08 15:43 
GeneralRe: How to use GDI+ in an ActiveX Control? Pin
Michael Dunn20-Mar-08 13:40
sitebuilderMichael Dunn20-Mar-08 13:40 
General'Server busy' problem Pin
KASR117-Mar-08 19:21
KASR117-Mar-08 19:21 
GeneralRe: 'Server busy' problem Pin
Ernest Laurentin20-Mar-08 6:06
Ernest Laurentin20-Mar-08 6:06 
QuestionWindows Services: User account management Pin
tony_Udz15-Mar-08 23:27
tony_Udz15-Mar-08 23:27 
GeneralRe: Windows Services: User account management Pin
led mike17-Mar-08 4:43
led mike17-Mar-08 4:43 
GeneralRe: Windows Services: User account management Pin
tony_Udz17-Mar-08 19:46
tony_Udz17-Mar-08 19:46 
GeneralRe: Windows Services: User account management Pin
led mike18-Mar-08 5:13
led mike18-Mar-08 5:13 
GeneralPlease help me [modified] Pin
Rahul Vaishnav7-Mar-08 22:45
Rahul Vaishnav7-Mar-08 22:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.