je suppose que je l'ai depuis que j'ai t�l�charger flash sur mon pc.
Vas sur le site de adobe et cherhche Macromedia flash player.
je suppose que je l'ai depuis que j'ai t�l�charger flash sur mon pc.
Vas sur le site de adobe et cherhche Macromedia flash player.
Comme r�sultat j'ai
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9 char str[256]; GetModuleFileName(NULL, str, 256); CString strCMieuxUneCString = str; char path[260]; GetCurrentDirectory( 260, path ); MessageBox( 0, path, 0); MessageBox(0,str,0); m_FlashPlayer.SetMovie(".\\CDROMFLASH.swf");
path = C:\Documents and Settings\Perrine\Mes Documents\DisplayFlash
str = C:\Documents and Settings\Perrine\Mes Documents\DisplayFlash\Debug\DisplayFlash.exe
Vous avez une id�e?
D�j�, lance ton exe directement depuis l'explorateur.Comme r�sultat j'ai
path = C:\Documents and Settings\Perrine\Mes Documents\DisplayFlash
str = C:\Documents and Settings\Perrine\Mes Documents\DisplayFlash\Debug\DisplayFlash.exe
Tu devrais avoir
Mais �a ne devrait pas r�soudre le probl�me.path = C:\Documents and Settings\Perrine\Mes Documents\DisplayFlash\Debug
Que fait la fonction InvokeHelper avec lpszNewValue ?
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7 void CShockwaveFlash::SetMovie(LPCTSTR lpszNewValue) { static BYTE parms[] = VTS_BSTR; InvokeHelper(0x66, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, lpszNewValue); }
Le probl�me peut aussi venir de l�.
je ne sais pas du tout cette fonction je ne l'ai pas developp� elle vient du controle CShokeWaveFlash j'ai cherch� sur internet plus d'infos mais ou je ne trouve pas ou apparemment je ne comprend rien . D�sol�e je me consid�re encore comme d�butante dans la programmation .![]()
Tu peux toujours esseyer de concat�ner le nom du fichier � path.
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4 char path[260]; GetCurrentDirectory( 260, path ); strcat( path, "\\cdromflash.swf" ); m_FlashPlayer.SetMovie( path );
Pour LPCTSTR jai trouv� que c'�tait l'�quivalent d'un const char * et
pour InvokeHelper j'ai trouv� ceci:
void AFX_CDECL InvokeHelper(
DISPID dwDispID,
WORD wFlags,
VARTYPE vtRet,
void* pvRet,
const BYTE* pbParamInfo,
...
);
Parameters
dwDispID
Identifies the method or property to be invoked. This value is usually supplied by Component Gallery.
wFlags
Flags describing the context of the call to IDispatch::Invoke. For possible wFlags values, see IDispatch::Invoke in the Platform SDK.
vtRet
Specifies the type of the return value. For possible values, see the Remarks section for COleDispatchDriver::InvokeHelper.
pvRet
Address of the variable that will that will receive the property value or return value. It must match the type specified by vtRet.
pbParamInfo
Pointer to a null-terminated string of bytes specifying the types of the parameters following pbParamInfo. For possible values, see the Remarks section for COleDispatchDriver::InvokeHelper.
...
Variable List of parameters, of types specified in pbParamInfo.
Franchement Maytie merci enorm�ment.
Ca marche avec la concat�nation je ne comprends toujours pas pourquoi �a marche mais tu m'enl�ve un �norme poids l�. Je d�sesp�rais.
Je ne sais pas comment te remercier, merci de ne pas m'avoir laiss�e tomber en cours de route.
Thanks thanks thanks very much! Je suis trop contente!!
J'espere un jour te redevoir �a franchement.
A bientot.
Biz Bouba.
Partager