Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problems compiling a plug-in

Posted on 1997-03-15
3
Medium Priority
?
749 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 300 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
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.
Suggested Courses

773 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