|
thank you Joel,
it works using DeviceCapabilities function.
very kind of you
|
|
|
|
|
HI,
I have a VC++ application which can be accessed thru a Telnet Server. I want to maintain the Session state in case of any n/w failure between the client and Server.That is when ever a client trys to connect back to the Server after a n/w failure the server has to take the user to the state were he was disconnected.
Question is :
where can do the buffering in order to maintain session,In the Telnet Server or my VC++ application.Pls help
Thnks for reading and Thnks in advance
Ram
|
|
|
|
|
Hi All,
I am working on MFC for some time now. I want to learn VC++ on .Net. Can any one suggest some good books on this. Any good books available for Managed C++? I have seen some good articles here on Managed C++. Thanks to Nish for that. Kindly help..
Thanks in advance.
Vini
|
|
|
|
|
Hi,
I have an existing Win32 console app. I want to now add user interface (MDI) to it, which obviously I would like to be run in a separate thread. I used AfxBeginThread to create a new MFC thread which creates my interface, etc. But, the problem is that in this implementation I do not have any CWinApp object at all, and therefore I cannot use some MFC functions. What is the correct way to create a user interface using MFC in a thread other than the main thread of my app?
Thanks,
Krishnan
|
|
|
|
|
Hi,
there are 2 types of threads in win32/mfc... applications:
1) worker thread.
2) UI thread.
your case is the second one, UI thread. all UI threads in MFC application must inherite CWinThread class..... then when you call AfxBeginThread(..) method, you pass your dervied-CWinThread object as the parameter.
the CWinThread class, has the method : "InitInstance()" there you must create the proper MDI objects you want to display.....
read about UI thread in the MSDN or here...
hope this helps ya
regards,
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
YaronNir wrote:
your case is the second one, UI thread. all UI threads in MFC application must inherite CWinThread class..... then when you call AfxBeginThread(..) method, you pass your dervied-CWinThread object as the parameter.
the CWinThread class, has the method : "InitInstance()" there you must create the proper MDI objects you want to display.....
I have already done that. But, the problem is how do I create a CWinApp object. Since, my app is a console app, I cannot declare a global variable for the CWinApp object. Also that object would be instantiated in the main thread, whereas my UI is in different thread.
|
|
|
|
|
Hi All,
I want to display the active desktop on the click of a button. Is there any method in VC++ for doing this?..Pls help me out.
meenu
|
|
|
|
|
I have installed SAPI5.1 on win2k machine. I also have L & H German language engine installed. I am trying to access the L&H voices programatically. However the ISPVoice Interface is unable to use L&H voices. I checked out the registry keys HKLM\\Microsoft\Speech\Voices\Token\ but didnt found any entry for L&H voice. Strangely enough when installed on another machine the entries were found along with extra files installed at C:\Program Files\Common Files\L&H\SpeechEngines\1031\TTS\TTS3000\
I tried installing installing the same downloads on different machine but in vain. None of them showed these required entries and these extra files...
Can anyone throw some light on this weird behavior????
M$
|
|
|
|
|
final = line1 + "\n" + line2 + "\n" + line3;
The "\n"'s show up as little ticks in the edit box. What gives?
|
|
|
|
|
|
Now I get a double tick. ????
|
|
|
|
|
What kind of control and what font are you using?
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Never mind - I see you're using an edit control. Did you enable its "multiline" property?
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I'm not quite sure on how to do that.
|
|
|
|
|
Set the property in the resource editor.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
Is there a Function or Control which can be used to Draw a grid of Circles say (5 rows and 5 col) which can represented in color?
is there an other way to accomplish.any suggestions?
Thanks,
Create a path and Leave your trail.....
|
|
|
|
|
If you're using MFC, there are quite a few CDC drawing functions you can use to do this. You can also use the Win32 analog functions that operate on a device context (i.e. an HDC).
MSDN link[^]
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I heard there are ways to do processing in memory using some dedicated API by Ms like VirtualAlloc(..) etc.
Anyone familiar with this and care to show some sample codes.
Just for learning.
Thanks
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
You can try this[^]
Paul Lyons, CCPL Certified Code Project Lurker
|
|
|
|
|
Does anyone know how to get the MAC address of the machine at the other end of a Windows Socket? i.e. Machine A listens to a Socket. Machine B connects. How can Machine A get the MAC address of Machine B? I see plenty of ways to get the local MAC, but none for the remote. Am I missing something obvious? Thanks!
|
|
|
|
|
|
I use ProfUIS library for that, the library is very good, easy to use. You can download free or trial versions of it: http://www.prof-uis.com/Overview.aspx
Best Regards,
Haldir
|
|
|
|
|
Downloads are on this page:
http://www.prof-uis.com/download.aspx
Best Regards,
Haldir
|
|
|
|
|
Needed to use straight CDC instead of CPaintDC or CClientDC.
I've found this code on msdn:
PAINTSTRUCT ps;<br />
CDC* pDC=NULL;<br />
pDC=BeginPaint(&ps);<br />
...<br />
EndPaint(&ps);
This results in a BIG memory leak. And I haven't got a clue.
Tried delete pDC; but that leads to a crash.
using: [VISUAL STUDIO 6.0 sp5] [WIN98/2]
|
|
|
|
|
Try something like this:
CClient dcDisplay( this );
CDC dc;
dc.CreateCompatibleDC( &dcDisplay );
CBitmap bmBitmap;
bmBitmap.CreateBitmap( ... ); // How ever you want to do it
dc.SelectObject( &bmBitmap );
... GDI functions
<end of function, GDI gets released>
Larry J. Siddens
Cornerstone Communications
TAME THE DOCUMENT MONSTER
www.unifier.biz
|
|
|
|