Search the web
Sign In
New User? Sign Up
wtl · WTL support list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 16185 - 16214 of 16214   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries   (Group by Topic) Sort by Date ^  
#16185 From: "Angus Comber" <angus@...>
Date: Sun Oct 25, 2009 9:54 pm
Subject: Re: Can you force a modal dialog to be topmost?
anguscomber
Offline Offline
Send Email Send Email
 
I found one easy way to achieve what I want.  Simply check the system modal and
set foreground checkboxes in the dialog resource.

I don't see any problems with this approach so fixed.

   ----- Original Message -----
   From: Angus Comber
   To: wtl@yahoogroups.com
   Sent: Sunday, October 25, 2009 6:00 PM
   Subject: [wtl] Can you force a modal dialog to be topmost?


     Hello

   I am creating a modal dialog. eg:
   CLoginDlg dlg;

   if (dlg.DoModal() == IDOK)

   ...

   In the OnInitDialog in CLoginDlg I am doing this:

   SetWindowPos(HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE);

   Which does return TRUE. But it is not topmost.

   Can I somehow make this dialog window topmost? If so, how?

   Angus

   [Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]

#16186 From: Eric Brown <eric@...>
Date: Mon Oct 26, 2009 2:27 am
Subject: RE: Can you force a modal dialog to be topmost?
ericbr42
Offline Offline
Send Email Send Email
 
That's rather user-hostile.  Your application window is disabled while the
dialog is running, so the user can't proceed while your modal dialog is visible.

What exactly do you need to do here?

From: wtl@yahoogroups.com [mailto:wtl@yahoogroups.com] On Behalf Of Angus Comber
Sent: Sunday, October 25, 2009 2:54 PM
To: wtl@yahoogroups.com
Subject: Re: [wtl] Can you force a modal dialog to be topmost?



I found one easy way to achieve what I want. Simply check the system modal and
set foreground checkboxes in the dialog resource.

I don't see any problems with this approach so fixed.

----- Original Message -----
From: Angus Comber
To: wtl@yahoogroups.com<mailto:wtl%40yahoogroups.com>
Sent: Sunday, October 25, 2009 6:00 PM
Subject: [wtl] Can you force a modal dialog to be topmost?

Hello

I am creating a modal dialog. eg:
CLoginDlg dlg;

if (dlg.DoModal() == IDOK)

...

In the OnInitDialog in CLoginDlg I am doing this:

SetWindowPos(HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE);

Which does return TRUE. But it is not topmost.

Can I somehow make this dialog window topmost? If so, how?

Angus

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]



[Non-text portions of this message have been removed]

#16187 From: false <shuaixh@...>
Date: Fri Oct 30, 2009 2:19 pm
Subject: XML Events
shuaixh
Offline Offline
Send Email Send Email
 
hello, genius
        I want put UI elements in a XML file, which stores every
atrribute of each widget.
so, when application starts, the XML file is loaded, parsed, and all the GUI
elements are
created.  something like HTML file.
        HTML file can hold jscript,vbscript,etc.  I want my XML file
holds Lua script. when a
UI event hapens, the Lua script is called. Events such as mouse click, mouse
move...
so, how can i design such a XML/Lua engine to render UI and handle events ??
any suggestion appreciated.


       ___________________________________________________________
   好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/

[Non-text portions of this message have been removed]

#16188 From: "Igor Tandetnik" <itandetnik@...>
Date: Fri Oct 30, 2009 5:54 pm
Subject: Re: XML Events
itandetnik
Offline Offline
Send Email Send Email
 
false <shuaixh@...> wrote:
> hello, genius
> I want put UI elements in a XML file, which stores every atrribute of
> each widget.
> so, when application starts, the XML file is loaded, parsed, and all
> the GUI elements are
> created. something like HTML file.
> HTML file can hold jscript,vbscript,etc. I want my XML file holds Lua
> script. when a
> UI event hapens, the Lua script is called. Events such as mouse
> click, mouse move...
> so, how can i design such a XML/Lua engine to render UI and handle
> events ??
> any suggestion appreciated.

In other words, the question is: how do I quickly implement what took years of
development by Mozilla[1] or Microsoft[2]?

[1] https://developer.mozilla.org/En/XUL
[2] http://msdn.microsoft.com/en-us/library/ms752059.aspx

Igor Tandetnik

