|
In addition to Cedric's reply - the version of the Platform SDK that comes with VS2005 (Standard and above) will be from 2005 (when VS2005 was released). This means that it won't be able to access features that came with Vista. If you do want to access features from Vista, then you'll need to install a later version of the PDK.
|
|
|
|
|
Hi
I defined a class like:
class CProfile
{
public:
static CString* pIniFilePath;
....
}
When I compiled it, I got a lot of linker warning which looks like:
warning LNK4006: "public: static class CString * CProfile::pIniFilePath" in ada.obj; second definition ignored
How can I get rid of this warning message?
Thanks,
|
|
|
|
|
It looks like you have the same class declared in two source files.
|
|
|
|
|
You must have a line of the form
CString* CProfile::pIniFilePath; somewhere in your code - where is it? If it's in a header, there's a good chance it's causing multiple definitions of that item.
|
|
|
|
|
Yes, I do.
If this is the case, how can I do?
Thanks,
|
|
|
|
|
Put it in the cpp file of the class, instead of in the header.
|
|
|
|
|
Yes, You are great. it fixes my problems.
I have another Linker question for you.
I built "nurbs" dll. This gives me a lib and a dll.
When I tried to link them. I got a lot of warnings which looks like:
warning LNK4006: "void __cdecl PLib::resizeKeepBasic2DArray<struct PLib::HPoint_nD<float,2> >(class PLib::Basic2DArray<struct PLib::HPoint_nD<float,2> > &,int,int)" (??$resizeKeepBasic2DArray@U?$HPoint_nD@M$01@PLib@@@PLib@@YAXAAV?$Basic2DArray@U?$HPoint_nD@M$01@PLib@@@0@HH@Z) already defined in drawtool.obj; second definition ignored.
Best regards,
|
|
|
|
|
transoft wrote: How can I get rid of this warning message?
Start by reading here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi all,
i m using Beep function on button clicked to generate some alert sound like::
Beep( 750, 300 );
Beep( 550, 300 );
Beep( 750, 300 );
Beep( 550, 300 );
Beep( 750, 300 );
Beep( 550, 300 );
Beep( 750, 300 );
Beep( 550, 300 );
Beep( 750, 900 );
its not generate beep on some PC.
there is any specification of machine for beep generation please tell me.
or tell me any other function or solution that is work on all machines.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
"_$h@nky_" wrote: its not generate beep on some PC.
What do you mean by that? May be that PC did not have a speaker?
Did you check the return value of the function? What was it? The doc also states that this function is not supported on the 64 bit versions of XP and Vista.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Yes system have speakers,and i chk the retun value its non zero.
and all machines and 32-bit version.
please suggest me what can i do,or tell me any other function or solution that is work 64-bit version also.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
"_$h@nky_" wrote: please suggest me what can i do,or tell me any other function or solution that is work 64-bit version also.
So, is that an X64 machine where this is 'not working'?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
one of test machine is 64 bit version machine.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Is the PC speaker connected?
Try MessageBeep .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Do other sounds work?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
yes other sounds work properly.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
|
"_$h@nky_" wrote: its not generate beep on some PC.
there is any specification of machine for beep generation please tell me.
If your PC's speaker is there and running well,
Check this registry entry
HKEY_CURRENT_USER\Control Panel\Sound
Check the value of 'Beep' -
if it is "no" (without quotes) change to "yes" (without quotes) and try again.
|
|
|
|
|
Madhu Nair wrote: Check this registry entry
HKEY_CURRENT_USER\Control Panel\Sound
Check the value of 'Beep' -
if it is "no" (without quotes) change to "yes" (without quotes) and try again.
i m checking this value of beep is yes.but beep sound not generated.
please help me for this.
if you know any other function please tell me.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Can anyone tell me what's the different between
CList<CTime,CTime> m_listTime
and
CList<CTime,CTime&> m_listTime
i used either one of these in my program, can't see the different.
*12Code
|
|
|
|
|
12Code wrote: CList<ctime,ctime> m_listTime
This version will copy CTime items when you pass them as parameters to list methods like SetAt[^].
12Code wrote: CList<ctime,ctime&> m_listTime
This version will pass a reference to CTime items when you pass them as parameters to list methods like SetAt[^].
I'm not surprised you don't see a difference - there's not much of one in this case. A slight performance issue, but not much else - except that you really want the default value for the second template parameter.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
you see no difference because the differences are underground.
the second parameter is meant to tell to CList how it's gonna handle your list elements like.
a CTime template parameter tells to use so as methods parameter, that means each time you pass an element to a CList method (such as Add()), it will pass a CTime. that means the parameter will be passed by copy.
a CTime& (or even better a const CTime&) template parameter will have you make no changes in your code, but it will handle references, so no copies anymore.
the difference between the 2 is in the memory consumption and in the performances of the program.
|
|
|
|
|
As a side note, try to pass a temporary object to the second form and see what happens to your application...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All,
Can someone help me to write c++ code in the task of converting pdf to any image format(like .tif,.jpg,.bmp etc)....i googled but didnt get any useful code in c++ ....any help would be appreciable.
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
modified on Thursday, May 14, 2009 6:29 AM
|
|
|
|
|
download pdftoimage.exe that converts PDF file to an image file.
Download from here
But it is chargeable.
regard
Imrankhan
please don't forget to vote on the post that helped you.
|
|
|
|