RE: VSE10 and GTKmm 2.22



Hi,

 

Basically, itâs that ! But in the Gnome tutorial (UsingMSVC), they forgot to specify how to redirect Gtk UI to WinAPI properly and they didn't append imm32.lib and msvcrt.lib static libraries.

 

Your main.c/cpp should be like that :

 

#include "stdafx.h"  //this should be first line of the program!

#include <regex>

#include <windows.h>

 

using namespace std;

int main( int argc, char **argv );

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,

LPSTR lpCmdLine,int nCmdShow){

return main (__argc, __argv);

}

 

int main (int argc, char *argv[]) {

Gtk::Main app(argc, argv);

       Gtk::Window * aWindow;

       Gtk::Main::run( *aWindow );

std::cout<<"bye"<<std::endl;

return 0;

}

 

Regards

 

Marco Dos Santos Oliveira

EBU/European Broadcasting Union

Technology and Innovation Department

 

From: Doesnt Stop [mailto:DoesntStop mail com]
Sent: mercredi 13 fÃvrier 2013 11:15
To: Dos Santos, Oliveira; Gavin Lambert
Cc: Gtkmm List
Subject: RE: VSE10 and GTKmm 2.22

 

I see, it is not as easy as the tutorial explains (https://live.gnome.org/gtkmm/MSWindows/UsingMSVC)

Is there any other tutorial that you are aware of, I would like to knwo in more detail how to make gtkmm work with VSE10. Better yet if you can provide me with a little bit of data that would show me how it is done, that would be very nice.

 

Thanks

 

----- Original Message -----

From: Dos Santos, Oliveira

Sent: 02/13/13 04:09 AM

To: 'Doesnt Stop', Gavin Lambert

Subject: RE: VSE10 and GTKmm 2.22

 

Hi,

Iâm not sure if itâs the case in your application, but to build successfully a Gtk or Gtkmm application under MSVC and then run it perfectly, you need to bypass the main function of your application and redirect it to the WinAPI. In plus, you need to add Imm32.lib and msvcrt.lib as additional dependencies.

Regards

 

Marco Dos Santos Oliveira

EBU/European Broadcasting Union

Technology and Innovation Department

[...]


**************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please notify the system manager. This footnote also confirms that this email message has been swept by the mailgateway
**************************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]