Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWFToolkit 7.4.1 anyone?

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
330 Views, 3 Replies

DWFToolkit 7.4.1 anyone?

For VC 8.0

I want to update a code (for a dll) made using the toolkit 7.3.1 that it is
working and compiled with no errors.

But, once I use the new libraries

dwfcore_wt.1.4.1.lib
dwftk_wt.7.4.1.lib
w3dtk_wt.1.4.1305.lib
whiptk_wt.7.10.601.lib

That are (Read-Write WChar LIB)

I get a bunch of errors.....

Like something like:

// 7.3.1
DWFPackageWriter* oWriter = DWFCORE_ALLOC_OBJECT(DWFPackageWriter (
oDWF_Out ) );

It does not compile, since it will pop-up the error saying it is an abstract
class, so I end up deriving from DWFPackageWriter class and using now a new
one, that took that error out.

But, many other just are generated, like error C2248

ie:
WT_File::WT_File' : cannot access protected member declared in class
'WT_File'

And also for WT_Color, WT_PNG_xxxxx, WT_Font, WT_Image, etc etc etc etc.....

Now, I went to review the samples, and noticed the usage on the W2DTEST sln,
is that what I need to follow? like using something like the TestFramework
class?

Thanks!
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Are you using the VS 2005 updated with the service packs? If not, some time
that may be causing few issues. Have a look on those issues.

If it's possible for you to share the C++ project, share it with me, I will
try to fix the configuration issues for you...

Thanks,
Somendra PaniShankar

"Luis Esquivel" wrote in message
news:5822546@discussion.autodesk.com...
For VC 8.0

I want to update a code (for a dll) made using the toolkit 7.3.1 that it is
working and compiled with no errors.

But, once I use the new libraries

dwfcore_wt.1.4.1.lib
dwftk_wt.7.4.1.lib
w3dtk_wt.1.4.1305.lib
whiptk_wt.7.10.601.lib

That are (Read-Write WChar LIB)

I get a bunch of errors.....

Like something like:

// 7.3.1
DWFPackageWriter* oWriter = DWFCORE_ALLOC_OBJECT(DWFPackageWriter (
oDWF_Out ) );

It does not compile, since it will pop-up the error saying it is an abstract
class, so I end up deriving from DWFPackageWriter class and using now a new
one, that took that error out.

But, many other just are generated, like error C2248

ie:
WT_File::WT_File' : cannot access protected member declared in class
'WT_File'

And also for WT_Color, WT_PNG_xxxxx, WT_Font, WT_Image, etc etc etc etc.....

Now, I went to review the samples, and noticed the usage on the W2DTEST sln,
is that what I need to follow? like using something like the TestFramework
class?

Thanks!
Message 3 of 4
Anonymous
in reply to: Anonymous

Yes,

I have the Visual Studio 2005 SP1 installed.

I was able to get the project built without any error, but for some reason it does not appear that I can access the WT_Class_Factory class

ie:
[code]
WT_Class_Factory *classFactory = myFactory::Instance().GetClassFactory();
if (classFactory == NULL)
{
assert("Failed to get class factory");
return -2;
}

//WT_File whip_file; // 7.3.1
WT_File *whip_file = classFactory->Create_File(); // 7.4.1
if (whip_file == NULL)
{
return - 101;
}
[/code]

It just stop in this line:

WT_Class_Factory *classFactory = myFactory::Instance().GetClassFactory();

As you see, in version 7.4.1 I have to do more steps, before in 7.3.1 I simple was doing WT_File whip_file; as for many other calls to WT_xxx...


Thanks!
LE!
PS> I need to ask permission if I can share the sln.



/*
Are you using the VS 2005 updated with the service packs? If not, some time
that may be causing few issues. Have a look on those issues.

If it's possible for you to share the C++ project, share it with me, I will
try to fix the configuration issues for you...

Thanks,
Somendra PaniShankar
*/
Message 4 of 4
Anonymous
in reply to: Anonymous

Yeah in 7.4.1 TK is using class factory 'Design Pattern' for the WT objects.
WT_Class_Factory is the abstract class Factory. You need to set the base
class factory pointer to some concrete class factory object (eg:
WT_W2D_Class_Factory, WT_XAML_Class_Factory etc ) in TestFrame work and need
to work with them, I doubt in your case you are creating the concrete class
factory objects. Please refer to class_factory.h header file released along
with the TK, hope this will help you.

Thanks,
Somendra PaniShankar

wrote in message news:5836826@discussion.autodesk.com...
Yes,

I have the Visual Studio 2005 SP1 installed.

I was able to get the project built without any error, but for some reason
it does not appear that I can access the WT_Class_Factory class

ie:
[code]
WT_Class_Factory *classFactory = myFactory::Instance().GetClassFactory();
if (classFactory == NULL)
{
assert("Failed to get class factory");
return -2;
}

//WT_File whip_file; // 7.3.1
WT_File *whip_file = classFactory->Create_File(); // 7.4.1
if (whip_file == NULL)
{
return - 101;
}
[/code]

It just stop in this line:

WT_Class_Factory *classFactory = myFactory::Instance().GetClassFactory();

As you see, in version 7.4.1 I have to do more steps, before in 7.3.1 I
simple was doing WT_File whip_file; as for many other calls to WT_xxx...


Thanks!
LE!
PS> I need to ask permission if I can share the sln.



/*
Are you using the VS 2005 updated with the service packs? If not, some time
that may be causing few issues. Have a look on those issues.

If it's possible for you to share the C++ project, share it with me, I will
try to fix the configuration issues for you...

Thanks,
Somendra PaniShankar
*/

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services