Click here to Skip to main content
15,888,092 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: renaming files Pin
khomeyni20-Nov-10 23:48
khomeyni20-Nov-10 23:48 
GeneralRe: renaming files Pin
Richard MacCutchan21-Nov-10 1:15
mveRichard MacCutchan21-Nov-10 1:15 
GeneralRe: renaming files Pin
pasztorpisti2-Dec-10 6:11
pasztorpisti2-Dec-10 6:11 
AnswerRe: renaming files Pin
mbue9-Dec-10 15:28
mbue9-Dec-10 15:28 
GeneralRe: renaming files Pin
khomeyni10-Dec-10 4:26
khomeyni10-Dec-10 4:26 
QuestionHow to use WTL in dll? Pin
tank017-Nov-10 0:40
tank017-Nov-10 0:40 
AnswerRe: How to use WTL in dll? Pin
Alain Rist17-Nov-10 4:45
Alain Rist17-Nov-10 4:45 
GeneralRe: How to use WTL in dll? Pin
tank017-Nov-10 5:12
tank017-Nov-10 5:12 
Alain Rist wrote:
WTL is a template library and as you certainly know templates are compiled when used, not when declared. Thus it is impossible to export uninstanciated template classes from a dll.

That said, you can use WTL in dlls which export only fully instanciated templates like WTL_DLL.ZIP in the Files section of the WTL support list[^].

Another example is here[^].

cheers,
AR


Thanks for your reply. What I what to do is just like you said.
Export a single function in the dll such as ShowDlg()
What the ShowDlg function do is that creates a modal window and shows.

With MFC, I can just create a "Regular DLL with MFC statically linked" project and in the project use codes like below is enough.
But I don't know what to do with WTL. WTL appwizard can only create exe projects. Frown | :(

extern "C" __declspec(dllexport) void ShowDlg()
{
    CDialog dlg(IDD_Dialog1);
    dlg.DoModal();
}

GeneralRe: How to use WTL in dll? Pin
Alain Rist17-Nov-10 6:05
Alain Rist17-Nov-10 6:05 
GeneralRe: How to use WTL in dll? Pin
tank017-Nov-10 13:34
tank017-Nov-10 13:34 
GeneralRe: How to use WTL in dll? Pin
Alain Rist17-Nov-10 20:29
Alain Rist17-Nov-10 20:29 
QuestionOnQuit event of DWebBrowserEvents2 interface not called on IE8 on some Vista machin Pin
am 200916-Nov-10 17:04
am 200916-Nov-10 17:04 
AnswerRe: OnQuit event of DWebBrowserEvents2 interface not called on IE8 on some Vista machin Pin
KingsGambit18-Nov-10 19:37
KingsGambit18-Nov-10 19:37 
QuestionUsing WMI to Query for Currently Attached USB Device Pin
Jim Fell16-Nov-10 8:40
Jim Fell16-Nov-10 8:40 
QuestionCalling a com interface function ,but find a problem Pin
confideman200013-Nov-10 2:24
confideman200013-Nov-10 2:24 
AnswerRe: Calling a com interface function ,but find a problem Pin
Richard MacCutchan13-Nov-10 5:51
mveRichard MacCutchan13-Nov-10 5:51 
AnswerRe: Calling a com interface function ,but find a problem Pin
Stephen Hewitt13-Nov-10 18:14
Stephen Hewitt13-Nov-10 18:14 
Questionhello i have a problem with linux Pin
lxlenovostar11-Nov-10 15:19
lxlenovostar11-Nov-10 15:19 
AnswerRe: hello i have a problem with linux Pin
Dr.Walt Fair, PE11-Nov-10 17:10
professionalDr.Walt Fair, PE11-Nov-10 17:10 
Questionwindows c++ fstream log file rollover Pin
Alan Kurlansky10-Nov-10 4:18
Alan Kurlansky10-Nov-10 4:18 
AnswerRe: windows c++ fstream log file rollover Pin
Richard MacCutchan10-Nov-10 6:12
mveRichard MacCutchan10-Nov-10 6:12 
GeneralRe: windows c++ fstream log file rollover Pin
Alan Kurlansky12-Nov-10 4:18
Alan Kurlansky12-Nov-10 4:18 
QuestionWhy "FlatSB" is useless in WTL? ::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0. Pin
dancingfish9-Nov-10 20:01
dancingfish9-Nov-10 20:01 
AnswerRe: Why "FlatSB" is useless in WTL? ::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0. [modified] Pin
Alain Rist9-Nov-10 21:31
Alain Rist9-Nov-10 21:31 
GeneralRe: Why "FlatSB" is useless in WTL? ::InitializeFlatSB,::FlatSB_EnableScrollBar,::FlatSB_SetScrollProp...return 0. Pin
dancingfish10-Nov-10 17:11
dancingfish10-Nov-10 17:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.