Click here to Skip to main content
11,584,622 members (75,613 online)

ATL / WTL / STL

 
AnswerRe: unicode and non-unicode Pin
Albert Holguin11-Feb-13 5:10
memberAlbert Holguin11-Feb-13 5:10 
Questionsqlconfigdatasource fails on 64 bit from 64 application Pin
khaliloenit10-Jan-13 23:02
memberkhaliloenit10-Jan-13 23:02 
AnswerRe: sqlconfigdatasource fails on 64 bit from 64 application Pin
Richard MacCutchan10-Jan-13 23:10
mvpRichard MacCutchan10-Jan-13 23:10 
GeneralRe: sqlconfigdatasource fails on 64 bit from 64 application Pin
khaliloenit10-Jan-13 23:14
memberkhaliloenit10-Jan-13 23:14 
GeneralRe: sqlconfigdatasource fails on 64 bit from 64 application Pin
Richard MacCutchan10-Jan-13 23:32
mvpRichard MacCutchan10-Jan-13 23:32 
QuestionProblem with embedded ATL component Pin
HungryCPPDev7-Jan-13 1:08
memberHungryCPPDev7-Jan-13 1:08 
Questionbooks: activeX and com, Pin
bkelly131-Jan-13 9:58
memberbkelly131-Jan-13 9:58 
AnswerRe: books: activeX and com, Pin
Jonathan Davies10-Jan-13 1:56
memberJonathan Davies10-Jan-13 1:56 
QuestionWhile launching a winapp as ole server some time OnFIleNew() failed Pin
vermaashish_mca31-Dec-12 0:27
membervermaashish_mca31-Dec-12 0:27 
QuestionTCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1321-Dec-12 6:09
memberbkelly1321-Dec-12 6:09 
AnswerRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti22-Dec-12 9:51
memberpasztorpisti22-Dec-12 9:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1327-Dec-12 6:16
memberbkelly1327-Dec-12 6:16 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti27-Dec-12 13:47
memberpasztorpisti27-Dec-12 13:47 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1328-Dec-12 3:08
memberbkelly1328-Dec-12 3:08 
Hello pasztorpisti,
Re: Anyway, why do you want to use async sockets?
Async makes the application easier to deal with.   First, when the client has not connected the main application can still capture data from the source and provide feedback as to how it is performing.   Once the Listen() is posted, the app is stuck there and can do nothing.
Second, if the client closes the connection before my app closes, the app is stuck and must be killed.   That causes some resource loss eventually requiring a computer boot.

I have mitigated that quite a bit by writing my own client application that can be fired up and release the main application.   But I am not always the user and that is a real pain to require someone else to do.   (BTW: Writing the client application was indeed a learning experience.)

I suspect that both of these problems can be resolved by using a separate thread for the TCP/IP part of the application.   I found a tutorial and will be working on that aspect.

However, I have a working version and do not have unlimited time to devote to this project.

pasztorpisti, Richard M, and others,
Thank you very much for the time you have spent answering my questions and making suggestions.   I am very gratefull.

Thanks for your time

