Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: R6017 Unexpected Multi-Thread Lock Pin
parnelltk5-Dec-02 11:56
parnelltk5-Dec-02 11:56 
GeneralRe: R6017 Unexpected Multi-Thread Lock Pin
PJ Arends5-Dec-02 15:42
professionalPJ Arends5-Dec-02 15:42 
Generalkeeping iterator in position Pin
Member 1043935-Dec-02 9:52
Member 1043935-Dec-02 9:52 
GeneralNeed HELP! MSXML! Pin
Daniel Strigl5-Dec-02 9:48
Daniel Strigl5-Dec-02 9:48 
GeneralCWinThread Question... Pin
RobJones5-Dec-02 9:42
RobJones5-Dec-02 9:42 
GeneralRe: CWinThread Question... Pin
Dave Bryant5-Dec-02 11:06
Dave Bryant5-Dec-02 11:06 
GeneralRe: CWinThread Question... Pin
RobJones5-Dec-02 11:09
RobJones5-Dec-02 11:09 
GeneralCallbackfunction question Pin
russell thorburn5-Dec-02 8:38
sussrussell thorburn5-Dec-02 8:38 
Ok, I'm going to show my ignorance here so please forgive me.

Here's the problem I'm trying to solve. I've got a Dialog based application which contains a listbox and a button. I've also got some legacy C code which contains a function that I must call after the user hits the button.

So, after the user hits the button we're in a function within the C legacy code. In this function, I need to update the ListBox with information contained in a character array.

As I understand it, the only method available to me is to use a call back function. I understand the basic concept but not the syntax. I'd really appreciate it if someone could help me with the syntax required. I'm adding some basic code below to further illustrate the problem.

Thanks SOOOO much for any help you can provide!!!!

--------------------------------
//Clegacycode.c
#include mydialogapp.h

void somefunction();

void somefunction(){

//need to update the list box with "HOWDY"
}
------------------------------
//mydialogapp.cpp
.
.
.
void CMyDialogAppDlg::OnCallTheLegacyStuff()
{

somefunction();
}


GeneralRe: Callbackfunction question Pin
Dave Bryant5-Dec-02 8:52
Dave Bryant5-Dec-02 8:52 
GeneralRe: Callbackfunction question Pin
russell thorburn5-Dec-02 11:03
sussrussell thorburn5-Dec-02 11:03 
GeneralCTabCtrl - Should be an easy one Pin
Dave_5-Dec-02 7:37
Dave_5-Dec-02 7:37 
GeneralRe: CTabCtrl - Should be an easy one Pin
Shog95-Dec-02 17:55
sitebuilderShog95-Dec-02 17:55 
Generaltoolbar position problems Pin
MichaT5-Dec-02 6:58
MichaT5-Dec-02 6:58 
GeneralRe: toolbar position problems Pin
Roger Allen5-Dec-02 7:55
Roger Allen5-Dec-02 7:55 
GeneralRe: toolbar position problems Pin
MichaT5-Dec-02 8:06
MichaT5-Dec-02 8:06 
GeneralCFont problem... Pin
Ruca5-Dec-02 6:23
Ruca5-Dec-02 6:23 
GeneralRe: CFont problem... Pin
Michael Dunn5-Dec-02 6:32
sitebuilderMichael Dunn5-Dec-02 6:32 
GeneralRe: CFont problem... Pin
Ruca5-Dec-02 6:48
Ruca5-Dec-02 6:48 
GeneralCHttpFile Pin
Paul M Watt5-Dec-02 6:01
mentorPaul M Watt5-Dec-02 6:01 
GeneralRe: CHttpFile Pin
sonshiro5-Dec-02 18:23
sonshiro5-Dec-02 18:23 
GeneralProbable Memory Leak Pin
Tili5-Dec-02 5:22
Tili5-Dec-02 5:22 
QuestionWhat is the difference between ... Pin
User 98855-Dec-02 5:14
User 98855-Dec-02 5:14 
AnswerRe: What is the difference between ... Pin
Maximilien5-Dec-02 5:24
Maximilien5-Dec-02 5:24 
GeneralRe: What is the difference between ... Pin
User 98855-Dec-02 5:29
User 98855-Dec-02 5:29 
GeneralRe: What is the difference between ... Pin
Maximilien5-Dec-02 5:45
Maximilien5-Dec-02 5:45 

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.