|
i'm not 100% sure, but VC++ is Microsoft IDE for C++ development, so, i doubt they allow it to target other systems than Microsoft's...
|
|
|
|
|
|
Hello,
I have a MDI app, that currently has one single document type.
I've changed the default APP and DOC icons. They appear correctly in the application, and in Windows Explorer, too.
But not in the app's (default) Open Document Dialog.
There appears the default DOC icon (sheet of paper and "DOC" in red on it).
How could I solve this, and make MY doc icon appear there?
Thankx
Zolee
|
|
|
|
|
dzolee wrote:
Hello,
I have a MDI app, that currently has one single document type.
I've changed the default APP and DOC icons. They appear correctly in the application, and in Windows Explorer, too.
But not in the app's (default) Open Document Dialog.
There appears the default DOC icon (sheet of paper and "DOC" in red on it).
How could I solve this, and make MY doc icon appear there?
change IDR_mainframe icon with your own!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief And You
|
|
|
|
|
dzolee wrote: I've changed the default APP and DOC icons.
But did you change all of the sizes (e.g., 16x16, 32x32, 48x48) within the .ico file?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Hello Experts,
I am in dilemma where i need to call a VB.net function in VC++.net. is it possible to do so, if yes then kindly provide me with the idea.
THANKS for the Support.
Kind Regards
Sandy
|
|
|
|
|
ksandy45 wrote: is it possible to do so
yes, but you're in the wrong forum for MC++.
ask the Managed C++ forum[^]...
|
|
|
|
|
Hi
Iam doing one project in that i need add the to menu items to tray icon popup menu.and radio buutons will add to selected menu item.Can any body help me in my project.
#sanroop#
|
|
|
|
|
I have a serious problem,
I had a project with mapi implementation on VS6.
now i am trying to implement it on VS2005, i am starting to get error of include files such as edk.h and other mapi files.
when i copy the files from the include dir of VS6 to VS2005, the compilation works ok but the link fails.
when i copy the lib files from the VS6 project to VS2005, i can new linking error that talks about standard library....i can not solve this linking errors via VS2005.....
any suggestions?
thanks in advanced
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: ...i can new linking error that talks about standard library...
What linker error, and on what file?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
well, i've managed to solve all the errors
i have an other problem..
i open the address book using this following code:
LPADRLIST CMyClass::_OpenAddressBook(IAddrBook* pAdrBook)
{
USES_CONVERSION;
LPADRLIST lpadrlist = NULL;
LPTSTR rglpszDestTitles[1];
ULONG rgulDestComps[1];
ULONG ulUIParam = 0;
rglpszDestTitles[0] = (LPWSTR) T2A(_T("To"));
rgulDestComps[0] = MAPI_TO;
ADRPARM adrparm;
adrparm.cbABContEntryID = 0;
adrparm.lpABContEntryID = NULL;
adrparm.ulFlags = (DIALOG_MODAL | AB_SELECTONLY);
adrparm.lpReserved = NULL;
adrparm.ulHelpContext = 0;
adrparm.lpszHelpFileName = NULL;
adrparm.lpfnABSDI = NULL;
adrparm.lpfnDismiss = NULL;
adrparm.lpvDismissContext = NULL;
adrparm.lpszCaption = (LPWSTR) T2A(_T("Select Outlook contacts"));
adrparm.lpszNewEntryTitle = (LPWSTR) T2A(_T("For this dialog"));
adrparm.lpszDestWellsTitle = (LPWSTR) T2A(_T("Selected Recipients:"));
adrparm.cDestFields = 1;
adrparm.nDestFieldFocus = 0;
adrparm.lppszDestTitles = rglpszDestTitles;
adrparm.lpulDestComps = rgulDestComps;
adrparm.lpContRestriction = NULL;
adrparm.lpHierRestriction = NULL;
HRESULT hr = (pAdrBook->Address( &ulUIParam, &adrparm, &lpadrlist));
if (FAILED(hr))
{
return NULL;
}
return lpadrlist;
}
problem is the addres book doesn't open modal
can you help?
thanks again
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
YaronNir wrote: problem is the addres book doesn't open modal
How are you verifying this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: How are you verifying this?
what do you mean?
the address book opens, but i can restore to the window which opened it...meaning it is not modal!
try to open new email via outlook, and press on 'To' the address book will open modal....
can u help?
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
My project have to get hexadecimal value from user.
I use edit control for get input (such as 0x000F).
when user put "000F" I don't know how to convert text from edit control to the value that can keep in variable.
Does MFC have function (such as atoi(),atof().. ) for support it.
|
|
|
|
|
Try this
int nOut;
nOut = strtoul( "0xffff", NULL, 16);
nOut will equal 65535
|
|
|
|
|
Try this (non-unicode):
<br />
char * hex = "007A";<br />
int i;<br />
sscanf(hex, "%x", &i);<br />
<br />
OR<br />
<br />
CString csHex = "007A";<br />
int i;<br />
sscanf(csHex, "%x", &i);<br />
<br />
I now contains the numerical value of the hex-interpreted value 7A.
That is 122 (decimal).
Justify for Unicode as needed.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
I am developing a application using vc++. I want to copy a folder
with its entire contains from one location to another location through
code. How can I achieve this using VC++ 6.0.
|
|
|
|
|
sujtha wrote: I am developing a application using vc++.
MFC?
Use the CopyFile function.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
brahmma wrote:
Use the CopyFile function.
This operates on one file at a time, plus a call to CreateDirectory() would also need to be used.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
int SHFileOperation( LPSHFILEOPSTRUCT lpFileOp );
-----------
Mila
|
|
|
|
|
my suggestion is SHFileOperation
|
|
|
|
|
sujtha wrote: I am developing a application using vc++. I want to copy a folder
with its entire contains from one location to another location through
code. How can I achieve this using VC++ 6.0.
http://www.codeproject.com/shell/cshellfileop.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief And You
|
|
|
|
|
I use these codes to storage the data
ofstream output(filename,ios::out|ios::binary);
if (!output)
{
cout<<"Khong mo duoc file"<<endl;
exit(1);
="" }
="" output.write((char="" *)="" &n,sizeof(int));
="" for="" (i="0;i<n;i++)
" {
="" cin="">>obj[i];
}
for (i=0;i<n;i++)
{
="" output.write((char="" *)="" &obj[i],sizeof(student));
="" }
="" output.close();
but="" i="" cant="" read="" the="" data="" with="" these="" code
="" ifstream="" input(filename,ios::in|ios::binary);
="" if="" (!input)
="" cout<<"khong="" mo="" duoc="" file"<<endl;
="" exit(1);
="" input.read((char="" &n,sizeof(int));
="" student="" *obj="new" student[n];
="" for="" (i="0;i<n;i++)
" while(input.read((char="" &obj[i],sizeof(student)))
="" cout<<obj[i];
="" cout<<"\n";
="" input.close();
please="" help="" me="" to="" figure="" it="" out
thanks=""
<div="" class="ForumSig">hehe
|
|
|
|
|
It'd help if you told us what the actual problem is
Does your code not compile (what's the error)
Does it crash when you run it (where?)
Have you tried stepping through with a debugger, to check what you're getting it what you'd expect?
|
|
|
|