Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error compiling COM exe - REPOST
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00788183
Message ID:
00788190
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
I did see this error before, i had a program class set to OLEPUBLIC with the same name as a constant if i remember well.

In the Prg:
Define Class MyClass As Session OlePublic
And somewhere else in a .h file
#DEFINE MyClass 1
>Hey all,
>
>(I thought I would repost this in case it just got missed in the COM category...plus, I am still dead in the water here and could use any ideas or help I can get...)
>
>This is all in VFP 7.0 running on Windows XP.
>
>I saw a thread back in October 2002 called "Problem Compiling an EXE" (sorry, I forgot the number, and it took me an hour to find it (no Premier Membership through company yet)), and it is my problem _exactly_. Problem is, no resolution was reached on that thread.
>
>The issue is this:
>
>- I try building an EXE with RECOMPILE turned on.
>- All files compile fine, error file is empty, and status bar indicates "Build Application Complete".
>- Right after that I get an error popup saying "Function argument value, type, or count is invalid." (That's error 11).
>- EXE has been created, but it is only a fraction of the size it should be (it is 8K when it should be something like 340K).
>
>That other thread spent most messages talking about compile errors and such. In this case, there are no compiler errors and I can BUILD APP and have it build an APP. But if I try to build EXE or either type of DLL I get the error 11 that I mention above.
>
>This executable is a COM executable that utilizes a lot of other objects (ADO, Pegasus imaging controls, etc.) Would not having a certain COM object registered on my system cause this type of error? I have no way of knowing what components are built into the executable (I need something like VB's component viewer for the project). How can I tell what I am missing or what is causing the error? Surely, even if I am missing something I shouldn't get a flat-out run-time error while compiling? Is this a bug? Again, this is VFP 7.0 SP1 (Build 9465) running on Windows XP.
>
>Our current COM executable is working, but if I ever need to do a recompile or make changes I am screwed (I just started here and inherited this project). Can anyone help out? Reply here or e-mail me at joek@lawusa.com and I will be eternally grateful...
>
>[Addendum: I tried the compile in VFP 8 and get the same error at the same point in the build process...]
>
>Thanks,
>JoeK
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform