Re: EVC3.0 - PPC2002 - icon used by shortcuts (.lnk) not correct - IDR_MAINFRAME?? by GROELL
GROELL
Tue Dec 16 14:19:35 CST 2003
"buzz" <buzz@buzz.com> écrivait
news:e$lE1e1wDHA.2316@TK2MSFTNGP10.phx.gbl:
Hello,
I have the same problem when changing the icon for visual purpose.
Usually a soft reset solves everything, it seems the icons are memorized
and are not changed until a soft reset.
Hope it helps
Pascal
> I remember having problems creating shortcuts a while back. I don't
> remember the exact issue, but here is some code that works for me
> under PPC2002. (I think there is a problem with PPC2003).
>
> const TCHAR* szExeProgram = _T("\\Program Files\\<your folder
> here>\\<your appname here>.exe");
> const TCHAR* szExeShortCut = _T("\\Windows\\Start Menu\\<your appname
> here>.lnk");
>
> // If we successfully start the downloaded application, then create
> a
> shortcut
> // for it.
> TCHAR path[250];
>
> lstrcpy(path, _T("\""));
> lstrcat(path, szExeProgram);
> lstrcat(path, _T("\""));
>
> DeleteFile(szExeShortCut);
>
> // If we successfully started the app, then create a shortcut for it
> if(!SHCreateShortcut((LPTSTR)szExeShortCut,
> path))
> {
> AfxMessageBox(_T("Error creating shortcut"));
> }
>
> Hope it helps.
>
>
> "flush" <flus34.beta@gmx.de> wrote in message
> news:brd27m$orl$1@ngspool-d02.news.aol.com...
>> Hello.
>> I've written an application with evc3.0 for my ipaq running
>> pocketpc2002
> and
>> wanted to make an installer for it.
>> Everything went fine (the program installs and unistalls on my ipaq
> without
>> any problems) until I want a specific icon for my shortcut in the
>> windows directory (\windows\start menu\programs\<link>).
>> Since I gave the executable on the ipaq another name the icon I
>> specified with the IDR_MAINFRAME isn't used for the link (all other
>> icons - in the browser for example - are correct an reflect the
>> changed idr_mainframe icon). I also checked the icons defined in the
>> created .exe file: noone of these show the icon shown by the
>> shortcut. So where does the icon come
> from?
>> where is it stored?
>> I would be very glad if someone could help me with this issue. I
>> simply
> have
>> no clue (after 4 hours of trying out) what I could do to fix the
>> problem.
>>
>> thanx in advance
>> marc
>>
>>
>
>