|
Please see my previous message. Your project has not included the files in the m4ri folder so the mzd functions are not being compiled. You should either add all these source files to your project, or create a project that compiles them into a .lib file (static library), and add that to your main project.
I must get a clever new signature for 2011.
|
|
|
|
|
Hi,
Thanks a lot for your quick reply.All of my .c and .h files are available in m4ri folder.
Will you please tell me that how I can create project that compiles them into a .lib file(static library), and how can I can add that to my main project.
Thanks a lot.
Regards,
Ishtiaq
|
|
|
|
|
Yes, I know they are available in the folder but unless you compile them into object code your program will never be built successfully. If you do not know how to create such a project then I suggest you go to the Visual Studio help pages and read up on the compiler and linker options for building different project types.
I must get a clever new signature for 2011.
|
|
|
|
|
hello,
i can able to download now. i saw your project.
Mr. Richard is right. do as he said, then you will get the result.
Regards,
A. Gopinath.
|
|
|
|
|
Hi,
Need assistance on how to send emails with attachment in VC6.0 environment...
I don't want to get any kind of alert while sending email with attachment...
Kindly assist on this..
Thanks
John
|
|
|
|
|
MAPI[^]
I am a HUMAN. I have that keyword in my name........
<marquee> _AnsHUMAN_</marquee>
|
|
|
|
|
Consider launching an external program like bmail[^]
|
|
|
|
|
Can I show deafult path "My Computer" for CFileDialog() ?
|
|
|
|
|
What happens when you try it?
I must get a clever new signature for 2011.
|
|
|
|
|
Yes.
Initialize it by updating the m_ofn (OPENFILENAME ) structure with the appropriate path.
the "my document" can be found with SHGetFolderPath .
Watched code never compiles.
|
|
|
|
|
Hi
I am doing win32 GUI application. Recently i got good GUI application is is Window Presentation Foundation(WPF).
How to Use WPF in Vc++ win32 application?
How to Import are refer?
Regards,
M.Mathivanan
|
|
|
|
|
I don't think that is supported at this time; WPF works with C# or VB.NET.
I must get a clever new signature for 2011.
|
|
|
|
|
You can try this http://msdn.microsoft.com/en-us/library/ms744829.aspx i tried this and succeed some time ago.
|
|
|
|
|
Hello,
I am trying to create a program that will allow me to copy all the files from one directory to another with the click of a button and then compare those files to the files in the directory they were copied from in the future. I have the program built and working but all I have is a way to move just one file at a time. Thanks to all for any help
Arnold.
|
|
|
|
|
ajj100 wrote: ...but all I have is a way to move just one file at a time.
Are you using SHFileOperation() ?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
No. I am useing the MoveFile();
|
|
|
|
|
ajj100 wrote: I am useing the MoveFile();
So what do you expect to compare with in the future? MoveFile() does not leave the original file in place.
I must get a clever new signature for 2011.
|
|
|
|
|
Hello all,
Correction I was useing CopyFile() not MoveFile() sorry. I did use SHFileOperation() and it works perfectly. Now I am working on the compare function. I want to check for added files to the directory and list the added file in a listbox then check for changes made to any file in the directory.
Thanks for all help,
AJ
|
|
|
|
|
ajj100 wrote: I want to check for added files to the directory and list the added file in a listbox then check for changes made to any file in the directory.
Check out FindFirstChangeNotification() and/or ReadDirectoryChangesW() .
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
I want to compare file size and check for new files added to the directory.
|
|
|
|
|
Got a problem.
Why does this work lpFileOp.pFrom = "C:\\Test\\*.*";
In SHFileOperation()
but this don't? m_sFileEdit = "C:\\Test\\*.*"; I am UpdateData(true);
and UpdateData(false); as required.
|
|
|
|
|
You are comparing two unrelated things. SHFileOperation() does not use m_sFileEdit , so assigning it a value is meaningless.
ajj100 wrote: I am UpdateData(true);
and UpdateData(false); as required.
See here for why you should rarely, if ever, call this method directly.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
ajj100 wrote: compare those files to the files in the directory
Compare what ? the size ? date created/modified ? what is inside ?
As David wrote, use ShFileOperation (with the appropriate parameters) and check the error code returned to help you there.
you can also use FindFirstFile/FindNextFile to search the file in the destination folder to see if the file is there and if it exists, then do any kind of comparision between the two.
M.
Watched code never compiles.
|
|
|
|
|
Hello,
I'm currently migrating projects from VC6 to VS10 and encountered
a problem using template classes with friend template functions.
The following example was reduced to the minimum to reproduce
the problem. The code compiles without errors/warnings in VC6:
------------------- 8< --------------------------------
#include <StdAfx.h>
#include <string>
using namespace std;
class factory;
class attribute {
protected:
attribute(const string & table, const string & column, factory * fac);
attribute(const attribute & attr);
};
template <typename T, typename P>
class attributeimpl : public attribute {
friend class attribute * MakeAttribute(
const string & table,
const string & column,
factory * fac,
T P::* member
);
typedef T P::* member_t;
member_t m_Value;
protected:
attributeimpl(const string & table, const string & column, factory * fac, member_t mem)
: attribute(table, column, fac)
, m_Value(mem)
{
}
attributeimpl(const attributeimpl<T,P> & attr);
};
template <typename T, typename P> inline
attribute * MakeAttribute(
const string & table,
const string & column,
factory * fac,
T P::* member) {
return (attribute*)(new attributeimpl<T, P> (table, column, fac, member));
}
#define BindVar(CLASS,MEMBER,TABNAME,COLNAME) \
MakeAttribute(TABNAME, COLNAME, this, &CLASS::MEMBER)
class factory {
protected:
factory();
};
class object {
protected:
object();
};
class myobj : public object {
friend class myfac;
string m_name;
string m_surname;
};
class myfac : public factory {
attribute * name;
attribute * surname;
public:
myfac();
};
myfac::myfac() {
name = BindVar(myobj, m_name, "customer", "name");
vorname = BindVar(myobj, m_surname, "customer", "surname");
}
------------------- 8< --------------------------------
VS10 produces the following errors:
------------------- 8< --------------------------------
1>templ.cpp(44): error C2248: 'attributeimpl<t,p>::attributeimpl' : cannot access protected member declared in class 'attributeimpl<t,p>'
1> with
1> [
1> T=std::string,
1> P=myobj
1> ]
1> templ.cpp(28) : see declaration of 'attributeimpl<t,p>::attributeimpl'
1> with
1> [
1> T=std::string,
1> P=myobj
1> ]
1> templ.cpp(85) : see reference to function template instantiation 'attribute *MakeAttribute<std::string,myobj>(const std::string &,const std::string &,factory *,T myobj::* )' being compiled
1> with
1> [
1> T=std::string
1> ]
1>
1>Build FAILED.
------------------- 8< --------------------------------
AFAIK I don't need to explicitly declare a friend function. The compiler
should take the "friend" declaration to declare the function in the next
outer scope that is not a class (in the example this is the global scope).
But even if I explicitly declare the function "MakeAttribute()" in
the global scope and reference the friend declaration to ::, the compiler
gives me errors. In such a case VS10 says it cannot deduce the template
parameters T and P of "MakeAttribute()".
At this point I'm totally clueless... :-|
So how do I have to declare the friend function?
Jörg
|
|
|
|
|
Joerg Koenig wrote:
friend class attribute * MakeAttribute(
const string & table,
const string & column,
factory * fac,
T P::* member
Two things look wrong or suspicious:
Remove "class" after "friend"
What does "T P::* memeber" mean? You might need to add typename in there somewhere.
Also check out this FAQ[^]
--Mike--
Dunder-Mifflin, this is Pam.
|
|
|
|