You Are Here:

Community: Developer Discussion Boards

#1 Old Direct Screen Access problem - 2006-01-25, 05:23

Join Date: Jan 2006
Posts: 14
winstonma
Offline
Registered User
Hi all,
It is my first time to use the direct screen access example from nokia to create a program, however, I met some problems when I build the project.
Here is the ERROR and my CODE:
error LNK2001: unresolved external symbol "public: static class CVideoPlayerTest * __cdecl CVideoPlayerTest::NewL(class RWsSession &,class CWsScreenDevice &,class RWindow &,int)" (?NewL@CVideoPlayerTest@@SAPAV1
@AAVRWsSession@@AAVCWsScreenDevice@@AAVRWindow@@H@Z)

My Code:
// VideoPlayerTest.h
#ifndef DIRECTDISPLAYENG_H
#define DIRECTDISPLAYENG_H

#include <w32std.h>
//class CDirectDisplayRender;

enum DirectDisplayPanics{
DirectDisplayStarted = 1,
DirectDisplayStopped
};

const TInt KGenerationInterval = 10000;

_LIT(KDirectDisplayTxt, "Video");

class CVideoPlayerTest : public CTimer, public MDirectScreenAccess{
// Construction & destruction
public:

static VideoPlayerTest* NewL(
// The current window server session owned by the application
RWsSession& aClient,
// The default screen device for the application
CWsScreenDevice& aScreenDevice,
// The RWindow associated with a control.
RWindow& aWindow,
TInt aUserFrameBuffer
);

~CVideoPlayerTest();

private:
// private constructors - use NewL to call it
CVideoPlayerTest(
/*
* Window server handling
*/
// The current window server session owned by the application
RWsSession& aClient,
// The default screen device for the application
CWsScreenDevice& aScreenDevice,
// The RWindow associated with a control.
RWindow& aWindow,
TInt aUserFrameBuffer
);

void ConstructL();

public:
void StartDrawingL();
void StopDrawing();
// Are we drawing?
inline TBool Drawing() {return iDrawing;}

private:
void RunL();
void DoCancel();

private:
// Implement MDirectScreenAccess
void Restart(RDirectScreenAccess::TTerminationReasons aReason);
void AbortNow(RDirectScreenAccess::TTerminationReasons aReason);

private:
// Window Server handling
RWsSession& iClient;
CWsScreenDevice& iScreenDevice;
RWindow& iWindow;

// Direct Screen Access
CDirectScreenAccess* iDirectScreenAccess;
CFbsBitGc* iGc;
RRegion* iRegion;

// Are we drawing?
TBool iDrawing;

TInt iUserFrameBuffer;

TRect iFlagRect;
TInt iFrameBufLen;

TPoint iPosition;
};
#endif

// Following is the code in container
void CVideoPlayerContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();

iLabel = new (ELeave) CEikLabel;
iLabel->SetContainerWindowL( *this );
iLabel->SetTextL( _L("Example View") );

SetRect(aRect);

iTest = CVideoPlayerTest::NewL(iEikonEnv->WsSession(),
*(CCoeEnv::Static()->ScreenDevice()),
Window(), 0);

ActivateL();
}

If i did not run the "iTest = CVideoPlayerTest::NewL();", there was not any problems.
So, that, I wanna ask anyone can help me???
Thanks a lot
Reply With Quote

#2 Old Re: Direct Screen Access problem - 2006-02-08, 10:38

Join Date: Feb 2006
Posts: 1
p_madden
Offline
Registered User
The linker is telling you that the actual code for the NewL function does not exist anywhere in your source files that were compiled. I only see the declaration of the NewL function in your header file but where is the implementation code?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Direct Screen Access rami75lu Symbian Media (Graphics & Sounds) 1 2005-12-27 04:44
Direct Screen Access Example jackylb Symbian Media (Graphics & Sounds) 0 2005-10-07 10:28
Direct Screen Access in 6.1? DrChandra General Symbian C++ 1 2004-12-29 21:10
Why use direct screen access? Kalderas General Symbian C++ 3 2003-10-10 15:29
Direct screen access alepe General Symbian C++ 1 2003-05-12 07:18

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