Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Error C3507

Error Message

a ProgID can have no more than 39 characters 'id'; nor contain any punctuation apart from '.'; nor start with a digit

The progid attribute has restrictions on the values that it can take.

The following sample generates C3507:

// C3507.cpp
[module(name="x")];
[
coclass,
progid("0123456789012345678901234567890123456789"),
uuid("00000000-0000-0000-0000-000000000001") // C3507 expected
]
struct CMyStruct {
};
int main() {
}

Community Additions

ADD
Show:
© 2015 Microsoft