#16189 From: "joel" <joel@...>
Date: Fri Oct 30, 2009 5:58 pm
Subject: RE: Re: XML Events
watsonjoel1
Offline Offline
Send Email Send Email
 
thats what I was going to reply...

sounds like you want a document storage and rendering engine...or...a
Browser clone.



   _____

From: wtl@yahoogroups.com [mailto:wtl@yahoogroups.com] On Behalf Of Igor
Tandetnik
Sent: Friday, October 30, 2009 1:54 PM
To: wtl@yahoogroups.com
Subject: [wtl] Re: XML Events




false <shuaixh@yahoo. <mailto:shuaixh%40yahoo.com.cn> com.cn> wrote:
> hello, genius
> I want put UI elements in a XML file, which stores every atrribute of
> each widget.
> so, when application starts, the XML file is loaded, parsed, and all
> the GUI elements are
> created. something like HTML file.
> HTML file can hold jscript,vbscript,etc. I want my XML file holds Lua
> script. when a
> UI event hapens, the Lua script is called. Events such as mouse
> click, mouse move...
> so, how can i design such a XML/Lua engine to render UI and handle
> events ??
> any suggestion appreciated.

In other words, the question is: how do I quickly implement what took years
of development by Mozilla[1] or Microsoft[2]?

[1] https://developer. <https://developer.mozilla.org/En/XUL>
mozilla.org/En/XUL
[2] http://msdn. <http://msdn.microsoft.com/en-us/library/ms752059.aspx>
microsoft.com/en-us/library/ms752059.aspx

Igor Tandetnik






[Non-text portions of this message have been removed]

#16190 From: "Konstantin Mironovich" <const@...>
Date: Fri Oct 30, 2009 9:40 pm
Subject: Re: Re: XML Events
const_at_ixbt
Offline Offline
Send Email Send Email
 
+ collada.org
:)

-km

   ----- Original Message -----
   From: Igor Tandetnik
   To: wtl@yahoogroups.com
   Sent: Friday, October 30, 2009 8:54 PM
   Subject: [wtl] Re: XML Events


     false <shuaixh@...> wrote:
   > hello, genius
   > I want put UI elements in a XML file, which stores every atrribute of
   > each widget.
   > so, when application starts, the XML file is loaded, parsed, and all
   > the GUI elements are
   > created. something like HTML file.
   > HTML file can hold jscript,vbscript,etc. I want my XML file holds Lua
   > script. when a
   > UI event hapens, the Lua script is called. Events such as mouse
   > click, mouse move...
   > so, how can i design such a XML/Lua engine to render UI and handle
   > events ??
   > any suggestion appreciated.

   In other words, the question is: how do I quickly implement what took
years of development by Mozilla[1] or Microsoft[2]?

   [1] https://developer.mozilla.org/En/XUL
   [2] http://msdn.microsoft.com/en-us/library/ms752059.aspx

   Igor Tandetnik






[Non-text portions of this message have been removed]

#16191 From: wtl@yahoogroups.com
Date: Sat Oct 31, 2009 7:28 am
Subject: New file uploaded to wtl
wtl@yahoogroups.com
Send Email Send Email
 
Hello,

This email message is a notification to let you know that
a file has been uploaded to the Files area of the wtl
group.

   File        : /DrawTextOutline-0.2.9_wtl.zip
   Uploaded by : yarp2002 <lac@...>
   Description : WTL version of Outline Text demo. Cute text rendering library.

You can access this file at the URL:
http://groups.yahoo.com/group/wtl/files/DrawTextOutline-0.2.9_wtl.zip

To learn more about file sharing for your group, please visit:
http://help.yahoo.com/l/us/yahoo/groups/original/general.htmlfiles

Regards,

yarp2002 <lac@...>

#16192 From: "izm_ka" <izm_ka@...>
Date: Mon Nov 16, 2009 4:53 am
Subject: Cursor/caret is not shown in an in-place CEdit-derived control
izm_ka
Offline Offline
Send Email Send Email
 
I'm converting an MFC application into WTL 8.1 and stuck with issues. The
in-place control (see below) is working only once. If it looses focus and gets
the focus back, cursor/caret is no longer visible; however, content can be
changed by typing. Here is declaration of the in-place Edit control:
class CMyInPlaceEdit:  public CWindowImpl<CMyInPlaceEdit, CEdit>
{
public:
   CMyInPlaceEdit() : CWindowImpl<CMyInPlaceEdit, CEdit>() {}

