[vtkusers] Re: Problem: unresolved external symbol _wWinMain at 16

Ted Christiansen ted at caept.com
Fri Aug 30 16:45:57 EDT 2002


Zhaopeng,

Are you using MFC or just the API to create a window?  If you are using
the API to create a window then you will need a main function which is
the entry point for the program, see the MSDN docs:

int WINAPI WinMain(
  HINSTANCE hInstance,      // handle to current instance
  HINSTANCE hPrevInstance,  // handle to previous instance
  LPSTR lpCmdLine,          // command line
  int nCmdShow              // show state
);

If you are using MFC then you should only need to include the libraries
you have listed in your email:

opengl32.lib glaux.lib vtkjpeg.lib vtkzlib.lib
vtkParallel.lib vtkRendering.lib vtkIO.lib vtkImaging.lib vtkHybrid.lib
vtkGraphics.lib vtkFiltering.lib vtkCommon.lib vtkpng.lib

Ted




More information about the vtkusers mailing list