Hi Ketil,

I told you I'd sit down someday and try it ;) Well, I just extended yours to what I wanted and here it is.

The CreateProto Project already uses the CreateProto Addin. I think it's pretty self explanatory. If you enable File Creation then it saves all protos at every build into a file (which you define) and can be included.

error A2006: undefined symbol : is a thing from the past.

/edit: removed attachment
Posted on 2005-06-06 08:03:59 by JimmyClif
Nice

I will put it on my website.

KetilO
Posted on 2005-06-06 08:51:23 by KetilO
Hi Ketil,

There's a bug.. just realized it... I was getting the amount of memory to reserve from the LstBox with an LB_GETCOUNT. but if the LstBox wasn't set on displaying the .code part, my memory allocation was wrong.. Silly.

Attached is the corrected version.

Also, my life would be perfect if I could create a similar addin piping the ID equs into a file. Not at compile time, but straight to a file if wanted to.
Attachments:
Posted on 2005-06-06 12:31:11 by JimmyClif
Hi JimmyClif

1. Renamed it to CreateProtoEx to avoid conflicts with existing language translations.
2. Added what is needed to do a language translation on the addin.

KetilO
Attachments:
Posted on 2005-06-13 04:11:11 by KetilO
Hi Ketil,

I just found a pretty nasty bug :(

error A2131: VARARG parameter requires C calling convention
error A2112: PROC and prototype calling conventions conflict

this happens when you define a procedure to be PROC C and have the CreateProto Addin handle the proto creation.

Do you know anyway around this?
Posted on 2005-09-30 11:28:38 by JimmyClif
Hi JimmyClif

There is no easy solution. You must search the file and check if the proc has the C calling convention.

KetilO
Posted on 2005-09-30 17:46:47 by KetilO