I have a couple other problems too which other people are probably able to
fix easily themselves the right way. i fixed them enough for it to compile
and it works fine in normal mode but when i try to send just one window it
crashes after 5-20 seconds.
If someone could post the source with the way they modified it, or even a
binary that works on a website somewhere, or tell me the right way to fix
these errors because the way i fixed them may have gotten it to compile, but
it doesn't work too well.
thanks, craig
PS, i incorporated the change quoted below about GetHwndFn(), it worked
great thanks
------------------
so here is the code:
one error i was getting was:
vncProperties.cpp(458) : error C2065: 'name' : undeclared identifier
so i changed
if (GetDlgItemText(hwnd, IDC_NAME_APPLI, (LPSTR) name, 15) == 0) {
log.Print(LL_INTINFO,VNCLOG("erreur lecture nom appli %d \n"),
GetLastError());
} else {
_this->m_server->SetNameAppli(name);
}
to
char name[15];
if (GetDlgItemText(hwnd, IDC_NAME_APPLI, (LPSTR) &name, 15) == 0) {
...
to fix these errors from these lines: (same error for m_server and
m_hwnd_appli
error C2248: 'm_server' : cannot access protected member declared in class
'vncDesktop'
if ( strcmp(buffer,((vncDesktop*)arg)->m_server->GetNameAppli()) == 0) {
((vncDesktop*)arg)->m_hwnd_appli = hwnd;
in vncDesktop.h i changed these two from private to public in vncDesktop.h
HWND m_hwnd_appli;
vncServer *m_server;
i think those are all the changed i made.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sharma, Shashi
Sent: April 11, 2001 1:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Single window add-on
>>The following works for me:
>> >
>> > vncBuffer.h:
>> > ------------
>> > public:
>> > HWND GetHwndFn();
>> >
>> > vncBuffer.cpp:
>> > --------------
>> > HWND
>> > vncBuffer::GetHwndFn()
>> > {
>> > return m_desktop->AppliWindow();
>> > };
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------