|
hey dude, lose the ermine robes and walk with the peasants.
|
|
|
|
|
I am having problem registering msvcrt.dll in a client PC. An error messages says:
--------------------------
msvcrt.dll was loaded, but the DllRegisterServer entry point was not found.
DllRegisterServer may not be exported, or a corrupted version of msvcrt.dll may be in memory. Consider using PView to delete and remove it.
--------------------------
I have the same problem when registering p2sodbc.dll for Crystal Reports.
I am not sure registering msvcrt.dll is neccessary for a Windows 95 or Windows 2000 PC. Also I don't believe the files are corrupted since I copied them right from my PC.
-Elizabeth
Eilzabeth
|
|
|
|
|
msvcrt.dll isn't a COM server. Usually, you just want drop it into the system directory.
|
|
|
|
|
Thank you. But how can I know which DLLs require registering? Can you please tell me why I was having the same problem with p2sodbc.dll?
-Elizabeth
Eilzabeth
|
|
|
|
|
Any DLL that is missing the routine in question is a DLL that need not be registered.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
I got it, p2sodbc.dll does not need to be registeed. Let me check with Crystal Reports on what folder p2sodbc.dll should be residing.
Eilzabeth
|
|
|
|
|
The user account most likely doesn't have admin rights. In order to register a DLL, you need admin rights to the system directory. If you try under an admin acct, it'll probably work, and after the admin registers the component, all users should have access. Hope that helps.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
As it has been mentioned that MSVCRT.dll is not a COM server. Therefore any attempt to register it will end up in the message that you are getting. And probably same reason for p2odbc.dll.
There is a gotcha in dropping this MSVCRT.dll into system32 folder. OS won't let you do that. This DLL is also used by OS. When system starts, it loads the copy of this DLL into the memory. And this is one of those DLLs that never get loaded again although you may have it in your application's folder.
The only trick to accomplish is by command line. Rename the existing MSVCRT.dll to a new name ane copy the new one there. But you only need to copy a newer version if your application absolutely needs to bcause reaplcing of MSVCRT.dll will require a reboot.
---
Softomatix
http://www.pardesifashions.com/Softomatix/default.aspx
|
|
|
|
|
I am looking to implement a button control that drops down a dialog box when clicked. Can anyone point me to an existing implementation of something like this?
Thanks,
Neal Stublen
http://www.awesoftware.com
|
|
|
|
|
Neal Stublen wrote:
...drops down a dialog box...
What do you mean by that?
|
|
|
|
|
There is some code around CodeProject.com that will dropdown a menu just below a button when the button is clicked (like the "Back" or "Forward" buttons on the Internet Explorer toolbar, or the "Views" button on the Windows Explorer toolbar).
Instead of dropping down a popup menu, I want to drop down a dialog box just under the button. When the user clicks outside the dialog box, it will go away.
Thanks,
Neal Stublen
http://www.awesoftware.com
|
|
|
|
|
Do not have the code with me but this is how I do it:
1) Create a normal dialog box.
2) Use a piture control to make line across the dialog box, where the fold will be.
3) Uncheck visable in the piture controls' properties, unless you want it visable when box is unfolded.
4) When dialog box is initialize get and save the size of the dialog box. Then get the rectangle for the piture control and use it to set the folded size (dlgRect.bottom = pictRect.top). (make you are using screen coordinates)
Use MoveWindow() to set new size.
5) You should have added a button, to the unfolded portion of you dialog, that is used to tell it to unfold (normaly called Advanced). Add a handler for that button so that when it is pressed you can resore the dialog to its' origanal size.
That is about all there is to it.
Trust in the code Luke. Yea right!
|
|
|
|
|
Thanks for the assistance, butI think I wasn't clear enough in my question...
There is some code around CodeProject.com that will dropdown a menu just below a button when the button is clicked (like the "Back" or "Forward" buttons on the Internet Explorer toolbar, or the "Views" button on the Windows Explorer toolbar).
Instead of dropping down a popup menu, I want to drop down a dialog box just under the button. When the user clicks outside the dialog box, it will go away.
Thanks,
Neal Stublen
http://www.awesoftware.com
|
|
|
|
|
Expect an e-mail from me later to night, if you have not received it by tomorrow then send me a reminder via e-mail(subject: drop down dialog). I have just what you are looking for at the home. It requires a CDialog derived class to catch the mouse and help position the dialog, and TrackMenue() to pop it up.
I was thinking of writing a aticale on this now I have a reason too.
Trust in the code Luke. Yea right!
|
|
|
|
|
This link may be of help:
http://www.codeproject.com/useritems/RGBA_Colour_Control.asp[^]
It drops a dialog box off of a static control, but the concept is the same.
Chris Richardson
You can stash and you can seize
In dreams begin, responsibilities U2 - Acrobat[^]
Stop being PC and accounting for everyone and his momma's timeframe. Just enjoy your - Rohit Sinha in the content-challenged thread
|
|
|
|
|
Hiya, ok I know about Threads and Processes to a point. A process is the app you run and a thread links 2 apps together. ( I think this is right!! - please feel free to correct me on this!! )
Anyway, how do I run 2 of the same apps ( on separate computers ) and if something is done on one, detect the change on the second app, and update that app to reflect that change??
Thanks,
grahamoj.
|
|
|
|
|
One solution is COM. Another solution is socket.
Kuphryn
|
|
|
|
|
grahamoj wrote:
Hiya, ok I know about Threads and Processes to a point. A process is the app you run and a thread links 2 apps together.
???????
ok i agree with what you says with the process...
but not in the matter of thread, threads are the childs of procesess..i never think it can synchronise or communicate with the independent procesess...
i think ur neeed is the simple synchronisation of two program datas/something else...u just need to perform some sockets/shared memory/pipes/mailslot for acheving that
be specific with you requirements
thanks
CodeTheDreams();
|
|
|
|
|
I have a formview based project, it washes the system, while its clearing, a progress dialog bar appears, but it goes too fast.
Is there any way to slow down the progress dialog bar?
|
|
|
|
|
Anonymous wrote:
Is there any way to slow down the progress dialog bar?
?
Slow down the progress. Add a sleep in your loop...
Just Kidding..
John
|
|
|
|
|
Actually, I'm not sure why you would want to do this. If the operation is too fast for a progress bar to display than you don't need a progress bar. Maybe just use an hour glass.
John
|
|
|
|
|
if your operayion is so fast, just avoid the use of progress bar. it usually helpful when we want to show the progress of lenghty / time consuming operations infront of the crazy users..hihih (pardon me ..)
Just Use the controls in appropriate situations...
thanks
CodeTheDreams();
|
|
|
|
|
I write a program,which I can choose a program(exe file) that and I can run it as a SERVICE.I do it like this:
SC_HANDLE schSCManager = OpenSCManager( NULL, NULL, SC_MANAGER_CREATE_SERVICE);
if (schSCManager==0)
{
Errorrrrrrr
}
else
{
SC_HANDLE schService = CreateService
(
schSCManager,
servicename,
"My Service",
SERVICE_ALL_ACCESS,
SERVICE_WIN32_OWN_PROCESS|SERVICE_INTERACTIVE_PROCESS ,
SERVICE_AUTO_START,
SERVICE_ERROR_NORMAL,
pPath,
NULL,
NULL,
NULL,
NULL,
NULL
);
if (schService==0)
{
AfxMessageBox("Fail to create");
}
else
{
AfxMessageBox("Service Created");
CloseServiceHandle(schService);
}
CloseServiceHandle(schSCManager);
Now the problem is I choosed one windows application,then whenever it start as service,it stay at STARTING mode,never
go to STARTED mode.Any idea about it?
Thanks.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Once the service object has been added to the SCM database, don't you need a subsequent call to StartService()?
|
|
|
|
|
No,thats not the point.By default it does not start and I have to call StartService(),my problem happendafter calling this function and always stay at STARTING node after calling this function.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|