|
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?
|
|
|
|
|
Please wrap your code snippets with <pre> tags, and make sure the angle bracket in the for statement is correct. Otherwise, it makes for very illegible code. You would have noticed this had you clicked the Preview button.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
i'm really a beginner here, so hopefully somebody can help me. i'm
currently doing a dialog application for a IC tester(hardware). In this
application, it will send some vector(series of '1' and '0' ) to the IC
tester(hardware) and then after the testing it will return back a result
vector(series of '1' and '0' ) to the computer. Therefore, in the dialog,
it will hv a button to start the testing. Once the button is pressed, the
testing will begin and later in the dialog, it should display the input
vector and also the output vector( which looks like a square wave to
represent 1 or 0). The data for the vector can be taken from a file saved in text format.
The problem now are:
1)how do i display the vector in my dialog box? Should i create and list
box or picture to display the graph in the dialog?
2)is there anybody who knows how to draw a square wave by getting the
data from a file( the file contains a series of 1 and 0, and if 1, the
wave amplitude is high and if 0 it will show low). Which function do you
recommend me to use?
3) i also need to be able to zoom in/out to view the vector.
Thanks.
|
|
|
|
|
First, you have to separate properly everything: how the data is represented for example (in the file) has nothing to do with how it will be displayed on the screen and how it will be sent to your IC tester. So, basically, what you have is a list of 0 and 1 and you want to display them on the screen (and you have two separate lists).
Did you take a look at the link I gave you last time ? About the chart control I developed (see here[^] ) ? I think by tweaking it a little bit you will be able to achieve what you are looking for: have two traces displayed on the screen. Of course, you need to offset one of them (e.g., one is between 0 and 1 and the other is between 2 and 3) do that they don't overlap. But, you can simply hide the Y axis so that you won't see the values.
Of course, you can also do it yourself. But then, I would suggest to create a custom control (see articles on this website) and write all the code yourself (so you will need to draw everything yourself). Which can be quite long, specially if you are a beginer.
But, one thing that is really important (and that confuse a lot of beginers), is to separate things that are not related: the reading of the file must be separated from the way you display your data that must be separated by how you send your data to your IC...
|
|
|
|
|
Hi, I have a problem...
In my application there is a CEdit box and i put text in it, if I cancel this text the application return a Debug error...
There is some initialization that I must do?
Please help me
|
|
|
|
|
fabiotriolo wrote: if I cancel this text
What does 'cancel' mean ? What did you do ?
fabiotriolo wrote: the application return a Debug error...
What error exactly ?
|
|
|
|
|
Its not sufficient for answer
|
|
|
|
|
WhiteSky wrote: Its not sufficient for answer
humm Happy Eid Buddy!
"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
|
|
|
|