|
Try to read some MSDN documents about Windows Sockets API or MFC class CSocket or CAsyncSocket. You should understand the the mechanism of TCP first. If you wanna use a simple way to realize your program, use MFC CSocket would be your choice. But Windows Sockets API would be better for developer. Good luck.
|
|
|
|
|
I am wondering if the MFC code generated by VC++ 5.0 will run correctly, for the most part, on WinXP.
How about serial port usage in XP. Are there any issues there?
Thanks
John
|
|
|
|
|
xero@cmc.net wrote:
I am wondering if the MFC code generated by VC++ 5.0 will run correctly, for the most part, on WinXP
Yep, no reason why not, if it's a correctly written program.
xero@cmc.net wrote:
How about serial port usage in XP. Are there any issues there?
No, unless the user running the program doesn't have sufficient privileges to open the serial port.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
can some one help me by providing or submitting a tutorial that would explain "how to change the language in UI (User Interface) dynamically" by selecting suitable option from the menu using VC++ 6.0.i am a beginner to this so please explain it with a beginners approach(from the scratch).it will be very helpfulfor me.thank you
|
|
|
|
|
Hi feroz20!
There are surely other and perhaps better ways to do it but you can try the following:
At first get the CWnd* from every control using GetDlgItem(int nID) . With these pointers you can call SetWindowText(LPCTSTR lpszString) to change the control's text.
For example:
GetDlgItem(IDC_BTN_MYBUTTON)->SetWindowText(_T("New button text"));
Regards, mYkel
|
|
|
|
|
|
this is not the language, this is the CAPTION...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
My language files are plain text files (.txt) so everybody can modify them easily, even without an IDE. At program startup I load the appropriate language file an set the caption of every window control. Same thing when the user changes the language - I just load the other language file and reset the window controls.
Works perfect for me...
Regards, mYkel
|
|
|
|
|
|
sorry but... the second link don't exist anymore. CP tells me that the "page requested cannot be found". do you know about the new URL of that article ??
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
ok, it works fine now.
but from your side, you could modify your post ([Modify] button is there for that)...
anyway, good link
see you...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Implementing Drag&Drop from the explorer to a CListCtrl isn't very difficult. But I have a big problem with those da*n group boxes:
If my ListCtrl is surrounded by a group box the ListCtrl acts not as a drop target. The group box that has not the WS_EX_ACCEPTFILES flag seems to swallow the message. I can remember something about a flag for the group box to let all window messages through but right now I cannot find anything on the net.
Thanks a lot for your help!
Regards, mYkel
|
|
|
|
|
Change the z-order of the controls so that the listctrl is above the group box.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
Ahhh yes... the good old z-Order. I'm so tired!!!
PJ you're still rocking!
Regards, mYkel
|
|
|
|
|
Hi,
how can i use IsDebuggerPresent in my program?
|
|
|
|
|
|
Whatever i do i get this message
: warning C4013: 'IsDebuggerPresent' undefined; assuming extern returning int
|
|
|
|
|
Try using:
#define _WIN32_WINNT 0x0400
#include <windows.h> at the top of your program. This should include the declaration for IsDebuggerPresent() , along with the other debugger functions.
Software Zen: delete this;
|
|
|
|
|
Thank you!!!
#define _WIN32_WINNT 0x0400
before any #include is the answer.
|
|
|
|
|
Try starting here[^]. That's a list of debugging functions.
Example:
if (::IsDebuggerPresent()) {
::OutputDebugString("Execution reached debug point 1.");
} Admittedly, this is a trivial example. One nice thing about using the debugger functions is that you can use them even when you run code compiled for release under the debugger.
Software Zen: delete this;
|
|
|
|
|
does anyone here knows if windows save any logs somewhere regarding your dialup connexion. I mean how much the last connexion lasted and the date it started. Something like that. . . . .
gabby
|
|
|
|
|
|
where exactly is that log. Can you tell me the path pls ? I can't find it
gabby
|
|
|
|
|
Start->Control Panel->Administrative Tools->Event Viewer->System
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|