|
Gaurang Shah 033 wrote: The errors are as follow.
SimpleShlExt.h(22): error C2787: 'IContextMenu' : no GUID has been associated with this object
SimpleShlExt.h(22): error C2440: 'initializing' : cannot convert from 'DWORD_PTR' to 'const IID *'
put this in the stdafx.h and rebuild.
#define _ATL_NO_UUIDOF
|
|
|
|
|
Thnx a lot for your help. But can I have a little help on this macro.
|
|
|
|
|
|
I want to update media files to my iPod using my own program but not iTunes.
I had download the iTunes SDK. But if I do the task by my program using the SDK,I have to make iTunes running.But I must run iTunes,there would be no need to program by my self!
So,I want to know the iPod's database file format.
Someone would like to help me?
Thank you.
GOOD LUCK.
|
|
|
|
|
i want to load bitmap on control button, & whenever i move cursor on that button it highlight the button, & when i again leave cursor from button, it should not highlight the button
varun
|
|
|
|
|
hi
ample downloads are available at codeproject as well as codeguru.com
please go through them.
i faced the same problem long ago and could solve it using the downloads from the above sites.
gud luck.
|
|
|
|
|
You have to create two bitmap resources for doing this. One is for normal state another for highlight state. On mouse over on the button you need to change the bitmap.
Sreedhar DV
[Real success is having courage to meet failure without being defeated.]
|
|
|
|
|
You have to customize the button.
- NS -
|
|
|
|
|
Use CBitmapButton instead of CButton.
|
|
|
|
|
It will not support mouse over highlight, right?
- NS -
|
|
|
|
|
Hi all,
How do I know the context menu created by TrackPopupMenu is dismissed? Do I get any message? I know I will get a message if the user select an item, but how about if the user click anywhere outside of the menu?
Thanks.
|
|
|
|
|
When the menu is dismissed TrackPopupMenu will return.
Steve
|
|
|
|
|
Yes! So simple! Thanks a lot!
|
|
|
|
|
I have a COM component with no .h files.But I want to use it,how should I begin?
Thanks.
GOOD LUCK
|
|
|
|
|
|
I am sorry that,I only have a .dll file of the COM component.
Thanks
|
|
|
|
|
#import is meant for such situations. NOTE: NOT #include but #import . Look it up!
Steve
|
|
|
|
|
|
He there,
I wrote a DLL in which i have got a function that shall be passed some data and a filename and it shall save the data into the file.
I tried three diffeent ways and at all off the three I get the message that I am not allowed to write to the file ("Access denied").
The first way I tried:
FILE *File;<br />
File = fopen("strName", "w+");<br />
fprintf(File, "Test");<br />
fflush(File);<br />
fclose(File);
The message comes when I reach the fflush line, when i delete it, the message comes at the fclose line.
The second way:
CFile FileHF;<br />
FileHF.Open(strName, CFile::modeCreate | CFile::modeWrite | CFile::modeNoTruncate);<br />
FileHF.Write(pHF, sizeof(pHF));<br />
FileHF.Close();
This is the way i found around the internet told as working, not with me I get the message in the File.Write line.
The third way:
CFile FileHF;<br />
FileHF.Open(strName, CFile::modeCreate | CFile::modeWrite | CFile::modeNoTruncate);<br />
CArchive ar(&FileHF, CArchive::store);<br />
ar << (int)pHF;
This way I found in a book, but here I get the Message in the CArchive line.
I am out of knowledge and ut of sources which could tell me the right way. Could you please?
thx
Lars
|
|
|
|
|
TheInfernalCrow wrote: I am not allowed to write to the file ("Access denied").
From where this access denied message got?
- NS -
|
|
|
|
|
Is this working in the application ? What i mean is are you getting this message only in dll ?
If you are getting it in both application and dll, may be you have not proper access rights.
|
|
|
|
|
I get a MessageBox saying that,
Both in Dll and my Prog I get the Message.
I am an Admin user in my system.
|
|
|
|
|
FILE *File;
File = fopen("strName", "w+");
fprintf(File, "Test");
fflush(File);
fclose(File);
this is your above code.
try removing '"' quotations before the strName and see.
then also if you are getting an error,
then hardcode the filename and see like fopen("c:\\test.txt");
and also you have to do some error checking like,
FILE *File;
File = fopen(strName, "w");//NOTE:try removing the + and see
if(File != NULL)
{
fprintf(File, "Test");
fflush(File);
fclose(File);
}
else
{
AfxMessageBox("File Not Opened successfully");
}
i suspect that, the problem may be with + or the filename you are passing.
|
|
|
|
|
i removed them and nothing changed as well only to have "w" in the fopen and hardcoding the filename
|
|
|
|
|
try doing the error checking as i did and post your code.
|
|
|
|