|
Hello Mr.Sunit
sunit5 wrote:
I HAD A DATA SAY "C:/TEMPURL"OF A VALUE SAY "DOWNLOAD" IN REGISTRY.I HAVE TO CHECK THE PRESENCE OF THE MENTIONED FOLDER IN THE GIVEN DATA
check for PathFileExists for checking existense of any folder or file.
sunit5 wrote:
TELL ME APIs WHICH SEARCH FOLDER
CFileFind Class in MFC help in this Regards
sunit5 wrote:
CREATE THE FOLDER IF NOT PRESENT.
Mr M.Dunn has written execellent warpper class for it.
you can found that at this url
http://www.codeproject.com/shell/cshellfileop.asp[^]
sunit5 wrote:
ALOK
Please Don't typecast your post to particular person
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
on using PathFileExists it is giving me linking error.
Creating library Debug/con1.lib and object Debug/con1.exp
con1.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
Debug/con1.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
|
|
|
|
|
And please stop shouting. I'm growing deaf.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
sunit5 wrote:
PLS TELL ME APIs WHICH...CREATE THE FOLDER IF NOT PRESENT.
Use CreateDirectory() .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
i used PathFileExists() to search for a folder.but it is giving me Linking error ..
Creating library Debug/con1.lib and object Debug/con1.exp
con1.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
Debug/con1.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
|
|
|
|
|
You failed to link with Shlwapi.lib .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
|
THANKS A LOT.TO EVERYONE
I FOUND THE SOL TO THE PROBLEM I DIDNOT ADD THE CONCERN .LIB
|
|
|
|
|
I have a dll which has a class say CxyView derived from CView,I need to use this dll in a separate SDI application.How can i make use of this view ie CxyView in the SDI application.
|
|
|
|
|
Hello,
I'm making a DLL using MFC and sockets. But when the function OnAccpet must be called, she doesn't been called. I don't understand why.
There is someone who can help me?
(I usually speak french, sorry to not write much details, ask me if you need it)
Thank you ^^
|
|
|
|
|
Anyone could tell me what is primary language in Macintosh like VC++ in Windows.
|
|
|
|
|
Objective-C is the "preferred" programming language for OS X.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hiii...
i am overwriting the .RC file of a workspace/project with some dialog resources...
obviously wen i am executing the program i cannot see any output.....
how can i display the new dialogs that i have put into the .RC file wen the program is executed ?
for example....i have transferred the 4 dialog boxes of the Calculator (calc.exe) to one of my own VC++ 6.0 application....
regards,
kedar.
|
|
|
|
|
well, you need to CODE them ... add a dialog class, "plug-in" all the controls, add execution code, ... all the works ...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hiii...thanks for the info...
but stil can u send me a sample code of what u were tellin to do......or some link wher i can find a similar example.....
it would b a great help to me....
In anticipation,
kedar.
|
|
|
|
|
Hi Everybody,
we are using a cash system printer which is connected to the PC via USB.
The printer has an endless paper roll and also has a paper cut feature.
The printer supports 4 paper sizes:
- "80x210 mm"
- "80x297 mm"
- "reserved48"
- "reserved49"
The first two paper sizes are the maximum sizes.
So the printer cuts a print after 210mm or 297mm.
If you choose "reserved48" in Excel the printout is exactly
as long as needed.
But if I choose this paper size in my own applications
nothing is printed at all. The paper is thrown out about
1 cm and then cut.
I examined a little bit about Device caps but every value seems to be invalid.
The paper size specified in the DEVMODE is 1 pixel by 1 pixel, so not very
much ((
Does anyone know how to handle this?
I really appreciate every hint!
Thanks in advance,
Jens
|
|
|
|
|
Hey...
Ive been making a Program with Microsoft Visual C++ 6.0...
Ive made it so that my Main interface window has buttons, and ive made other CDialog resources but I dont know how to make it so when i click on the Button on the main interface itll open another CDialog window...
How would i do that?
<br />
void CClientDlg::OnButton01() <br />
{ <br />
<br />
} <br />
Just a Human Trying to Live in a Computers World.
|
|
|
|
|
easy...
<font color=#0000FF>void</font> CClientDlg::OnButton01() {
CMyDialog dlg;
dlg.DoModal();
}
I suppose CMyDialog is a CDialog derived object that is associated with your IDD_Dialog1 dialog
... you've got it
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
That Helps So Much! I have one Question tho... Its driving me Crazy...
<br />
void CClientDlg::OnButton01() {<br />
CClientDlg dlg; <br />
dlg.DoModal();<br />
}<br />
Works Perfectly, If i click on Button01, The main interface opens again (Note: So button activates Window)...
But i created a new Dialog, (Class: CButton01Dlg) (CPP: Button01Dlg.cpp) and when i use the following code it gives me 4 errors, 0 warnings...
<br />
void CClientDlg::OnButton01() {<br />
CButton01Dlg dlg; <br />
dlg.DoModal();<br />
}<br />
C:\*\ClientDlg.cpp(179) : error C2065: 'CButton01Dlg' : undeclared identifier
C:\*\ClientDlg.cpp(179) : error C2146: syntax error : missing ';' before identifier 'dlg'
C:\*\ClientDlg.cpp(179) : error C2065: 'dlg' : undeclared identifier
C:\*\ClientDlg.cpp(180) : error C2228: left of '.DoModal' must have class/struct/union type
Just a Human Trying to Live in a Computers World.
|
|
|
|
|
You probably forgot to include the header file of CButton01Dlg (Button01Dlg.h) in ClientDlg.cpp .
|
|
|
|
|
Hahaha... Your Right!!!
Thank you Both So very Much!
This problem has been driving me crazy all day long... Thanks!
Just a Human Trying to Live in a Computers World.
|
|
|
|
|
hum, i'd like to answer, even if you already have the solution...
C:\*\ClientDlg.cpp(179) : error C2065: 'CButton01Dlg' : undeclared identifier
C:\*\ClientDlg.cpp(179) : error C2146: syntax error : missing ';' before identifier 'dlg'
C:\*\ClientDlg.cpp(179) : error C2065: 'dlg' : undeclared identifier
C:\*\ClientDlg.cpp(180) : error C2228: left of '.DoModal' must have class/struct/union type
here is what the compiler says :
first error, undeclared identifier. what does this evoque for you ? for me (and the compiler too), it means that the identifier CButton01Dlg is called in a module (cpp file) but the definition of that identifier is not inside it. You so have to help it telling it that it will find such definition in Button01Dlg.h file (for example).
So, do this :
<font color=#0000FF>#include</font> <font color=#808080>"Button01Dlg.h"</font>
The 3 last error depend on the 1st one. As CButton01Dlg were not defined, the compiler could not do anything with it, so :
- could not declare dlg in a type it doesn't know (error C2065),
- could not use dlg (error C2228).
here it is. hope it will help a bit...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hello,
I'm a VC++ beginner. And things seem to be so hard to me...
I'm stuck with the problem of constructor. Here is my code
//file Point3D.h
....
CPoint3D: public CObject
{
public:
CPoint3D();//default constructor
CPoint3D(float X,float Y,float Z);//my constructor
.....
private:
float x;
float y;
float z;
}
//end of Point3D.h
//file Point3D.cpp
.....
CPoint3D::CPoint3D(){
x=0;
y=0;
z=0;
}
CPoint3D::CPoint3D(float X,float Y,float Z){
x=X;
y=Y;
z=Z;
}
....
//end of file Point3D.cpp
and when I delared an object of CPoint3D in class CPointDoc like the code following:
//file PointDoc.h
...
#include "Point3D.h"
CPointDoc: public CDocument
{
.....
public:
CPoint3D point(1,2,3);
.....
}
//end of file PointDoc.h
I received an error at the line:
CPoint3D point(1,2,3) in file PointDoc.h
like this: syntax error "const"
I've tried to figure out but I failed.
Please, help me over this problem!
Any help would be much appreciated!
Thanks in advance!
Grenouille
|
|
|
|
|
You cannot initialize object inside class declaration. You should do it in costructor, i.e:
class CPointDoc: public CDocument
{
.....
public:
CPoint3D point;
.....
};
...
CPointDoc::CPointDoc ():point(CPoint3D(1,2,3))
{
}
|
|
|
|
|
be careful to construct the base class object too :
CPoint3D::CPoint3D() : CObject() {
}
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|