Click here to Skip to main content
16,011,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: URGENT : Need help on WMV3. Pin
haust5-May-04 5:39
haust5-May-04 5:39 
GeneralProblem with CShadeButtonST Pin
Tran Thanh Binh4-May-04 23:32
Tran Thanh Binh4-May-04 23:32 
Generalstreambuf Pin
Member 10128694-May-04 22:26
Member 10128694-May-04 22:26 
GeneralRe: streambuf Pin
Mike Dimmick4-May-04 23:20
Mike Dimmick4-May-04 23:20 
QuestionMonitor event in another windows app? Pin
Member 10749994-May-04 22:18
Member 10749994-May-04 22:18 
AnswerRe: Monitor event in another windows app? Pin
Member 10749994-May-04 23:44
Member 10749994-May-04 23:44 
GeneralRe: Monitor event in another windows app? Pin
jmkhael5-May-04 0:03
jmkhael5-May-04 0:03 
GeneralRe: Monitor event in another windows app? Pin
Member 10749995-May-04 4:34
Member 10749995-May-04 4:34 
I tried FindWindow and that worked.

I can now check to see if X-lite is running. I am getting info back from FindWindow and getwindowtextlength but not getwindowtext. Also I think that that getwindowtext will only return the window title not the characters in the window?

I know this is VB and I am in the VC forum. Soory.

Private Sub mnuToolsFindWindow_Click()
'ToDo: Find the X-Lite Diagnostics Window
Dim hwnd As Long
Dim poo As Long
Dim lpString As String
Dim nMaxCount As Long
hwnd = FindWindow(vbNullString, "Diagnostics")

If hwnd = 0 Then
MsgBox "No"
Else
poo = GetWindowTextLength(hwnd) ' This returns 11 as you would expect

poo = GetWindowText(hwnd, lpString, nMaxCount) ' This return 0 with nothing in lpString
MsgBox "Yes"
MsgBox lpString
End If
End Sub
GeneralRe: Monitor event in another windows app? Pin
Member 10749995-May-04 5:07
Member 10749995-May-04 5:07 
GeneralRe: Monitor event in another windows app? Pin
jmkhael5-May-04 5:12
jmkhael5-May-04 5:12 
GeneralConfiguration Files Pin
Poljack4-May-04 21:40
Poljack4-May-04 21:40 
Generalerror in getprotobyname Pin
Juan Antonio Bermejo4-May-04 21:36
Juan Antonio Bermejo4-May-04 21:36 
GeneralRe: error in getprotobyname Pin
Mike Dimmick4-May-04 23:27
Mike Dimmick4-May-04 23:27 
GeneralRe: error in getprotobyname Pin
Juan Antonio Bermejo4-May-04 23:48
Juan Antonio Bermejo4-May-04 23:48 
GeneralRe: error in getprotobyname Pin
Juan Antonio Bermejo4-May-04 23:52
Juan Antonio Bermejo4-May-04 23:52 
GeneralRe: error in getprotobyname Pin
Mike Dimmick5-May-04 12:24
Mike Dimmick5-May-04 12:24 
Generalmultilanguage DLL Pin
Raphael Kindt4-May-04 21:27
Raphael Kindt4-May-04 21:27 
GeneralRe: multilanguage DLL Pin
Dimitris Vasiliadis24-May-04 12:02
Dimitris Vasiliadis24-May-04 12:02 
GeneralRe: multilanguage DLL Pin
Anonymous25-May-04 7:22
Anonymous25-May-04 7:22 
GeneralRe: multilanguage DLL Pin
Anouarzha1-Dec-09 23:30
Anouarzha1-Dec-09 23:30 
QuestionWindows 2K or Windows XP ? Pin
joconno44-May-04 21:08
joconno44-May-04 21:08 
AnswerRe: Windows 2K or Windows XP ? Pin
Henrik Stuart4-May-04 21:22
Henrik Stuart4-May-04 21:22 
QuestionMultiThreading Synchronization prob? Pin
mohit98144-May-04 20:39
mohit98144-May-04 20:39 
AnswerRe: MultiThreading Synchronization prob? Pin
Madmaximus5-May-04 4:53
Madmaximus5-May-04 4:53 
Generalopeninng a word file in own Active X control Pin
Abhi Lahare4-May-04 20:21
Abhi Lahare4-May-04 20:21 

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.