   BOOL SubclassWindow(HWND hWnd)
   {
     return CWindowImpl<CMyInPlaceEdit, CEdit>::SubclassWindow(hWnd);
   }
BEGIN_MSG_MAP_EX(CMyInPlaceEdit)
   MESSAGE_HANDLER(WM_KILLFOCUS, OnKillFocus)
   MESSAGE_HANDLER(WM_SETFOCUS, OnSetFocus)
   MESSAGE_HANDLER(WM_LBUTTONDOWN, OnLButtonDown)
   <<<cut>>>
};

I create the in-place Edit:
m_edit = new CMyInPlaceEdit();
m_edit->Create(m_parent->m_hWnd, urect, NULL, WS_CHILD | ES_AUTOHSCROLL, 0,
MenuOrID, 0);

LRESULT CMyInPlaceEdit::OnLButtonDown(UINT uMsg, WPARAM wParam, LPARAM lParam,
BOOL& bHandled)
{
	 ///CEdit::OnLButtonDown(nFlags, point);
	 ::DefWindowProc(m_hWnd, uMsg, wParam, lParam);

	 bHandled = FALSE;
	 return 0;
}

LRESULT CMyInPlaceEdit::OnSetFocus(UINT uMsg, WPARAM wParam, LPARAM lParam,
BOOL& bHandled)
{
	 ///CEdit::OnSetFocus(pNewWnd);
	 LRESULT lRet = ::DefWindowProc(m_hWnd, uMsg, wParam, lParam);

	 bHandled = FALSE;
	 return lRet;
}

LRESULT CMyInPlaceEdit::OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam,
BOOL& /*bHandled*/)
{
	 ///CEdit::OnKillFocus(pNewWnd);
	 LRESULT lRet = ::DefWindowProc(m_hWnd, uMsg, wParam, lParam);

	 return lRet;
}

To hide/show the in-place Edit I use:
m_edit->ShowWindow(SW_HIDE);
and
m_edit->ShowWindow(SW_SHOW);
::SetFocus(m_edit->m_hWnd);

Please help...

#16193 From: "Jim Barry" <j.barry@...>
Date: Mon Nov 16, 2009 1:50 pm
Subject: Re: Cursor/caret is not shown in an in-place CEdit-derived control
jim_barry.geo
Offline Offline
Send Email Send Email
 
"izm_ka" wrote:
> LRESULT CMyInPlaceEdit::OnLButtonDown(UINT uMsg, WPARAM wParam, LPARAM
> lParam, BOOL& bHandled)
> {
> ///CEdit::OnLButtonDown(nFlags, point);
> ::DefWindowProc(m_hWnd, uMsg, wParam, lParam);
>
> bHandled = FALSE;
> return 0;
> }

Don't call the Win32 API function DefWindowProc directly. If you set
bHandled to FALSE, the message will automatically be passed on to the
original window procedure. Otherwise, you can leave bHandled as TRUE and
explcitly call the original window procedure using the
CWindowImpl::DefWindowProc member function (actually a member of
CWindowImplBaseT). By the way, there is a rather handy parameterless
overload of DefWindowProc that calls the original window procedure with the
current message parameters.

- Jim

#16194 From: "o_magen1" <o_magen1@...>
Date: Tue Nov 17, 2009 12:51 am
Subject: Best way to debug CTooltipCtrl not showing the tip
o_magen1
Offline Offline
Send Email Send Email
 
Hello All

This is a weird scenario which I cannot understand and I'm looking for a way to
debug this and figure it out.

The app is an IE plugin, which is consisted of a BHO and a toolbar. I have a
class that inherits from CStatic and extends its functionality as so:

class CMyStatic : public CWindowImpl< CMyStatic , CStatic >
{
    ...
    CToolTipCtrl m_tip;
};

I create the tooltip as so:

         if ( !m_tip.IsWindow() )
         {
             // create a tool tip
             DWORD dwStyle = WS_POPUP | TTS_NOANIMATE | TTS_NOFADE |
TTS_NOPREFIX;
             m_tip.Create( m_hWnd, NULL, NULL, dwStyle );
             if ( m_tip.IsWindow() )
             {
                 m_tip.Activate( TRUE );
                 m_tip.AddTool( m_hWnd, lpszString );
             }
         }

and in response to the mouse events i relay the event:

//MESSAGE_RANGE_HANDLER( WM_MOUSEFIRST, WM_MOUSELAST, OnMouseMessage )

