-
September 23rd, 2005, 11:16 PM
#1
console and dlls
Hi agane.
I traid to use
regsvr32
with /S key
for registrering of dlls and ocx
and get return code efter execution but that not worling in console with %ERRORLEVEL%
but when I running it throug C++ , then I can get some error code.
All errors that I got was
0
3
4
and I want to know if someone of you know what them mean and where I can get more description about "return code on exit" for regsvr32
//damn, i become be noobdevelop, ahhh, help me
// too far away outside of limit
-
September 23rd, 2005, 11:37 PM
#2
I realise that English is not your native language. My answer is: duh?
Are you referring to a prior post of yours and if so, which one?
Okay, am guessing, just to try and give some support here. I think you've created an ActiveX control or a COM/DCOM component. You are using regsvr32 to register this component and you're doing this from a batch file.
I guess you're using something like 'if %errorlevel% 1' but in batchfiles, you should not use the % signs around it. Just use 'if errorlevel 1 goto whatever'.
If you get errorcodes then it means something in your code went wrong and whatever errorcode is generated is actually created by your application. And often they are errorcodes from the Windows API. Thus:
0 = success
3 = path not found
4 = failed to open file
But again, regsvr32 might use these codes for different kinds of errors, although 0 in general means success.
Some info is found at http://support.microsoft.com/kb/q249873/
-
September 24th, 2005, 12:14 AM
#3
Thank you.
I asked becouse I want to use C++ and regsvr32 to register all "default" dlls that I have in my system32 folder.
I think that this can be good idea (to reg/rereg 1118 dlls and ocx in one click).
page where I puting my apps is mrbabis.narod.ru
// too far away outside of limit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|