C-DLL-VBA connections strings

J

jacob navia

Keith said:
Keith Thompson said:
jacob navia said:
When my compiler doesn't emit an error when it sees // comments
using the undocumented ansic89 flag a posting will be done
by the regs indicating a "serious bug".
[...]

jacob, do you actually *read* this newsgroup?

A single troll calling himself "Tea Pot" has repeatedly complained
about this. The "regs" consistently reply that, since the ansic89
flag is not documented, and since there's no claim that lcc-win
supports C89/C90, it's not a bug, and that even if it were this is
not the place to complain about it.

On this particular point, we have consistently defended you. I,
for one, would appreciate it if you'd pay a bit more attention
and refrain from making unfounded accusations.

jacob, somehow I'm not surprised that you chose to ignore this.
Disappointed, but not surprised.

I did not want to write this since I do not want to start
denigrating gcc. But you ASKED FOR IT

Sample code:
-------------------------------------------------------
#ifndef __CREATETYPELIB_H_
#define __CREATETYPELIB_H_

#include <oaidl.h>

#define MAX_IDENTIFIERNAME 128
#define MAX_PARAMS 32

typedef int TypeInfoID;

typedef struct CreateTypeInfo
{
ICreateTypeInfo *c;
int nfuncs;
GUID guid;
TYPEKIND kind;
} CreateTypeInfo;


#endif
----------------------------------------------------------
When compiling with -c neither MSVC nor lcc give any output
Output of mingw: (message continues afterwards)

In file included from
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ole2.h:11,
from
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:114,
from
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oaidl.h:8,
from vv.c:4:
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:172:
error: syntax error before "DISPID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:174:
error: syntax error before "cc"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:178:
error: syntax error before '}' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:180:
error: syntax error before "METHODDATA"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:182:
error: syntax error before '}' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:213:
error: syntax error before "SAFEARRAY"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:214:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:215:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:215:
error: syntax error before "SAFEARRAYBOUND"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:216:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:217:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:218:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:219:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:220:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:221:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:222:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:223:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:224:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:225:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:226:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:227:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:228:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:229:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:230:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:231:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:232:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:233:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:234:
error: syntax error before "SAFEARRAY"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:235:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:236:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:237:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:238:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:239:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:240:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:241:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:242:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:243:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:244:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:245:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:253:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:262:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:271:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:280:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:289:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:299:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:308:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:317:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:327:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:329:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:330:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:331:
error: syntax error before "LPTYPELIB"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:332:
error: syntax error before "LPTYPELIB"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:333:
error: syntax error before "LPTYPELIB"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:335:
error: syntax error before "OLECHAR"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:336:
error: syntax error before "SYSKIND"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:337:
error: syntax error before "const"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:338:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:339:
error: syntax error before "OLECHAR"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:340:
error: syntax error before "LPTYPEINFO"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:341:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:342:
error: syntax error before "LPTYPEINFO"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:346:
error: syntax error before "LPERRORINFO"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:347:
error: syntax error before "LPERRORINFO"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:348:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:350:
error: syntax error before "SAFEARRAY"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:351:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:353:
error: syntax error before "VARIANT"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:354:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:355:
error: syntax error before "IRecordInfo"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:376:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:392:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:408:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:425:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:441:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:457:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:473:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:490:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:506:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:522:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:538:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:554:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:570:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:587:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:603:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:649:
error: syntax error before "int"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:650:
error: syntax error before "LCID"
vv.c:13: error: syntax error before "ICreateTypeInfo"
vv.c:13: warning: no semicolon at end of struct or union
vv.c:17: error: syntax error before '}' token
vv.c:17: warning: data definition has no type or storage class

Satisfied?
It chockes at its own includes!

Most examples in MSDN will not compile
Satisfied now?
 
J

jacob navia

jacob said:
Keith said:
Keith Thompson said:
[...]
When my compiler doesn't emit an error when it sees // comments
using the undocumented ansic89 flag a posting will be done
by the regs indicating a "serious bug".
[...]

jacob, do you actually *read* this newsgroup?

A single troll calling himself "Tea Pot" has repeatedly complained
about this. The "regs" consistently reply that, since the ansic89
flag is not documented, and since there's no claim that lcc-win
supports C89/C90, it's not a bug, and that even if it were this is
not the place to complain about it.

On this particular point, we have consistently defended you. I,
for one, would appreciate it if you'd pay a bit more attention
and refrain from making unfounded accusations.

jacob, somehow I'm not surprised that you chose to ignore this.
Disappointed, but not surprised.

I did not want to write this since I do not want to start
denigrating gcc. But you ASKED FOR IT

Sample code:
-------------------------------------------------------
#ifndef __CREATETYPELIB_H_
#define __CREATETYPELIB_H_

#include <oaidl.h>