LRESULT CMyStatic::OnMouseMessage( UINT uMsg, WPARAM wParam, LPARAM lParam,BOOL&
bHandled )
{
     MSG msg =
     {
       m_hWnd, uMsg, wParam, lParam
     };
     if ( m_tip.IsWindow() )
     {
         m_tip.RelayEvent( &msg );
     }

     bHandled = FALSE;
     return 1;
}

The weirdness comes from the simple fact that i'm using this exact same class
(CMyStatic that is) with a different app (an IE infoband) and the tooltip works
as expected, on different CStatic controls that I subclass the same exact way as
in the other app).

I have no idea why this isn't working - m_tip is a valid window, RelayEvent(..)
does get called .. but no tootip is shown.

Any help on how to figure this out would be appreciated.

#16195 From: "izm_ka" <izm_ka@...>
Date: Tue Nov 17, 2009 2:06 am
Subject: Re: Cursor/caret is not shown in an in-place CEdit-derived control
izm_ka
Offline Offline
Send Email Send Email
 
Yes, that was it! After I added CWindowImpl::DefWindowProc the cursor is
working! Thank you very much! Jim, may I buy you beer?

#16196 From: "Jim Barry" <j.barry@...>
Date: Tue Nov 17, 2009 12:28 pm
Subject: Re: Re: Cursor/caret is not shown in an in-place CEdit-derived control
jim_barry.geo
Offline Offline
Send Email Send Email
 
"izm_ka" wrote:
> Yes, that was it! After I added CWindowImpl::DefWindowProc the cursor
> is working! Thank you very much! Jim, may I buy you beer?

Virtual beer? :)

- Jim

#16197 From: "izm_ka" <izm_ka@...>
Date: Wed Nov 18, 2009 3:53 am
Subject: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
izm_ka
Offline Offline
Send Email Send Email
 
Maybe this question has been answered somewhere on forums, but I could not find.
Basically, I want to filter chars in the in-place edit box to allow entering
only digits (for integer). I thought that PreTranslateMessage can help, but the
method is never called. My in-place control is derived as:

class CMyInPlaceEdit
	 : public CWindowImpl<CMyInPlaceEdit, CEdit>
	 , public CMessageFilter
	 , public CUpdateUI<CMyInPlaceEdit>
{
public:
     DECLARE_WND_SUPERCLASS(_T("inplaceEdit"), CEdit::GetWndClassName())

     virtual BOOL PreTranslateMessage(MSG* pMsg);
...

Please help...

#16198 From: "Igor Tandetnik" <itandetnik@...>
Date: Wed Nov 18, 2009 5:22 am
Subject: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
itandetnik
Offline Offline
Send Email Send Email
 
izm_ka wrote:
> Maybe this question has been answered somewhere on forums, but I could not
find. Basically, I want to filter chars in the
> in-place edit box to allow entering only digits (for integer). I thought that
PreTranslateMessage can help, but the method is
> never called.

Did you actually register your message filter? Something like

CMessageLoop* pLoop = _Module.GetMessageLoop();
  pLoop->AddMessageFilter(this);

--
With best wishes,
     Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not necessarily a
good idea. It is hard to be sure where they are going to land, and it could be
dangerous sitting under them as they fly overhead. -- RFC 1925

#16199 From: "izm_ka" <izm_ka@...>
Date: Wed Nov 18, 2009 7:09 am
Subject: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
izm_ka
Offline Offline
Send Email Send Email
 
Nope - I do not really know where to register the message loop. My inplace edit
box is shown in an ATL Property Page which can be invoked from any app, e.g.
.NET. I can try to implement MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog) in the
property page and register the handler there, would that work?

Thank you!

#16200 From: "Konstantin Mironovich" <const@...>
Date: Wed Nov 18, 2009 11:38 am
Subject: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
const_at_ixbt
Offline Offline
Send Email Send Email
 
ES_NUMBER style does not work?

-km
   ----- Original Message -----
   From: izm_ka
   To: wtl@yahoogroups.com
   Sent: Wednesday, November 18, 2009 6:53 AM
   Subject: [wtl] PreTranslateMessage is not called in CMessageFilter and
CEdit derived class



   Maybe this question has been answered somewhere on forums, but I could not
