One step a time

Recently I am stuggling wrap up unmanged code into managed code so that can be used by c# users.
when I am done with the coding and begin to compile, there was tons of compiling errors. even I got unmanged code compiled into dll, the header file gave me a lot of compiling errors when I included it in the managed code and compiled the managed code. It just freaked me out.
I consultant with a senior dev in my team. He suggested me to do the basic step by step. First make sure my c# code works without reference anything from the managed code. then add the managed code and make it work, last step, add the unmanaged code.
For the last step, I should try the basic thing, like call an API and tried it, make sure it works with managed code and c#, before I added the complex stuff.
That’s a very good suggestion, not to how to coding. I think it just applys to anything. in Chinese, there is an olding saying “you can not be a fat person with only one bite.” To reach your goal, you have to take step by step.