Solved

Problems compiling a plug-in

Posted on 1997-03-15
3
741 Views
Last Modified: 2013-11-20
Hello.  I just want to make a plug-in that will have a dialog
box appear (not embedded in a page).

I am having incredible trouble just doing this.
If
A) Someone could give me some source code which would do what I said above and which  will
actually compile.

or

B) If someone could tell me how to fix this (which I believe will actually make a plug-in that I have been working on for a long time not crash when its called upon.

--------------------Configuration: np_print - Win32 DLL--------------------
Linking...
   Creating library np_print.lib and object np_print.exp
np_print.dll : warning LNK4086: entrypoint "_WinMainCRTStartup" is not __stdcall with 12 bytes of arguments; image may not run
np_print.dll - 0 error(s), 1 warning(s)


BTW I got the book NetScape Plug-Ins Developer's Kit by Mike Morgan.  Would probably be a good book if the freakin example actually worked...(he doens't even give all the project files on his cd so you can easily compile his programs.

Thanks in advance....
----Dave
0
Comment
Question by:nemesis011397
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
mikeblas earned 100 total points
ID: 1300234
The error means what it says: the entry point you told the linker to use doesn't fit the calling convention that the operating system will use when calling the function.

Did you define _WinMainCRTStartup yourself?  If so, you've used the wrong parameters, parameter types, return types, or calling method in your declaration.

If you've not declared _WinMainCRTStartup yourself and are getting it from the C runtime libraries, something else is goofed up and we'll need to see your project options before we can figure out what's wrong.

By the way, I'm sure the author and the publisher would love to hear constructively-worded feedback about your problems directly so they can address their causes.  Complaining here really doesn't do anyone any good.

.B ekiM

0
 

Author Comment

by:nemesis011397
ID: 1300235
I did not define _WinMainCRTStartup myself....I couldn't find this anywhere in fact.  Would it be possible to zip up the project file and send it to you?

BTW I did email the author...and have got no response back.
Also his website doesn't mention his book at all.

0
 
LVL 11

Expert Comment

by:mikeblas
ID: 1300236
Uh, wait.  I just noticed you're building a DLL.  Is that true?  Are you giving the linker the /DLL flag on the command line?  What entry point are you specifying to the linker with the /ENTRY option?

.B ekiM
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 42
Excel Use VBA to get user's Mac Address for their computer 5 253
while loop over for loop 7 115
has77  challenge 9 92
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question