find. Basically, I want to filter chars in the in-place edit box to allow
entering only digits (for integer). I thought that PreTranslateMessage can
help, but the method is never called. My in-place control is derived as:

   class CMyInPlaceEdit
   : public CWindowImpl<CMyInPlaceEdit, CEdit>
   , public CMessageFilter
   , public CUpdateUI<CMyInPlaceEdit>
   {
   public:
   DECLARE_WND_SUPERCLASS(_T("inplaceEdit"), CEdit::GetWndClassName())

   virtual BOOL PreTranslateMessage(MSG* pMsg);
   ...

   Please help...






[Non-text portions of this message have been removed]

#16201 From: "Igor Tandetnik" <itandetnik@...>
Date: Wed Nov 18, 2009 12:34 pm
Subject: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
itandetnik
Offline Offline
Send Email Send Email
 
izm_ka wrote:
> Nope - I do not really know where to register the message loop.

Constructor seems like a good place.

> My inplace edit box is shown in an ATL Property Page which can be
> invoked from any app, e.g. .NET.

I don't know what an "ATL Property Page" is. CMessageFilter is only useful in a
WTL application, where the message pump is implemented with the help of
CMessageLoop.
--
With best wishes,
     Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not necessarily a
good idea. It is hard to be sure where they are going to land, and it could be
dangerous sitting under them as they fly overhead. -- RFC 1925

#16202 From: "Jim Barry" <j.barry@...>
Date: Wed Nov 18, 2009 1:37 pm
Subject: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
jim_barry.geo
Offline Offline
Send Email Send Email
 
"izm_ka" wrote:
> Maybe this question has been answered somewhere on forums, but I could
> not find. Basically, I want to filter chars in the in-place edit box to
> allow
> entering only digits (for integer).

As already mentioned, there is the ES_NUMBER style, though it doesn't
support signed numbers or hexadecimal.

> I thought that PreTranslateMessage can help, but the method is never
> called.

You don't need a message filter - just handle the WM_CHAR message. Here is
how I restrict input to hexadecimal digits:

class CHexEdit :
     public CWindowImpl<CHexEdit, CEdit>
{
     BEGIN_MSG_MAP_EX(CMainDlg)
         MSG_WM_CHAR(OnChar)
     END_MSG_MAP()

     void OnChar(TCHAR ch, UINT, UINT)
     {
         // Allow hex digits and backspace.
         if ((VK_BACK == ch) ||
             _tcschr(_T("0123456789ABCDEFabcdef"), ch))
         {
             SetMsgHandled(FALSE);
             return;
         }
         MessageBeep(0);
     }
};

Note that invalid characters can still be pasted into the edit control.
You'll have to take additional steps if you want to prevent that.

- Jim

#16203 From: "izm_ka" <izm_ka@...>
Date: Wed Nov 18, 2009 6:05 pm
Subject: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
izm_ka
Offline Offline
Send Email Send Email
 
CHexEdit is a good idea, I'll try it shortly. However, how would you disable
pasting arbitrary text into the edit box?

The property page is declared as:
[
	 coclass,
	 threading(apartment),
	 vi_progid("BBB.PropPage"),
	 progid("BBB.PropPage.1"),
	 version(1.0),
	 uuid(<guid>),
	 helpstring("CBBBPropPage"),
	 default(IUnknown)
]
class ATL_NO_VTABLE CBBBPropPage :
	 public IPropertyPageImpl<CBBBPropPage>,
	 public IPersistPropertyBag,
	 public CValidateCertificate,
	 public CDialogImpl<CBBBPropPage>
{
...
Then it registered with special script (.rgs file) and can be used from any
application. So there is no AtlModule...

#16204 From: "Jim Barry" <j.barry@...>
Date: Wed Nov 18, 2009 6:24 pm
Subject: Re: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
jim_barry.geo
Offline Offline
Send Email Send Email
 
"izm_ka" wrote:
> CHexEdit is a good idea, I'll try it shortly. However, how would you
> disable pasting arbitrary text into the edit box?

Just handle WM_PASTE. You can examine the contents of the clipboard, and if
you like what you see then pass the message on to the edit control.

- Jim

#16205 From: "izm_ka" <izm_ka@...>
Date: Wed Nov 18, 2009 6:41 pm
Subject: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
izm_ka
Offline Offline
Send Email Send Email
 
Awesome! Jim, I owe you several beers. I do not know where you live, but if you
happen to be in Arizona, I would be happy to bring it :)

The code I'm converting from MFC is handling many other keys including Crtl+C,
Ctrl+V, VK_DOWN, VK_TAB, VK_RETURN, VK_PRIOR, etc. Do you think they all can be
handled in OnChar or OnKeyDown functions? Looks like there is no need for
PreTranslateMessage then, right?

Thank you again to everyone!

#16206 From: "Jim Barry" <j.barry@...>
Date: Wed Nov 18, 2009 7:07 pm
Subject: Re: Re: PreTranslateMessage is not called in CMessageFilter and CEdit derived class
jim_barry.geo
Offline Offline
Send Email Send Email
 
"izm_ka" wrote:
> The code I'm converting from MFC is handling many other keys including
> Crtl+C, Ctrl+V, VK_DOWN, VK_TAB, VK_RETURN, VK_PRIOR, etc. Do you think
> they all can be handled in OnChar or OnKeyDown functions?

If the edit control is in a dialog then you will have trouble with VK_TAB
and VK_RETURN, as the dialog manager intercepts those keystrokes. In that
case you have to handle the WM_GETDLGCODE message and return an appropriate
value to indicate that you want the control to receive the keystrokes.

- Jim

#16207 From: mike <mike@...>
Date: Wed Nov 18, 2009 8:10 pm
Subject: unresolved symbols
mwfrith
Online Now Online Now
Send Email Send Email
 
A colleague modified his ATL project and now he's getting

2>FolderFileCtrl.obj : error LNK2019: unresolved external symbol
"public: __thiscall WTL::CString::~CString(void)"
(??1CString@WTL@@QAE@XZ) referenced in function
__unwindfunclet$??0CFileDialogFilter@@QAE@PB_W@Z$0

2>FolderFileCtrl.obj : error LNK2019: unresolved external symbol
"protected: static void __stdcall WTL::CString::Release(struct
WTL::CStringData *)" (?Release@CString@WTL@@KGXPAUCStringData@2@@Z)
referenced in function "public: wchar_t * __thiscall
WTL::CString::GetBuffer(int)" (?GetBuffer@CString@WTL@@QAEPA_WH@Z)

2>FolderFileCtrl.obj : error LNK2019: unresolved external symbol
"protected: static class WTL::CString const & __stdcall
WTL::CString::_GetEmptyString(void)"
(?_GetEmptyString@CString@WTL@@KGABV12@XZ) referenced in function
"protected: void __thiscall WTL::CString::Init(void)"
(?Init@CString@WTL@@IAEXXZ)

2>FolderFileCtrl.obj : error LNK2019: unresolved external symbol
"protected: void __thiscall WTL::CString::Release(void)"
(?Release@CString@WTL@@IAEXXZ) referenced in function "protected: int
__thiscall WTL::CString::AllocBeforeWrite(int)"
(?AllocBeforeWrite@CString@WTL@@IAEHH@Z)

Any ideas? We've moved libary order, changes include order with no success.

thanks
Mike


[Non-text portions of this message have been removed]

#16208 From: "Jim Barry" <j.barry@...>
Date: Thu Nov 19, 2009 12:18 pm
Subject: Re: unresolved symbols
jim_barry.geo
Offline Offline
Send Email Send Email
 
"mike" wrote:
> A colleague modified his ATL project and now he's getting
>
> 2>FolderFileCtrl.obj : error LNK2019: unresolved external symbol
> "public: __thiscall WTL::CString::~CString(void)"
> (??1CString@WTL@@QAE@XZ) referenced in function
> __unwindfunclet$??0CFileDialogFilter@@QAE@PB_W@Z$0
>
> Any ideas? We've moved libary order, changes include order with no
> success.

Not sure, but I don't think there's any reason to use WTL::CString unless
you're targeting ATL version 3. Just use the ATL::CString in atlstr.h. To
get rid of the WTL one, define _WTL_NO_CSTRING, or simply don't include
atlmisc.h.

- Jim

#16209 From: "jon_feider" <jon_unohoo@...>
Date: Thu Nov 19, 2009 10:26 am
Subject: WTL with VS2010 Beta2 and Win7 SDK?
jon_feider
Offline Offline
Send Email Send Email
 
Has anyone else tried WTL with Visual Studio 2010 Beta2 and the Windows 7 SDK? I
haven't yet, but I'm thinking about it and hoping someone who already has can
give me some tips and pointers.

#16210 From: jo jojo <superjo2007@...>
Date: Thu Nov 19, 2009 5:30 am
Subject: Re: unresolved symbols
superjo2007
Offline Offline
Send Email Send Email
 
