Click here to Skip to main content
15,914,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I download program from code project Import/Export registry sections as XML[^]
But when debug the project i have cast error

In convert Intptr to Int32
return ((IntPtr)fieldInfo.GetValue(registryKey)).ToInt32();
Invalid CastExeption was Unhandled
Specified cast is not valid.
Posted

1 solution

You didn't read the article 'Comments and Discussions' section, did you?
There is your problem[^] and (hopefully) the solution[^].
 
Share this answer
 
Comments
mohammed besher 7-Dec-12 1:58am    
thanks (CPallini ) this help me too much
CPallini 7-Dec-12 3:33am    
You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900