|
Excuse me that I post question in this forum, but I didn't find an answer for it.
Does anybody know how to connect two PCs with Window 200 via cros-over cable.
10x,
|
|
|
|
|
Hi,
I do know, you need the following:
HW
1. Eithernet card on the two PCs
2. Cross Cable ( make sure that what you have is a cross cable)
SW
1. Create a new LAN Connection on the first PC, and give it a dummy IP address, for example 10.10.0.1.
2. Create a new LAN Connection on the second PC, and give it a dummy IP address, this time you have to use the same presvious IP except the last number, for example 10.10.0.2.
3. Add the same user name and password on both PCs.
4. Share a folder on the PC that you want to access.
Note: You have to restart both PCs after you change the IP addresses, and make sure that you don't login to any domain, you just login to the Local Machine.
Enjoy ,
ShadiK.
Shadi Al-Kahwaji
|
|
|
|
|
Hi there!
I know that this could be done with the DialogBox(...) macro and the DialogBoxParam(...) function. However, does anybody know a solution to make windows created via CreateWindow[Ex](...) modal?
Thanks in advance ...
---------------------------------------------------
- Pipe -
|
|
|
|
|
I believe DoModal is a spinlock internaly, ugly though that may be.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Why do you need 'modality'? Do you want to bypass the main message loop or your goal is just to disable one window when other is active?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
the second one ...
I have an application that at a certain moment could consist of dozens of windows that allow the user to manipulate many things at once. The Dialog is to choose a folder from the local drives to extract some items to. While the user chooses I want all those other windows to be inaccesible. Since the application supports DLL's that are not neccessarily mine I'm not alwas able to say how many windows are to be disabled. Thats why I need a thread-modal Extract-To dialog ... Do you know any workarounds or good solutions to this?
many thanks for incoming advice ...
---------------------------------------------------
- Pipe -
|
|
|
|
|
You basically have two options now:
1) find out all windows (EnumThreadWindows) in the thread and disable them (EnableWindow(hwnd, FALSE)). The only non-disabled window will behave like modal dialog
2) control the thread's message queue. Monitor all input messages (WM_KEYxxx, WM_LBUTTONDOWN, etc) messages and don't dispatch them if they are addressed to window you want to disable.
Personally, I'd try version 1.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hey Pipe:
See MSDN for these two functions:
::RunModalLoop and ::EndModalLoop
MFC uses these two functions to make dialogs modal. You may want to look MFC's implementation in CDialog::DoModal() also.
\\vc98\mfc\src\dlgcore.cpp
// Fazlul
Get RadVC today! Play RAD in VC++
http://www.capitolsoft.com
|
|
|
|
|
|
Oh, I thought the windows he was playing with were derived from CWnd.
Nevertheless, he can probably copy and paste thse two functions to his project (can be found in \\mfc\src\wincore.cpp.) They are actually not that big and not that difficult to understand either. The ::RunModalLoop() implements an infinite loop that continuously checks windows message queue by calling ::PeekMessage(..). If it finds EndLoop() is called, then it breaks the loop. I believe WTL takes a similar approach to implement Windows modality too.
// Fazlul
Get RadVC today! Play RAD in VC++
http://www.capitolsoft.com
|
|
|
|
|
hi
I have 2 bitmap images, when they overlap each other the background of that image is erased.
How can i make the image still visible even if it is overlapped ?
I tried changing the mode but it does not work ?
Parag
|
|
|
|
|
The background of which image ? How are they stored ? How are they being shown ? Is it erased on screen, or in memory ? What mode are you changing ?
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I need to access oracle through my VC++ program
can I use ADO?
if I can is there is any code or tutorial to explain that
or any other ideas
Thanks
MR.Byte
|
|
|
|
|
I'm currently using ADO to access an Oracle database with VC++. Have you used ADO before? What are you trying to do? It is pretty much standard ADO stuff apart from a few gotchas with the Oracle stored procedures.
Michael
|
|
|
|
|
I read about it ,but I didn't realy need it before
thats why I ask for help
MR.Byte
|
|
|
|
|
I access my oracle database via an odbc connection using ADO. A good starting point for ADO is
http://www.codeproject.com/database/caaadoclass1.asp
This is the connection string I use for my oracle ADO connection object.
sConnect = _T(" DRIVER={Microsoft ODBC for Oracle}; SERVER=servername; UID=user; PWD=password");
One additional thing, make sure you've got the latest version of MDAC installed.
hope this helps,
Michael
|
|
|
|
|
Thanks
MR.Byte
|
|
|
|
|
i'm a beginner in visual c++,i would like to know how can i prevent my application from Exiting when Enter Key is pressed at start-up.
|
|
|
|
|
Assuming your application is a dialog-based application, then pressing the enter key has the effect of pressing the default button, whichi by default is the OK button, which will cause your button to exit.
If you don't want it to exit, either don't press enter, or change which button is the default one.
If I'm way off then let us know a bit more about the nature of your application and I'm sure we can help
Derek Lakin.
Salamander Software Ltd.
|
|
|
|
|
derek,
its a dialog-based application,i removed the OK button and placed the Exit function inside the Menu.
|
|
|
|
|
There is one another solution.
You can override OnOK function.
Simply add function:
void CYourDialog::OnOK()
{
}
And your problem disappearing...
--------------------------------------------------
Say Whatever You Know.
Helping other people is good for health.
=========
Manish
=========
---------------------------------------------------
|
|
|
|
|
Why on earth would you leave the button there if you're not going to have it do anything ? You might check in OnOK if return has been pressed, so it works only by pressing the button, but it's just as easy not to make it the default button.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I have defined a new message with "WM_USER+1".
I use "SendMessage" in View class and catch the message with its handler in Doc class. But it does not work.
But when I I use "SendMessage" in View class and catch the message with its handler in View class, it works perfectly.
How to catch the message in Doc class?
Thanks.
Maer
|
|
|
|
|
My MFC's a bit rusty, but I believe documents can only handle WM_COMMAND messages. A document isn't a window, so you can't send it arbitrary messages. A doc can handle WM_COMMAND, but only because MFC handles the message routing itself.
As an aside, you should define your own messages as WM_APP+x, not WM_USER+x, because some common controls use WM_USER. No control uses WM_APP so you are guaranteed not to run into any conflicts.
--Mike--
http://home.inreach.com/mdunn/
"Listen you footwarriors, can you hold down a bit with the firing? I've just got three impromptu weddings breaking out behind me!" -- Arthur Dent
your with and
|
|
|
|
|
Thanks.
Your suggestion is helpful.
|
|
|
|