Click here to Skip to main content
13,407,895 members (51,408 online)

ATL / WTL / STL

 
QuestionSQL Server Compact Edition Pin
Haakon S.11-Feb-13 5:23
memberHaakon S.11-Feb-13 5:23 
AnswerRe: SQL Server Compact Edition Pin
Richard MacCutchan11-Feb-13 5:42
mvpRichard MacCutchan11-Feb-13 5:42 
GeneralRe: SQL Server Compact Edition Pin
Haakon S.11-Feb-13 6:37
memberHaakon S.11-Feb-13 6:37 
GeneralRe: SQL Server Compact Edition Pin
Richard MacCutchan11-Feb-13 6:58
mvpRichard MacCutchan11-Feb-13 6:58 
Questionerror while trying to uplaod the file in current directory using c language Pin
raghvendrapanda30-Jan-13 20:34
memberraghvendrapanda30-Jan-13 20:34 
AnswerRe: error while trying to uplaod the file in current directory using c language Pin
Richard MacCutchan30-Jan-13 23:03
mvpRichard MacCutchan30-Jan-13 23:03 
AnswerRe: error while trying to uplaod the file in current directory using c language Pin
«_Superman_»1-Feb-13 21:34
member«_Superman_»1-Feb-13 21:34 
QuestionTCP/IP CAsyncSocket and pointers to same Pin
bkelly1324-Jan-13 16:16
memberbkelly1324-Jan-13 16:16 
Environment Windows XP and 7, Visual Studio 2008, C++.
Experience level: novice with TCP/IP, but do have the application working with CAsyncSocket.

The message application receives telemetry data from some hardware (arrives fast and furious), processes it and dispatches the results to a display device via TCP/IP. It sends the data to the client but does not receive from the client.

Setup: the TCP “Manager” is started by the main application and it listens for the client. On connect, it creates the “Sender” that does all the sending.

Question: what is the best, read that simple and maintainable, way for the manager to get the Sender pointer to the main application so it can use the Sender? When the client closes the connection, how is the application informed of that?

Tentative proposal: the application provides the Manager with a pointer to itself. When the connect is made the Manager calls an application method such as
Set_TCP_Sender_Pointer( C_Sender_Class *new_sender_pointer );

The Manager can pass the pointer (to the main application) to the Sender on creation. When the Sender gets a close from the client, it calls the same method using a NULL for the argument. This makes the application aware there is no Sender. Then the Sender exits. (There is only one thread so I think there is no concern about the application using a pointer to a non-existent Sender.)

I am pretty sure that will work, but if you had to pick up on this project, would it be easy to understand and maintain? Presume you are not an expert with TCP/IP in the Microsoft world.
I am open to alternative suggestions.

Thanks for your time
Answerclasses don't call upwards Pin
bkelly1326-Jan-13 9:55
memberbkelly1326-Jan-13 9:55 
QuestionATL and exceptions Pin
imagiro14-Jan-13 9:10
memberimagiro14-Jan-13 9:10 
AnswerRe: ATL and exceptions Pin
Jonathan Davies18-Jan-13 10:39
memberJonathan Davies18-Jan-13 10:39 
AnswerRe: ATL and exceptions Pin
bkelly1324-Jan-13 16:24
memberbkelly1324-Jan-13 16:24 
GeneralRe: ATL and exceptions Pin
Jonathan Davies6-Feb-13 8:23
memberJonathan Davies6-Feb-13 8:23 
GeneralRe: ATL and exceptions Pin
Albert Holguin11-Feb-13 6:12
memberAlbert Holguin11-Feb-13 6:12 
Questionunicode and non-unicode Pin
bkelly1314-Jan-13 4:45
memberbkelly1314-Jan-13 4:45 
AnswerRe: unicode and non-unicode Pin
Richard MacCutchan14-Jan-13 7:24
mvpRichard MacCutchan14-Jan-13 7:24 
GeneralRe: unicode and non-unicode Pin
bkelly1314-Jan-13 9:43
memberbkelly1314-Jan-13 9:43 
GeneralRe: unicode and non-unicode Pin
Richard MacCutchan14-Jan-13 23:13
mvpRichard MacCutchan14-Jan-13 23:13 
GeneralRe: unicode and non-unicode Pin
Richard MacCutchan20-Jan-13 23:08
mvpRichard MacCutchan20-Jan-13 23:08 
AnswerRe: unicode and non-unicode Pin
pasztorpisti20-Jan-13 2:33
memberpasztorpisti20-Jan-13 2:33 
GeneralRe: unicode and non-unicode Pin
bkelly1320-Jan-13 9:56
memberbkelly1320-Jan-13 9:56 
GeneralRe: unicode and non-unicode Pin
pasztorpisti20-Jan-13 11:45
memberpasztorpisti20-Jan-13 11:45 
AnswerRe: unicode and non-unicode Pin
Albert Holguin11-Feb-13 6:10
memberAlbert Holguin11-Feb-13 6:10 
Questionsqlconfigdatasource fails on 64 bit from 64 application Pin
khaliloenit11-Jan-13 0:02
memberkhaliloenit11-Jan-13 0:02 
AnswerRe: sqlconfigdatasource fails on 64 bit from 64 application Pin
Richard MacCutchan11-Jan-13 0:10
mvpRichard MacCutchan11-Jan-13 0:10 

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.


Advertise | Privacy |
Web02 | 2.8.180221.1 | Last Updated 11 Feb 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid