Click here to Skip to main content
15,912,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString search Pin
sspcmp23-Aug-00 7:21
susssspcmp23-Aug-00 7:21 
GeneralRe: CString search Pin
Philip Nicoletti23-Aug-00 7:59
Philip Nicoletti23-Aug-00 7:59 
GeneralRe: CString search Pin
#realJSOP23-Aug-00 8:45
professional#realJSOP23-Aug-00 8:45 
GeneralRe: CString search Pin
Paolo Messina23-Aug-00 9:55
professionalPaolo Messina23-Aug-00 9:55 
GeneralHOWTO: Find Height of stacked tabs in CPropertySheet Pin
Jeremy Davis23-Aug-00 2:20
Jeremy Davis23-Aug-00 2:20 
Generaldialog and large font Pin
Broker23-Aug-00 1:56
Broker23-Aug-00 1:56 
GeneralRe: dialog and large font Pin
Aquitaine24-Aug-00 9:16
Aquitaine24-Aug-00 9:16 
QuestionDDE...or: Why does my Thread stop Oracle Report Server??? Pin
didi23-Aug-00 1:48
didi23-Aug-00 1:48 
I am starting a thread in my application with:

MIThread = AfxBeginThread(MyThreadProc, this)->m_hThread;

After starting the thread I am doing some DDE initialisations (In my thread code):

DdeInitialize (&pidInst, DdeCallback, APPCMD_CLIENTONLY, NULL);
if (!pidInst) return FALSE;

DdeCallback is my DDE callback procedure and is defined as follows:
(HDDEDATA CALLBACK DdeCallback(UINT uType, UINT uFmt, HCONV hconv, HSZ hsz1, HSZ hsz2,HDDEDATA hdata, DWORD dwData1, DWORD dwData2) { return 0;})

After that I am doing some additional DDE initialisations:

hszMI = DdeCreateStringHandle(pidInst, "MapInfo", CP_WINANSI);
hszAp = DdeCreateStringHandle(pidInst, "elp.mbx", CP_WINANSI);
hDDEMI = DdeConnect (pidInst, hszMI, hszAp, NULL);
if (!hDDEMI) return FALSE;

After that I use a loop (to recieve or send messages)

while (!bEndMapInfo)
{
//nothing (usually I am doing some things here but I commented it out for testing purpurses)
sleep(100);
}

As long as the thread stays in this loop oracle reports stops. When I exit the loop it countinues.

Has anyone an Idea to solve the problem???

Any suggestion is helpfull
AnswerRe: DDE...or: Why does my Thread stop Oracle Report Server??? Pin
didi23-Aug-00 2:12
didi23-Aug-00 2:12 
Generalsynchronizing a file Pin
aasher22-Aug-00 22:45
aasher22-Aug-00 22:45 
GeneralRemote sys status monitoring Pin
tma2k222-Aug-00 18:38
tma2k222-Aug-00 18:38 
QuestionHow to Import TAB delimited files? Pin
AMON22-Aug-00 16:50
AMON22-Aug-00 16:50 
AnswerRe: How to Import TAB delimited files? Pin
#realJSOP23-Aug-00 1:34
professional#realJSOP23-Aug-00 1:34 
GeneralOpenGL Fast Redrawing Pin
Peter Eisfelder22-Aug-00 13:23
sussPeter Eisfelder22-Aug-00 13:23 
GeneralRe: OpenGL Fast Redrawing Pin
Philip Nicoletti23-Aug-00 2:32
Philip Nicoletti23-Aug-00 2:32 
GeneralRe: OpenGL Fast Redrawing Pin
Peter Eisfelder24-Aug-00 0:26
sussPeter Eisfelder24-Aug-00 0:26 
Generalmultiple file extensions in "OPEN FILE"-dialog Pin
Thomas Barthel22-Aug-00 11:18
sussThomas Barthel22-Aug-00 11:18 
GeneralRe: multiple file extensions in Pin
#realJSOP23-Aug-00 1:29
professional#realJSOP23-Aug-00 1:29 
GeneralHelp with Internal OLE Automation Error Pin
Brian22-Aug-00 10:34
Brian22-Aug-00 10:34 
GeneralMouse Postion Pin
sunny22-Aug-00 9:33
sunny22-Aug-00 9:33 
GeneralRe: Mouse Postion Pin
Paolo Messina23-Aug-00 9:24
professionalPaolo Messina23-Aug-00 9:24 
Generalsquiggle line possible Pin
Salik22-Aug-00 8:05
Salik22-Aug-00 8:05 
GeneralForcing Socket Connection of specific port Pin
#realJSOP22-Aug-00 4:56
professional#realJSOP22-Aug-00 4:56 
Generalvc / vb question Pin
Danny22-Aug-00 3:17
Danny22-Aug-00 3:17 
GeneralGetAmbientUserMode Pin
Aruna Gadige22-Aug-00 2:10
Aruna Gadige22-Aug-00 2: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.