Solved

Problems compiling a plug-in

Posted on 1997-03-15
3
746 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.

627 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