|
hi all,
in my application i wrote the code to get the data from users Documents and settings\user1\Application data folder.
in one system i am unable to read the data neither it is giving error
please help me to solve this problem
thanks all
venu
|
|
|
|
|
1st: do you have "C:\\Documents and Settings\\user1\\Application Data" in your code? (i.e. have double slashes instead of C:\)
2nd: does the other system you're trying to run the code in have the folders set up the way you want it...(i.e. C:\Documents and Settings\user1\Application Data)
Kitty5
|
|
|
|
|
g venu wrote: in one system i am unable to read the data neither it is giving error
What code do you have in place to read from this folder?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
First check if you have rights to peep into others documents folders. If you have local admin rights, you should be able to do that.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
I dont know why the hell the script for voting 5 is disabled only for me??
|
|
|
|
|
|
g venu wrote:
in one system i am unable to read the data neither it is giving error
have you check GteLastError or have you seen User1 exist there!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Dear Gurus,
You may not be aware that I have lost my job as our company has given us lay off.
I am really expecting a job in MFC, VC++.
I have given 2-3 technical interviews but it has made clear that interviews need special attention and preparation ,
I would be highly thankful , if someone provides me the compilation of interview questions on VC++, MFC, C++, ATL COM, Threading. If with answers then it will be a faster preparation for me. (Sorry being lazy here, but situation is a bit tedious with me right now).
ANy links also will help a lot.
If you want to send me few things, then email address is
rpathak03011978@yahoo.com
Looking forward some help from Codeproject.
Thanks ,
pathak
|
|
|
|
|
it is useless to learn answers by heart, because if the guy ask you something, then you answer but you don't understand what it's been said.
secondly, too much questions can be asked on each topic to be able to provide such a questions compilation.
the only advice i can give you is training yourself to C/C++/MFC, to that you really understand what you do with it, and then, can answer questions on it.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
*rant* First of all, there is one thing that is driving me nuts about this forum lately: VC++ is not a different language than C++. It is simply a compiler (more specifically, it is an IDE, but I digress). If you want to know how to do something (e.g. open a file and read its contents), it is the same in standard C++ as it is in Visual C++ (unless you elect to use the Win32 API or MFC to do it for you ... but those are libraries for doing things, not IDE's or compilers) */rant*
Now, if you really want to brush up on your skills, make a trip to Barnes and Noble. Check out books like Effective C++, More Effective C++, Effective STL, Exceptional C++, Programming Windows (Petzold's older version ... new version uses C#), Programming Windows with MFC. I have yet to find a really good book on ATL/COM, but several books cover decent areas of those topics. As for threading, check out the O'Reilly books on the subject.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
MSDN has everything pathak. And there are lots FAQs in CP itself. Micheal Dunn and Alok has done it greatly. Search for them atleast. Don't be lazy expecting me to give the link. Giving links are only for the newbies
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
I dont know why the hell the script for voting 5 is disabled only for me??
|
|
|
|
|
pathakr wrote: Looking forward some help from Codeproject.
look at my sig!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Dear List
I have a problem while i'm drawing lines into my Childview.
Some background: i'm Meassuring some events and the result is plotted to the view. Fore that i use:
<br />
void someMethod(long color)<br />
{<br />
CClientDC cDC(this);<br />
OnPrepareDC(&cDC);<br />
CPen pen(PS_SOLID,1,color);<br />
cDC.SelectObject(&pen);<br />
<br />
cDC.MoveTo(from_pt);<br />
cDC.LineTo(to_pt);<br />
}<br />
I Use this method quiet offten (recalled after 25 milliseconds). So fine.
Now moving the mouse over the toolbar is fine until the tool tip (or any tool tip belonging to the mainframe) is shown. It seems like the tooltip is shown between MoveTo and LineTo.
So it might the easiest for me ether to deactivate tooltips at all - i don't know how to do this - or to have another possibility to draw a line.
Please any suggestions might help
THX
Tim
PS Oh i forget to say not all Window machines behave the same way - i mean on some machines this happens on others not.
|
|
|
|
|
maybe you could create a bitmap for your line drawing and then BLT the bitmap to the cDC?
cje
|
|
|
|
|
tbrake wrote: So it might the easiest for me ether to deactivate tooltips at all
call CToolBarCtrl::GetToolTips to get CToolTips class pointer associated with the Toolbar and then Call CToolTipCtrl::Activate() to deactivate it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi All,
I am working on implementing a callback function in this manner :
void CALLBACK InternetStatusCallback(HINTERNET hInternet,
DWORD_PTR dwContext,DWORD dwInternetStatus,
LPVOID lpvStatusInformation, DWORD dwStatusInformationLength)
and then I make a call as
hInetOpen = InternetOpen("MY_FTP",INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,
INTERNET_FLAG_ASYNC);
INTERNET_STATUS_CALLBACK inetStatusCallback =InternetSetStatusCallback(hInetOpen
,(INTERNET_STATUS_CALLBACK)InternetStatusCallback );
if(inetStatusCallback == INTERNET_INVALID_STATUS_CALLBACK)
{
CString szErrMsg;
szErrMsg.Format("%s: %d", "InternetData : InternetSetStatusCallback: ",GetLastError());
return false;
}
The problem is that the callback function is never called.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: he problem is that the callback function is never called.
is it necessary to use Windows api.. could you use MFC Classes!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
It has to be done in WIN32 , No MFC
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote:
It has to be done in WIN32 , No MFC
Somethings seem HARD to do, until we know how to do them.
look for amhttputil class! here in codeproject!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
_AnShUmAn_ wrote:
It has to be done in WIN32 , No MFC
Somethings seem HARD to do, until we know how to do them.
here is the class
http://www.codeproject.com/internet/amhttputils.asp
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
i found the same!
Thanks
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi,
I would like to freeze one column of my listview which is in report style, just like the way it can be done in excel.
If the listview has a lot of columns, to navigate to the last column we use the scroll bar. While scrolling I would like the 1st column to remain where it is and not disappear while scrolling.
Please can you give me an idea how to do this?
Thanks,
Tara
Fortitudine Vincimus!
|
|
|
|
|
Tara14 wrote:
If the listview has a lot of columns, to navigate to the last column we use the scroll bar. While scrolling I would like the 1st column to remain where it is and not disappear while scrolling.
Unfortunatly you cannot do that with ListVie, you need Flex Grid or other grid control for that!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
I am new to this VC++. I just want to know the difference between VC++ and MFC.
Mathumala
|
|
|
|
|
C++ is a language; VC++ is short for "Microsoft Visual C++" which is Microsoft's C++ compiler (and linker and IDE...)
MFC is a framework, written in C++, for making applications for Windows in C++ and comes with (MS)VC++.
Steve
|
|
|
|
|
VC++ is the environnement. Visual C++ IDE allow you to program in C/C++, or C++/CLI.
MFC is only a C++ framework that wraps the Win32 methods and allow you to handle them more easily...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|