#define MAX_IDENTIFIERNAME 128
#define MAX_PARAMS 32

typedef int TypeInfoID;

typedef struct CreateTypeInfo
{
ICreateTypeInfo *c;
int nfuncs;
GUID guid;
TYPEKIND kind;
} CreateTypeInfo;


#endif

P.S. if you insert the line at the top
#include <windows.h>

the output from mingw reduces to:

vv.c:13: error: syntax error before "ICreateTypeInfo"
vv.c:13: warning: no semicolon at end of struct or union
vv.c:17: error: syntax error before '}' token
vv.c:17: warning: data definition has no type or storage class

ICreateTypeInfo is defined in oaidl.h
After 15 minutes I could not find what is wrong
 
J

jacob navia

Nick said:
I'm sorry, the context was that you claimed it was difficult to write
windows application with MingW. At least two people have said it isn't
as they've done it (including me). What the <expletive> does this have
to do with how long doubles are handled? I don't think I have *ever*
used long doubles they are not essential to windows programming.

You also claimed "The fact that most windows headers are missing is OK
with you too. ". I asked you which ones and you failed to respond. So
which headers are missing?

And I have yet to have it explained to me what "unix compiler is".
If it runs under windows and generates windows binaries and provides
acces to the most common windows libraries then it's a windows'
compiler.

good grief.


Yes, good grief

Try to compile this then (and this is just one example from thousands)
#ifndef __CREATETYPELIB_H_
#define __CREATETYPELIB_H_

#include <oaidl.h>

#define MAX_IDENTIFIERNAME 128
#define MAX_PARAMS 32

typedef int TypeInfoID;

typedef struct CreateTypeInfo
{
ICreateTypeInfo *c;
int nfuncs;
GUID guid;
TYPEKIND kind;
} CreateTypeInfo;


#endif

This compiles cleanly under lcc and MSVC
 
K

Keith Thompson

jacob navia said:
Keith said:
Keith Thompson said:
[...]
When my compiler doesn't emit an error when it sees // comments
using the undocumented ansic89 flag a posting will be done
by the regs indicating a "serious bug".
[...]

jacob, do you actually *read* this newsgroup?

A single troll calling himself "Tea Pot" has repeatedly complained
about this. The "regs" consistently reply that, since the ansic89
flag is not documented, and since there's no claim that lcc-win
supports C89/C90, it's not a bug, and that even if it were this is
not the place to complain about it.

On this particular point, we have consistently defended you. I,
for one, would appreciate it if you'd pay a bit more attention
and refrain from making unfounded accusations.

jacob, somehow I'm not surprised that you chose to ignore this.
Disappointed, but not surprised.

I did not want to write this since I do not want to start
denigrating gcc. But you ASKED FOR IT

I most certainly did not. Please try to pay attention.
Sample code:
------------------------------------------------------- [snip]
[snip 183 lines of error messages]
Satisfied?
It chockes at its own includes!

Most examples in MSDN will not compile
Satisfied now?

No.

Please re-read this thread. There's enough context quoted in
this article for you understand what I'm actually talking about,
but feel free to revisit the previous articles.

You claimed (among other things) that the "regs" have complained
about a mythical "serious bug" in lcc-win's behavior with the
ansic89 flag. In fact, the "regs" have done no such thing; instead,
we have consistently defended you on this point. The only claim
that this is a "serious bug" have come from a single troll who has
been universally flamed or ignored by everyone else here.

That is the only point I was trying to address. I was not talking
about mingw. (I may have discussed mingw in other contexts, but
not in this one.)

I did not respond to any other points you may have raised in
the same article simply because I had nothing to say about them.
This does not imply either agreement or disagreement with anything
else you might have said, nor does it imply that your other points
were unimportant. I simply did not comment on them.

This is not about a comparison between lcc-win and mingw or any
other compilers.

One more time: lcc-win's behavior of accepting "//" comments with
the ansic89 option is not a bug. A compiler whose documentation
does not claim support for C89/C90 needn't diagnose "//" comments as
a syntax error, and you are under no obligation to support C89/C90
unless you choose to do so. You are defending yourself against an
attack that never occurred, and accusing me and others of something
we did not do.

One more time: your statement, quoted above, that:

is untrue. That's all I was saying.

Please pay attention.
 
R

Richard Bos

jacob navia said:
The fact that
printf("%Lg\n",(long double)a);

doesn't work is OK with you of course.

Since we were talking specifically about _Windows_ programming, not
about simple console output, yes, that is perfectly fine with me _for
Windows programming_. It would be undesirable for console programming,
which _you_, not I, claimed is the only thing Mingw is good for. Aren't
you contradicting yourself?
The fact that most windows headers are missing is OK with you too.

I have yet to find one missing that I needed, so I think your contention
that "most" Windows headers are missing is misleading at the very least.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top