link msvcrtd.lib for debug version
and msvcrt.lib for release version

--- On Thu, 19/11/09, mike <mike@...> wrote:

From: mike <mike@...>
Subject: [wtl] unresolved symbols
To: "wtl" <wtl@yahoogroups.com>
Date: Thursday, 19 November, 2009, 1:40 AM







 









       A colleague modified his ATL project and now he's getting



2>FolderFileCtrl. obj : error LNK2019: unresolved external symbol

"public: __thiscall WTL::CString: :~CString( void)"

(??1CString@ WTL@@QAE@ XZ) referenced in function

__unwindfunclet$ ??0CFileDialogFi lter@@QAE@ PB_W@Z$0



2>FolderFileCtrl. obj : error LNK2019: unresolved external symbol

"protected: static void __stdcall WTL::CString: :Release( struct

WTL::CStringData *)" (?Release@CString@ WTL@@KGXPAUCStri ngData@2@ @Z)

referenced in function "public: wchar_t * __thiscall

WTL::CString: :GetBuffer( int)" (?GetBuffer@ CString@WTL@ @QAEPA_WH@ Z)



2>FolderFileCtrl. obj : error LNK2019: unresolved external symbol

"protected: static class WTL::CString const & __stdcall

WTL::CString: :_GetEmptyString (void)"

(?_GetEmptyString@ CString@WTL@ @KGABV12@ XZ) referenced in function

"protected: void __thiscall WTL::CString: :Init(void) "

(?Init@CString@ WTL@@IAEXXZ)



2>FolderFileCtrl. obj : error LNK2019: unresolved external symbol

"protected: void __thiscall WTL::CString: :Release( void)"

(?Release@CString@ WTL@@IAEXXZ) referenced in function "protected: int

__thiscall WTL::CString: :AllocBeforeWrit e(int)"

(?AllocBeforeWrite@ CString@WTL@ @IAEHH@Z)



Any ideas? We've moved libary order, changes include order with no success.



thanks

Mike



[Non-text portions of this message have been removed]























       The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
http://in.yahoo.com/

[Non-text portions of this message have been removed]

#16211 From: "Alain Rist" <ar@...>
Date: Thu Nov 19, 2009 2:11 pm
Subject: Re: WTL with VS2010 Beta2 and Win7 SDK?
arnavpoch
Offline Offline
Send Email Send Email
 
Yes I did, no problem :),

cheers,
AR

   ----- Original Message -----
   From: jon_feider
   To: wtl@yahoogroups.com
   Sent: Thursday, November 19, 2009 11:26 AM
   Subject: [wtl] WTL with VS2010 Beta2 and Win7 SDK?



   Has anyone else tried WTL with Visual Studio 2010 Beta2 and the Windows 7 SDK?
I haven't yet, but I'm thinking about it and hoping someone who already has can
give me some tips and pointers.





[Non-text portions of this message have been removed]

#16212 From: "yooyo3d" <yooyo3d@...>
Date: Fri Nov 20, 2009 12:05 pm
Subject: How to draw in MDI?
yooyo3d
Offline Offline
Send Email Send Email
 
Hi,

I have MDI application and I want to draw some image on main MDI window
(MainFrm), like company logo and some text.
Responding on WM_PAINT message didnt work. Any idea?

#16213 From: "Jim Barry" <j.barry@...>
Date: Fri Nov 20, 2009 2:09 pm
Subject: Re: How to draw in MDI?
jim_barry.geo
Offline Offline
Send Email Send Email
 
"yooyo3d" wrote:
> I have MDI application and I want to draw some image on main MDI window
> (MainFrm), like company logo and some text.
> Responding on WM_PAINT message didnt work. Any idea?

In your CMainFrame::OnCreate there should be something like:

   CreateMDIClient();
   m_CmdBar.SetMDIClient(m_hWndMDIClient);

At this point you can subclass the MDICLIENT window (m_hWndMDIClient) and
handle its WM_PAINT messages.

- Jim

#16214 From: "ms_wtl" <ms_wtl@...>
Date: Fri Nov 20, 2009 4:31 pm
Subject: Visual WTL wizard
ms_wtl
Offline Offline
Send Email Send Email
 
Is anybody using this WTL wizard ?

http://sourceforge.net/projects/visualfc/

Do you find it helpful ?

Messages 16185 - 16214 of 16214   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help