-- modified 28-Dec-12 9:15am.
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti28-Dec-12 3:37
memberpasztorpisti28-Dec-12 3:37 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1327-Dec-12 8:22
memberbkelly1327-Dec-12 8:22 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti27-Dec-12 14:02
memberpasztorpisti27-Dec-12 14:02 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
SoMad27-Dec-12 14:51
memberSoMad27-Dec-12 14:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1328-Dec-12 3:13
memberbkelly1328-Dec-12 3:13 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti28-Dec-12 5:06
memberpasztorpisti28-Dec-12 5:06 
Questioncalling virtual base class Pin
bkelly1314-Dec-12 7:36
memberbkelly1314-Dec-12 7:36 
AnswerRe: calling virtual base class Pin
pasztorpisti18-Dec-12 22:39
memberpasztorpisti18-Dec-12 22:39 
AnswerRe: calling virtual base class Pin
Albert Holguin19-Dec-12 7:22
memberAlbert Holguin19-Dec-12 7:22 
GeneralThe reason for the question Pin
bkelly1319-Dec-12 15:51
memberbkelly1319-Dec-12 15:51 
GeneralRe: The reason for the question Pin
Richard MacCutchan19-Dec-12 23:06
mvpRichard MacCutchan19-Dec-12 23:06 
GeneralRe: The reason for the question Pin
bkelly1321-Dec-12 6:11
memberbkelly1321-Dec-12 6:11 
Questioncannot add control variable to checkbox Pin
bkelly1314-Dec-12 3:07
memberbkelly1314-Dec-12 3:07 
AnswerRe: cannot add control variable to checkbox Pin
Richard MacCutchan14-Dec-12 3:36
mvpRichard MacCutchan14-Dec-12 3:36 
GeneralRe: cannot add control variable to checkbox Pin
bkelly1314-Dec-12 5:18
memberbkelly1314-Dec-12 5:18 
Questiondetect multiple instances of an application Pin
bkelly1310-Dec-12 12:28
memberbkelly1310-Dec-12 12:28 
AnswerRe: detect multiple instances of an application Pin
Pete O'Hanlon10-Dec-12 12:31
protectorPete O'Hanlon10-Dec-12 12:31 
GeneralRe: detect multiple instances of an application Pin
bkelly1310-Dec-12 13:38
memberbkelly1310-Dec-12 13:38 
AnswerRe: detect multiple instances of an application Pin
H.Brydon31-Dec-12 20:09
memberH.Brydon31-Dec-12 20:09 
QuestionOpen file in basic MFC app Pin
bkelly135-Dec-12 14:45
memberbkelly135-Dec-12 14:45 
AnswerRe: Open file in basic MFC app Pin
Richard MacCutchan5-Dec-12 21:24
mvpRichard MacCutchan5-Dec-12 21:24 
GeneralRe: Open file in basic MFC app Pin
bkelly139-Dec-12 11:36
memberbkelly139-Dec-12 11:36 
GeneralRe: Open file in basic MFC app Pin
Richard MacCutchan9-Dec-12 21:36
mvpRichard MacCutchan9-Dec-12 21:36 
Generalthe answer is Pin
bkelly139-Dec-12 12:25
memberbkelly139-Dec-12 12:25 
QuestionHow To Use Macro In dsp file(VC6.0 *.dsp file) Pin
yingkou27-Nov-12 14:37
memberyingkou27-Nov-12 14:37 
AnswerRe: How To Use Macro In dsp file(VC6.0 *.dsp file) Pin
Richard MacCutchan27-Nov-12 23:34
mvpRichard MacCutchan27-Nov-12 23:34 
QuestionAccessibleObjectFromWindow returns E_ACCESSDENIED Pin
BianChengNan25-Nov-12 23:04
memberBianChengNan25-Nov-12 23:04 
QuestionHow to use NTGraph3D Activex Control in Visual Studio 2010. Pin
DhrumilS23-Nov-12 0:44
memberDhrumilS23-Nov-12 0:44 
Newshacker240union Pin
hacker240union22-Nov-12 23:40
memberhacker240union22-Nov-12 23:40 
Questioncopying AAComBSTR to BYTE Pin
V K 220-Nov-12 20:56
memberV K 220-Nov-12 20:56 
AnswerRe: copying AAComBSTR to BYTE Pin
Richard MacCutchan20-Nov-12 21:28
mvpRichard MacCutchan20-Nov-12 21:28 
AnswerRe: copying AAComBSTR to BYTE Pin
hacker240union22-Nov-12 23:27
memberhacker240union22-Nov-12 23:27 
QuestionC++ Delegate/Events Pin
Edward G Dana14-Nov-12 17:15
memberEdward G Dana14-Nov-12 17:15 
AnswerRe: C++ Delegate/Events Pin
Richard MacCutchan14-Nov-12 20:57
mvpRichard MacCutchan14-Nov-12 20:57 
GeneralRe: C++ Delegate/Events Pin
Edward G Dana15-Nov-12 13:35
memberEdward G Dana15-Nov-12 13:35 
GeneralRe: C++ Delegate/Events Pin
Richard MacCutchan15-Nov-12 23:45
mvpRichard MacCutchan15-Nov-12 23:45 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150707.1 | Last Updated 7 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid