|
|
#1 |
|
Junior Member
Join Date: May 2012
Posts: 3
|
NSIS Com and interfaces
Hi. I'am write a script for adding component category
code: CoCreateInstance work fine. But CatRegister->RegisterCategories always return error. Why is happen? PS: sorry for bad english |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
|
System::Call '*$CatInfo(&g16 "${CATID_OPCDAServer20}", i 1033, &w128 "${CategoryDescription}")' is probably more correct
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2012
Posts: 3
|
No its don't help
There is one piece if i write code: Message show with empty string And if i write code: Message show integer value(i think this is pointer of struct) This is normal? And how i can see interface pointer? |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,777
|
System::Call "ole32::CoCreateInstance(g '${CLSID_StdComponentCategoryMgr}', i 0, i ${CLSCTX_INPROC_SERVER}, g '${ICatRegister_ID}', *i $CatRegister)i .R0" should be System::Call "ole32::CoCreateInstance(g '${CLSID_StdComponentCategoryMgr}', i 0, i ${CLSCTX_INPROC_SERVER}, g '${ICatRegister_ID}', *i.r1)i .R0" + StrCpy $CatRegister $1
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2012
Posts: 3
|
Now it's work
Thank you very much |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|