|
d00_ape wrote:
if( SUCCEEDED( hres = m_IPtr.CreateInstance("MyDll.Stuff") ) )// Create intstance to component
Does "MyDll.Stuff" exist under the HKEY_CLASSES_ROOT registry key?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Are you saying this is a release only problem? Or that it only happens on a non-development machine?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? - David Williams (Little Britain)
|
|
|
|
|
I've had the problem on my developing cpu but suddenly after a: regsvr32 MyDll.dll
it worked.
It might be a
Antony M Kancidrowski wrote:
release only problem
...and justice for all
APe
|
|
|
|
|
Um, If you use Depends.exe it will list the libraries that MyDLL.dll uses. Are they the same on both systems?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? - David Williams (Little Britain)
|
|
|
|
|
New day with "dll-hell"...
Yeah, and I actualy tried it on about 5 other cpus and the same problem...
...and justice for all
APe
|
|
|
|
|
I think that your registry is corrupted. Try to use any tool to verify. You can find over internet these tools.
But, you can do it manulay.
- Verify if the class Id are the same.
- Backup your registry (Its corrupted, but just save)
- If are, look in registry for the all class Id and Interface Id for the Dll (Realy realy hard work), and delete All.
- Delete all temporary files (sometimes its works)
- Shutdown your system
- Try to install new DLL
- Registry new dll, recompile your program (Rebuild All)
- If not works, you have serious problem, may be, you should format your PC
Rodrigo Pinho Pereira de Souza
|
|
|
|
|
How do I get the class Id?
I've used Dependecy Walker and there all seems Ok.
...and justice for all
APe
|
|
|
|
|
- Registry your dll
- Look in registry for your DLL Name (MyDll.Dll)
- Try to search any entry like this {5EFCDACB-46BD-4904-B8AF-4DD75D5C0144}
- This is an example of GUIID
Its hard work .....
If you do it very well with attention, probably, you will get a success.
Rodrigo Pinho Pereira de Souza
|
|
|
|
|
Does the registration work? i.e. are there any errors reported back from regsvr32?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? - David Williams (Little Britain)
|
|
|
|
|
Yeah, both the unregistration of the old one and then registration of the new one, works according to the success message...
...and justice for all
APe
|
|
|
|
|
We have a task creating a Scheduled Task in a Remote Machine. For this we are using the ITaskScheduler interface. Using this we are creating a Scheduled task which is working fine in the local machine. But when getting connected to the remote machine using the ITaskScheduler::SetTargetComputer() it is failing returning the error AccessDenied...
Please help if any possible solutions let us know...
If any clarifications feel free to ask..
Thanks
Ramakrishna.J
Softpro Systems ltd.
|
|
|
|
|
i think u must have certain privilages to create the scheduler on another machine.
please try with WMI. thats simple
mind is everything.
|
|
|
|
|
dear renjith_sree thanks for the reply
we are doing thsi one with WMI and VC++ and we have administrative previleges and providing user credentials while connecting to the Remote machine.thing is that we are able to view the list applications installed on remote machin ebut we are not able to create a scheduled task on remote machine.
Thanks
Ramakrishna.J
Softpro Systemsltd.
|
|
|
|
|
Per MSDN:
The current user on the remote computer must have administrative access to use this method. For more information on remote installation requirements, refer to Mstask.hlp.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
dear DavidCrow thanks for the reply
Yes the current user has administrative previleges.
Thanks
Ramakrishna.J
Softpro systemsltd.
|
|
|
|
|
Hi, I'm using Visual c++ and I've done a program where I've defined my own file format. I would like to be able to create file associations with my program with these type of files...lets say *.qif .
Anyone has any ideas how I could do this, so that when I click on a *.qif file, my program would load and on startup would load the specific *.qif file?
I'm not using a SDI or MDI. The program is dialog based, and the file format was generated from an edit box.
Thanks for any suggestions..
|
|
|
|
|
You can do the same thing that an SDI or MDI application does, call RegisterShellFileTypes() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
You need to write appropriate registry entries into the registry.
In the HKEY_CLASSES_ROOT, add the appropriate data excluding quotes
1) Add a key called ".qif"
2) Under .qif set the (Default) string value to "QifFile"
3) Add a key called "QifFile"
4) Under QifFile add a key called "shell"
5) Under shell add a key called "open"
6) Under open add a key called "command"
7) Under command set the (Default) string value to the commandline parameters of your application.
And basically thats that.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? - David Williams (Little Britain)
|
|
|
|
|
Thanks Ant and others for all of the help!
Got it working
|
|
|
|
|
any body pls help i have two problem
problem #1 :To write In HKEY_CURRENT_USER using window service, i can successfully write it into HKEY_LOCAL_MACHINE,but unable to write in Heky_CURRENT USER
problem #2:I want to trigger keyboard event from the service,i am using KeyBD_Event but it not working from service,but it working fine when use in any simple application
pls help. i need it urgently
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
For #1 - Its very strange, verify if the user that you are using to start the windows service have the privilegies. Show your code.
#2 - Try to use Hook Mechanism. The KeyBD_Event does not work with Windows Service, because The windows Service does not get messages from KeyBoard. You should use Hook ... Look for Hook in Code Project, that you will find your information.
Rodrigo Pinho Pereira de Souza
|
|
|
|
|
I have mailed you inthis regrad pls relpy me
Alok Gupta
visit me at http://alok.stormpages.com
|
|
|
|
|
What user account is the service running under? It seems that you either need to alter the account that the service is running under or you need to alter the account privileges.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? - David Williams (Little Britain)
|
|
|
|
|
Thanks Sir for your reply but ,
i am running service from the admin account,i am able to wirte the value in hkey_curent user
i am using this simple code which can write in hkey local machine but not working for hkey current user
CRegKey ky;
if(ky.Open(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer")==ERROR_SUCCESS)
{
this->AddToFile("KeyOpening Success");
}else
{
this->AddToFile("KeyOpening UnSuccess");
}
if(ky.SetValue("Alok","rakesh")==ERROR_SUCCESS)
{
this->AddToFile("Key Written");
}else
{
this->AddToFile("Key Not written");
}
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
i want a flag window equivalent to visual foxpro for one of my SDI apps. that must popup on the top right corner of my framewindow, that must grow/shrink according to the content, and that must be vanish when one of the keystrokes occures.any code for that???
i wanto to invoke that like
object.FlagMessage("Hello Chris");
help me.!!!
i've no time to write one from scratch . so pls help me...
[to all lnstant article GURUS..!!.this is your turn to help me out of this..]
mind is everything.
|
|
|
|