Solved

Problems compiling a plug-in

Posted on 1997-03-15
3
724 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 106
Replacement selected text 2 47
method notes when mouse over in eclipse 5 68
Path of Workbook 3 45
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now