From: Daniel T. <ta...@wa...> - 2002-08-28 07:42:41
|
Kees Zeelenberg wrote: > > You should add: > > -lole32 -luuid > > to the linker statement. > > You might also need to include windows.h and ole2.h > > Kees Still a problem: gcc -g install-win-tl.c -DMSDOS -lole32 -luuid -o install-win-tl.TL7.exe -funsig ned-char install-win-tl.c: In function `CreateLink': install-win-tl.c:420: incompatible type for argument 1 of `CoCreateInstance' install-win-tl.c:420: incompatible type for argument 4 of `CoCreateInstance' install-win-tl.c:425: structure has no member named `SetPath' install-win-tl.c:426: structure has no member named `SetDescription' install-win-tl.c:430: structure has no member named `QueryInterface' install-win-tl.c:441: structure has no member named `Save' install-win-tl.c:442: structure has no member named `Release' install-win-tl.c:444: structure has no member named `Release' D:\MINGW\BIN\MAKE.EXE: *** [install-win-tl.exe] Error 1 Here is the heading sets: #include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> #include <windows.h> #include <shlobj.h> #define TRUE 1 #define FALSE 0 #define BYTE char #define UINT unsigned int #define LONG long int ----> What did I forget, or what did I make wrong (the CreateLink is copied/pasted from the MSDN web site)? > > ----- Oorspronkelijk bericht ----- > Van: "Daniel Taupin" <ta...@wa...> > Aan: "Kees Zeelenberg" <kz...@us...> > Verzonden: dinsdag 27 augustus 2002 22:19 > Onderwerp: Re: [Mingw-users] Making links and introducing Icons > > > > > > > Kees Zeelenberg wrote: > > > > > > CreateLink is an example of a function to be used in a program or > library. > > > The functions used in it, such as IPersistFile and IShellLink are > functions > > > from the Win32 API, and come from ole32.dll and uuid.dll. Your program > thus > > > should be linked with the import libraries for the dll's. > > > > OK. I found that I should add shlobj.h in the C source to have many > > SYMBOLS defined. > > > > But can you tell me what I should put in the Makefile (after the "gcc > > myfile.c" texte, to ionvoke that library (and which name it has)? > > > > Thanks. > > > > > > Kees Zeelenberg > > > > > > ----- Oorspronkelijk bericht ----- > > > Van: "Daniel Taupin" <ta...@wa...> > > > Aan: "Kees Zeelenberg" <kz...@us...> > > > Verzonden: dinsdag 27 augustus 2002 21:43 > > > Onderwerp: Re: [Mingw-users] Making links and introducing Icons > > > > > > > > > > > > > > > Kees Zeelenberg wrote: > > > > > > > > > > See > > > > > > > > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/pl > > > > > > > > > atform/Shell/programmersguide/shell_int/shell_int_programming/shortcuts/sho > > > > > rtcut.asp > > > > > for an example. > > > > > > > > I have looked at that (re-concatenating the 3 lines of the message, > due > > > > to mail wrapping...) but I do not understand whether CreateLink is a > > > > procedure command to be invoked in a GCC program, of whether this an > > > > example of a possible procedure to be copied inside one's C program. > > > > > > > > > > Kees Zeelenberg > > > > > > > > > > ----- Oorspronkelijk bericht ----- > > > > > Van: "Daniel Taupin" <ta...@wa...> > > > > > Aan: <min...@li...> > > > > > Verzonden: dinsdag 27 augustus 2002 18:13 > > > > > Onderwerp: [Mingw-users] Making links and introducing Icons > > > > > > > > > [...] > > > > > 2) is there a procedure which can attach an Icon to either an > > > > > executable, or a link (LNK). > > > > > > > > > [...] > > > > > > > > > ------------------------------------------------------------------------ > > > > Daniel Taupin, 91400 ORSAY - France > > > > E-mail= mailto:ta...@wa... > > > > Home/fax: (33)1.60.10.26.44. Rep.: (33)1.60.10.04.13, fax (work) > > > > (33)1.69.15.60.86 > > > > > > > > -- > > > > ------------------------------------------------------------------------ > > Daniel Taupin, 91400 ORSAY - France > > E-mail= mailto:ta...@wa... > > Home/fax: (33)1.60.10.26.44. Rep.: (33)1.60.10.04.13, fax (work) > > (33)1.69.15.60.86 > > -- ------------------------------------------------------------------------ Daniel Taupin, 91400 ORSAY - France E-mail= mailto:ta...@wa... Home/fax: (33)1.60.10.26.44. Rep.: (33)1.60.10.04.13, fax (work) (33)1.69.15.60.86 |