Look:
Code Snippets
There are no crash.Code:HKEY CurrentRootKey, hWnd; //...next Snippet... // This action working properly ACTION( /* ID */ 0, /* Name */ "Set root key to HKEY_CLASSES_ROOT", /* Flags */ 0, /* Params */ (0) ) { CurrentRootKey = HKEY_CLASSES_ROOT; } //...next Snippet... // This action working properly too ACTION( /* ID */ 5, /* Name */ "Open key %0", /* Flags */ 0, /* Params */ (1,PARAM_EXPSTRING,"Open key") ) { result = RegOpenKeyEx(CurrentRootKey, (char *)Param(TYPE_STRING), 0, KEY_ALL_ACCESS, &hWnd); } //...next Snippet... // This action does not return value of CurrentRootKey EXPRESSION( /* ID */ 1, /* Name */ "RegKey$(", /* Flags */ EXPFLAG_STRING, /* Params */ (0) ) { ReturnString(CurrentRootKey); // Return null but messagebox return it correctly. }
Btw THANKS for help I am just newbie.![]()



Reply With Quote


[/size]





