J'ai un souci de Compilation par le Start Debug!!
Pourtant j'ai bien choisi Win32 Console Application et le nom de mon fichier cpp est WinMain!! je ne voi pas pourquoi sa ne fonction pas![]()
:
![]()
Mon Code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 #include <Windows.h> #include "resource.h" int WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ); // ------------------------------------------- MenuBar void PrintMenu(HWND hWnd) { HMENU hMenu; POINT pt; GetCursorPos(&pt); hMenu=CreatePopupMenu(); AppendMenu(hMenu,MF_STRING,1,"Fichier"); TrackPopupMenu(hMenu,NULL,pt.x,pt.y,0,hWnd,NULL); }
Le Problème
--------------------Configuration: EcrirePlus - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/EcrirePlus.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.[/b]
-----
Merci beaucoup de votre aide![]()
Partager