And here you have the content of my stdafx.h specification file:

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently

#ifndef GTKMM_TEST_STDAFX_H__
#define GTKMM_TEST_STDAFX_H__

#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#include <cstddef>
#include <xstddef>
#include <iostream>
#include <stdlib.h>
#include <cstdlib>
#include <gtkmm.h>
#include <gdkmm.h>


#endif GTKMM_TEST_STDAFX_H__

// TODO: reference additional headers your program requires here


Marco Dos Santos Oliveira
EBU/European Broadcasting Union
Technology and Innovation Department

From: Dos Santos, Oliveira
Sent: mercredi 13 février 2013 11:41
To: 'Doesnt Stop'; Gavin Lambert
Cc: Gtkmm List
Subject: 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:[email protected]]
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
**************************************************
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to