|
Ray Cassick wrote: have a mother board (I decent one from Asus) that has an on board Marvell Yukon GigE network card.
Since I have had it, at random times (not really so random though) it seems to just go nuts and completely loose its configuration.
I have the card set for 100Mb full duplex and it is assigned for a static internal address. From time to time the card seems to just revert back to an autoconfig address and from that point on obviously I have no network access. All I need to do to fix it is disable it then re enable it.
Has anyone seen this before?
It passes all loop back tests and just on the safe side I have changed cables and updated drivers. No luck.
In my opinion, your best solution is reading the manual documentation which ship with this morther. Try to read the section of driver installation and check whether there is an instruction to install a network card driver. On the other hand, try to check whether your operating system is support with your network card a motherboard.
|
|
|
|
|
Hi,
I'm learning how to insert a button into another application's window using c programming. In short, I wrote an EXE file which modified a particular Window of another EXE file to insert a button in that window. Need some advice:
a. I was able to get to the other application's window by first hooking onto the other application's window handle. But the strange thing is that my callback function for WM_LBUTTONDOWN of my introduced button was not called when I click on the inserted button. Instead, I had to do a GetMessage in my main program to get the message for the button and check the message member in there. With this, I was able to insert an extra button into a messagebox in another EXE file while it's running.
b. What I don't quite understand is that when I try to use the same technique on different windows, I get different errors. For instance, if I were to insert a button this way into a .NET window, the button shows up as a white patch. It responds to the click though. For some other programs, my button crashed without inserting itself. Puzzled by the different behaviour. Is it due to the windows message queue and the different nature of windows that I'm getting this?
c. Strangely, although my callback WinProc function is not called when I click on the button, not defining the WinProc actually causes my program to die when attaching itself to any window that's not a messagebox. Not quite sure why.
If someone can guide me to any article on how to insert controls into another app's windows or to understand the windows message loop more, I would be grateful. I'm trying to do a little enhancement to a program whose source code is lost (ie, I only have the binary).
My code looks like this:
#include <windows.h>
#include <stdio.h>
LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
int WinMain(HINSTANCE hInst,HINSTANCE,LPSTR,int)
{
HWND hWnd, hwndButton;
WNDCLASS wc;
MSG msg;
// Trace Windows Handle based on Name
hWnd = (HWND) 0x1D0458;
printf("Begin Program\n");
wc.style=CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc=WindowProc;
wc.cbClsExtra=0;
wc.cbWndExtra=0;
wc.hInstance=hInst;
wc.hIcon=NULL;
wc.hCursor=NULL;
wc.hbrBackground=(HBRUSH)COLOR_WINDOWFRAME;
wc.lpszMenuName=NULL;
wc.lpszClassName="BUTTON";
if (!RegisterClass(&wc)) return 0;
printf("Finished Creating Button");
hwndButton = CreateWindow(
"BUTTON", // predefined class
"H", // button text
WS_VISIBLE | WS_CHILD , // styles
// Size and position values are given explicitly, because
// the CW_USEDEFAULT constant gives zero values for buttons.
950, // starting x position
0, // starting y position
20, // button width
20, // button height
hWnd, // parent window
NULL, // No menu
(HINSTANCE) GetWindowLongPtr(hWnd, GWLP_HINSTANCE),
NULL); // pointer not needed
if (!hwndButton) return 0;
ShowWindow(hwndButton,SW_SHOW);
UpdateWindow(hwndButton);
while (GetMessage(&msg,NULL,0,0) > 0)
{
TranslateMessage(&msg);
DispatchMessage(&msg);
printf("In Message Loop");
if (msg.message == WM_LBUTTONDOWN) {
MessageBox(0,"Button Worked in main loop","Button Worked",MB_OK);
printf("Works!");
ShowWindow(hwndButton,SW_SHOW);
} // end if
if (msg.message == WM_DESTROY) {
printf("Quitting\n");
// exit(0);
} // end if
} // end while
}// end all
LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
return DefWindowProc(hwnd, msg, wparam, lparam);
}
|
|
|
|
|
|
Hi Friends,
I have created an EXE File in VC++.The Exe Works fine in my machine since i have VC++ installed in my machine.But i copied the Exe File to another machine where VC++ is not installed,there EXE file didnt work.
What is the reason for that,is there any possibility for it work or any DLL Files missing.
Please Forward your solutions
Regards,
Ruban.
|
|
|
|
|
k.n.ruban wrote: I have created an EXE File in VC++.The Exe Works fine in my machine since i have VC++ installed in my machine.But i copied the Exe File to another machine where VC++ is not installed,there EXE file didnt work.
What is the reason for that,is there any possibility for it work or any DLL Files missing.
Please Forward your solutions
I never programming an application in VC++ but I used to work with VB application. The reason that your application on your computer because your computer have a VC++ run time file install. This run time is install when you install VC++ on your computer. If you want to run your application on another computer you have to copy those run time file to the other computer (and might also require to register too). But this is not a good solution. The good solution is building a setup file from your VC++ project.
|
|
|
|
|
Hi,
You have to copy atleast these 3 dlls in the windows system directory, you can find your VC++ program working.
1) MFC4d.dll
2)MSCIRTD.dll
3)MFC42d.dll
Try
Regards,
arun
|
|
|
|
|
Hi Friend,
Can you tell me the site wher i can find all the Dll's.
Can u help me friend regarding this.
Regards,
Ruban
|
|
|
|
|
You can use Search For File and Folder... which is locate in this start menu. But remember before search for the file, please enable the show hidden file and do not hide protect operating system file which is locate in Folder option in View tab. Good luck
|
|
|
|
|
I need to be able to backup from a network share. Unfortunately my backup software is fixed to backup and restore to local devices only. There is another piece of software that can be purchased but it is unbelievably expensive!! If I have an N: drive can I fool WinXP into believing it is a locally attached device? Is there an emulation software that can do this? Is there a registry frig that will do the same?? Anyone else come across this before???? or should I just stump up the cash for the "ahem - agent". Cheers, Glen.
|
|
|
|
|
GlenJDiamond wrote: I need to be able to backup from a network share. Unfortunately my backup software is fixed to backup and restore to local devices only
Do you build your own backup software? Windows already ship backup application which allow you to backup your file on your computer and also on a mapped network drive too.
|
|
|
|
|
I have been working on Windows Active Directory and have receieved the error "LDAP_SIZELIMIT_EXCEEDED". I looked this error up and saw that it is related to the "sizelimit" directive in the server's "slapd.conf" file. However, this only explains the issue when using LDAP and not active directory.
Does anyone know what the Active Directory equivelent to the "slapd.conf" file for LDAP is?
|
|
|
|
|
Hi, can any one help me based on the below information:
1. I have extract the setup manager from deploy.cab file on the CDROM to c:\deploy location.
2. I run the setup manager and create an answer file based on an information that I configure and save this answer file to c:\deploy\answer\xpunattend.txt
3. There is no UDF file because i just create for test for one computer only.
4. When i read the document, it said that: to use unattend installation, you have to type the following command at the command prompt: winnt32 [/unattend:[num]:[answer_file][/udf:ID[,UDB_file]]
Based on the above information, i type the following command:
winnt32 /unattend: "c:\deploy\answer\xpunattend.txt" but there was an error ocure. Could anyone correct me based on the above example?
|
|
|
|
|
|
An error that I get is the winnt32 could not find the file "c:\deploy\answer\xpunattend.txt". But now I could solve the problem. I read from this book[^] and it has an example. If i store my answer file on a floopy disk. They the syntax is winnt32 /unattend:a:\unattend.txt . So relate to my information, i have to type winnt32 /unattend:c:\deploy\answer\xpunattend.txt . Bingo, now i got the answer. I will try test it later. Thank you for your respond
|
|
|
|
|
Dear All,
I have a DVD Multi Recorder connected to my system running Windows XP SP 2
The problems occurs when the following scenario executes.
1. Put a DVD Ram in the recorder. it will Show different options from Windows XP. i.e "Open Folder, Play with Media Player etc"
2. when Opening the folder it shows the files in the Disk
3. Eject the DVD Ram.
4. Insert another DVD Ram
5. as usual the windows dialog appears and if we open the folder, the files listed are not from the new DVD. it is not refreshing. it is showing the pravious files. however I can't do anything (copy paste etc) with the listed files.
6. the above scenario not occuring if I put different a normal cd in the drive on second time.
any solution for this?
SaRath
|
|
|
|
|
SaRath C wrote: 5. as usual the windows dialog appears and if we open the folder, the files listed are not from the new DVD. it is not refreshing. it is showing the pravious files. however I can't do anything (copy paste etc) with the listed files.
When you insert the new DVD, try to close windows explorer and open its again. Is it change the content of the file on the DVD or not. On the other hand, try to access to command prompt to use the command DIR to list all the file on your DVD and check the result whether it change the file name or not.
|
|
|
|
|
Hi Friends,
I have made an Exe File to start when the system starts.Now iam trying to stop the EXE File by Executing a Batch file in command Prompt.
How to do it.Can you friends provide me the solution.
Regards,
Ruban
|
|
|
|
|
k.n.ruban wrote: I have made an Exe File to start when the system starts
Please tell me the method that you use to start your program automatically when windows start? This might give me some idea to help you solve the problem.
|
|
|
|
|
hi friend,
Actually i have created a EXE File and i want to make it get runned when i start the system.so that the Exe file will be running till i shutdown the machine.Is there any way for this.
Regards,
Ruban
|
|
|
|
|
k.n.ruban wrote: Actually i have created a EXE File and i want to make it get runned when i start the system
Did you already configure your .exe file to run automatically when windows start or not? In this post, i found that you didn't configure your exe file to run automatically yet. But in your previous post[^], you told me that you already set it run automatically and you want to stop it.
If you want to set your exe file to run automatically when windows start, you can view my previous post[^] with other people. Please verify your question again, I always stay here to help you.
-- modified at 6:38 Wednesday 24th May, 2006
|
|
|
|
|
Hi Friend,
I tried your method by putting the exe file in the startup folder.
And the Exe file got started when i started the system.
Thanks a lot for your help my friend.
And i have created a batch file that contains command to kill the EXE file and it works fine now
Thanks for ur reply.
Regards,
Ruban
-- modified at 5:00 Thursday 25th May, 2006
|
|
|
|
|
You could try http://www.sysinternals.com/Utilities/PsKill.html[^]
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
|
|
|
|
|
How can i run the exe file every time while the system is started.
|
|
|
|
|
When the system is started: Look into Windows Services. (These can run when noone is logged on).
When a user logs on: "Run" and "RunOnce"-Entries in the registry.
Just google for "Registry" and "Autostart".
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
There are many way that you could configure your exe file to run everytime that windows start.
1. Copy and paste the shortcut of your .exe file in a Start up folder of the Program start up menu.
2. Using the task schedule to point to your .exe file and configure it to run everytime that you logon to your machine.
3. Add an entry into the registry as another post comment to you.
|
|
|
|