|
How can I know whether the path selected is a drive name of any other folder . I have a xml whether user can edit it and enter a path. User can enter any path in it like C:\, C:\\\\, or C:\test\abc or anything. I am getting a problem with path comparision I have to treat C:\\\ as C:\ only, Any api to check whether selected path is a drive name. So that I can consider C:\\\ as C:\
Thanks..
|
|
|
|
|
See _getdrive api. or See if PathFileExists suffices your needs.
You can trim/remove the extra slashes
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
[Add] You will need to trim any additional '\' characters on the right side of the string, before passing it to the following API. [/Add]
BOOL PathIsRoot()[^] returns TRUE if the given path is the root of a drive.
You will need to include shlwapi.h and link to shlwapi.lib to use this API.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
You may find that PathCanonicalize[^] helps - it should convert paths to a canonical (definition: simplest and most significant form possible) form, which should make comparison more reliable.
|
|
|
|
|
hi friends can anyone tell me how to solve this linker error i got it while converting my application from mbcs to unicode one.
--------------------Configuration: CKSS - Win32 Release--------------------
Compiling...
CKViewFindReplace.cpp
Linking...
ggets.obj : error LNK2005: "unsigned short * __cdecl GetFileString(unsigned short *,int,struct _iobuf *)" (?GetFileString@@YAPAGPAGHPAU_iobuf@@@Z) already defined in StdioFileEx.obj
ggets.obj : error LNK2005: "char * __cdecl FindCharInString(char const *,int)" (?FindCharInString@@YAPADPBDH@Z) already defined in StdioFileEx.obj
ggets.obj : error LNK2005: "unsigned short * __cdecl FindCharInString(unsigned short const *,unsigned short)" (?FindCharInString@@YAPAGPBGG@Z) already defined in StdioFileEx.obj
ggets.obj : warning LNK4006: "unsigned short * __cdecl GetFileString(unsigned short *,int,struct _iobuf *)" (?GetFileString@@YAPAGPAGHPAU_iobuf@@@Z) already defined in StdioFileEx.obj; second definition ignored
ggets.obj : warning LNK4006: "char * __cdecl FindCharInString(char const *,int)" (?FindCharInString@@YAPADPBDH@Z) already defined in StdioFileEx.obj; second definition ignored
ggets.obj : warning LNK4006: "unsigned short * __cdecl FindCharInString(unsigned short const *,unsigned short)" (?FindCharInString@@YAPAGPBGG@Z) already defined in StdioFileEx.obj; second definition ignored
Creating library D:\CKProjects\SHAKTIOFFICEU\SOCalc\Bin\CKSS.lib and object D:\CKProjects\SHAKTIOFFICEU\SOCalc\Bin\CKSS.exp
CKViewInsertView.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKFormulaBar.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKPivotTableView.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKFormatToolsView.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKGridEventsView.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKTextToColumnView.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CCKGoalSeekImp.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKAdvancedFilterImpl.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKDataWindowView.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKFileEditView.obj : error LNK2001: unresolved external symbol "public: static int __cdecl CGXFormulaSheet::TextToRange(unsigned short const *,class CGXRange &)" (?TextToRange@CGXFormulaSheet@@SAHPBGAAVCGXRange@@@Z)
CKPasteSpecialView.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@P
BGHH@Z)
CKPivotTable.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@PBGHH@Z
)
CCKSubtotalAboveData.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@
@PBGHH@Z)
CCKSubTotalImpl.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@PBGH
H@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@PBGHH@Z)
CKViewInsertView.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@PBG
HH@Z)
ChildFrm.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@PBGHH@Z)
CKFormulaBar.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@PBGHH@Z
)
CKAdvancedFilterImpl.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@
@PBGHH@Z)
CKDataWindowView.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@PBG
HH@Z)
CKFileEditView.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@PBGHH
@Z)
CKGridEventsView.obj : error LNK2001: unresolved external symbol "public: static unsigned short const * __cdecl CGXFormulaSheet::RangeToText(class CGXRange const &,unsigned short const *,int,int)" (?RangeToText@CGXFormulaSheet@@SAPBGABVCGXRange@@PBG
HH@Z)
CKPivotTableView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CCKSubtotalAboveData.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CCKSubTotalImpl.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKFillSeriesView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKPasteSpecialView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKViewFindReplace.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKPivotTable.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKViewAutoFormat.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKViewInsertView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKViewShortcuts.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
SpellWrapper.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKGridEventsView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKSSDocSave.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKTextToColumnView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKCustomFilterImpl.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKDataWindowView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKFileEditView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKFormatToolsView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXStyle::ReadProfile(unsigned short const *,class CGXStylesMap const *)" (?ReadProfile@CGXStyle@@UAEHPBGPBVCGXStylesMap@@@Z)
CKPivotTableView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CCKSubtotalAboveData.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CCKSubTotalImpl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKFillSeriesView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKPasteSpecialView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKViewFindReplace.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKPivotTable.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKViewAutoFormat.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKViewInsertView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKViewShortcuts.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
SpellWrapper.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKGridEventsView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKSSDocSave.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKTextToColumnView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKCustomFilterImpl.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKDataWindowView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKFileEditView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKFormatToolsView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXStyle::WriteProfile(unsigned short const *,class CGXStylesMap const *)const " (?WriteProfile@CGXStyle@@UBEXPBGPBVCGXStylesMap@@@Z)
CKDataWindowView.obj : error LNK2001: unresolved external symbol "public: int __thiscall CGXNames::InsertName(class CGXRangeList *,unsigned short *,int *)" (?InsertName@CGXNames@@QAEHPAVCGXRangeList@@PAGPAH@Z)
CKGridEventsView.obj : error LNK2001: unresolved external symbol "public: int __thiscall CGXNames::InsertName(class CGXRangeList *,unsigned short *,int *)" (?InsertName@CGXNames@@QAEHPAVCGXRangeList@@PAGPAH@Z)
CKViewInsertView.obj : error LNK2001: unresolved external symbol "public: int __thiscall CGXNames::InsertName(class CGXRangeList *,unsigned short *,int *)" (?InsertName@CGXNames@@QAEHPAVCGXRangeList@@PAGPAH@Z)
CKFormulaBar.obj : error LNK2001: unresolved external symbol "public: int __thiscall CGXNames::InsertName(class CGXRangeList *,unsigned short *,int *)" (?InsertName@CGXNames@@QAEHPAVCGXRangeList@@PAGPAH@Z)
CKPasteSpecialView.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CKPivotTable.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CCKSubtotalAboveData.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CCKSubTotalImpl.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CKTextToColumnView.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CKViewInsertView.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
SpellWrapper.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CKDataWindowView.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CKFileEditView.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CKFormatToolsView.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "protected: static unsigned short const * __stdcall CGXFont::FaceName_ui2str(unsigned int)" (?FaceName_ui2str@CGXFont@@KGPBGI@Z)
CKFileEditView.obj : error LNK2001: unresolved external symbol "public: void __thiscall CGXHtmlW::WriteToFile(unsigned short const *)" (?WriteToFile@CGXHtmlW@@QAEXPBG@Z)
CKFileEditView.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXData::GetValueRowCol(unsigned long,unsigned long,int,class CGXStyle *)" (?GetValueRowCol@CGXData@@QAEPBGKKHPAVCGXStyle@@@Z)
CKViewInsertView.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(int)" (?GetTabName@CGXTabWnd@@QAEPBGH@Z)
CKEdit.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(int)" (?GetTabName@CGXTabWnd@@QAEPBGH@Z)
CKViewFindReplace.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(int)" (?GetTabName@CGXTabWnd@@QAEPBGH@Z)
CKFileEditView.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(int)" (?GetTabName@CGXTabWnd@@QAEPBGH@Z)
CKFormatToolsView.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(int)" (?GetTabName@CGXTabWnd@@QAEPBGH@Z)
CKGridEventsView.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(int)" (?GetTabName@CGXTabWnd@@QAEPBGH@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(int)" (?GetTabName@CGXTabWnd@@QAEPBGH@Z)
CKPivotTable.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CCKSubTotalImpl.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CKTextToColumnView.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CKViewInsertView.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CKPasteSpecialView.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CKViewFindReplace.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CKFileEditView.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CKFormatToolsView.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CKGridEventsView.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "protected: static unsigned int __stdcall CGXFont::FaceName_str2ui(unsigned short const *)" (?FaceName_str2ui@CGXFont@@KGIPBG@Z)
CKFormatToolsView.obj : error LNK2001: unresolved external symbol "public: virtual class CGXAbstractUserAttribute & __thiscall CGXAbstractUserAttribute::SetValue(unsigned short const *)" (?SetValue@CGXAbstractUserAttribute@@UAEAAV1@PBG@Z)
CKFormatToolsView.obj : error LNK2001: unresolved external symbol "public: __thiscall CGXAbstractUserAttribute::operator unsigned short const *(void)const " (??BCGXAbstractUserAttribute@@QBEPBGXZ)
CKGridEventsView.obj : error LNK2001: unresolved external symbol "public: __thiscall CGXAbstractUserAttribute::operator unsigned short const *(void)const " (??BCGXAbstractUserAttribute@@QBEPBGXZ)
CKSSView.obj : error LNK2001: unresolved external symbol "public: __thiscall CGXAbstractUserAttribute::operator unsigned short const *(void)const " (??BCGXAbstractUserAttribute@@QBEPBGXZ)
CKViewInsertView.obj : error LNK2001: unresolved external symbol "public: __thiscall CGXAbstractUserAttribute::operator unsigned short const *(void)const " (??BCGXAbstractUserAttribute@@QBEPBGXZ)
CKSSDocSave.obj : error LNK2001: unresolved external symbol "public: void __thiscall CGXTabWnd::SetTabName(int,unsigned short const *,int)" (?SetTabName@CGXTabWnd@@QAEXHPBGH@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CGXGridCore::OnGridWinIniChange(unsigned short const *)" (?OnGridWinIniChange@CGXGridCore@@MAEXPBG@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXGridCore::ShowContextCursor(unsigned int,unsigned short const *)" (?ShowContextCursor@CGXGridCore@@UAEXIPBG@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXGridCore::CalcBufferDimension(unsigned short const *,unsigned long,unsigned long &,unsigned long &)" (?CalcBufferDimension@CGXGridCore@@UAEHPBGKAAK1@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXGridCore::PasteTextFromBuffer(unsigned short const *,unsigned long,class CGXRange const &)" (?PasteTextFromBuffer@CGXGridCore@@UAEHPBGKABVCGXRange@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXGridCore::DeleteRangeName(unsigned short const *,class CObject *,enum GXCmdType)" (?DeleteRangeName@CGXGridCore@@UAEHPBGPAVCObject@@W4GXCmdType@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXGridCore::GetRangeName(unsigned short const *,class CGXRange &)" (?GetRangeName@CGXGridCore@@UAEHPBGAAVCGXRange@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXGridCore::SetRangeName(unsigned short const *,class CGXRange const &,class CObject *,unsigned int,enum GXCmdType)" (?SetRangeName@CGXGridCore@@UAEHPBGABVCGXR
ange@@PAVCObject@@IW4GXCmdType@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXGridCore::SetWarningText(unsigned short const *)" (?SetWarningText@CGXGridCore@@UAEXPBG@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXGridCore::BeginTrans(unsigned short const *)" (?BeginTrans@CGXGridCore@@UAEXPBG@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXGridCore::OnCKReplaceAll(unsigned short const *,unsigned short const *,int,unsigned short const *,int)" (?OnCKReplaceAll@CGXGridCore@@UAEHPBG0H0H@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXGridCore::OnCKReplaceSel(unsigned short const *,int,int,unsigned short const *,unsigned short const *,int)" (?OnCKReplaceSel@CGXGridCore@@UAEXPBGHH00H@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXGridCore::OnReplaceAll(unsigned short const *,unsigned short const *,int)" (?OnReplaceAll@CGXGridCore@@UAEHPBG0H@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXGridCore::OnReplaceSel(unsigned short const *,int,int,unsigned short const *)" (?OnReplaceSel@CGXGridCore@@UAEXPBGHH0@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXExcelReadView::PreCreateWindow(struct tagCREATESTRUCTW &)" (?PreCreateWindow@CGXExcelReadView@@UAEHAAUtagCREATESTRUCTW@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "protected: int __thiscall CGXExcelReadView::OnCreate(struct tagCREATESTRUCTW *)" (?OnCreate@CGXExcelReadView@@IAEHPAUtagCREATESTRUCTW@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(class CWnd const *)" (?GetTabName@CGXTabWnd@@QAEPBGPBVCWnd@@@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(class CWnd const *)" (?GetTabName@CGXTabWnd@@QAEPBGPBVCWnd@@@Z)
CKViewFindReplace.obj : error LNK2001: unresolved external symbol "public: unsigned short const * __thiscall CGXTabWnd::GetTabName(class CWnd const *)" (?GetTabName@CGXTabWnd@@QAEPBGPBVCWnd@@@Z)
CKSSView.obj : error LNK2001: unresolved external symbol "public: int __thiscall CGXGridCore::OnGetMultiRangeChrtFormat(unsigned short *,unsigned long *)" (?OnGetMultiRangeChrtFormat@CGXGridCore@@QAEHPAGPAK@Z)
ChildFrm.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXFrameAdapter::HandleOnCreateClient(struct tagCREATESTRUCTW *,struct CCreateContext *)" (?HandleOnCreateClient@CGXFrameAdapter@@UAEHPAUtagCREATESTRUCTW@@PAUCC
reateContext@@@Z)
ChildFrm.obj : error LNK2001: unresolved external symbol "protected: virtual int __thiscall CGXWChildFrame::OnCreateClient(struct tagCREATESTRUCTW *,struct CCreateContext *)" (?OnCreateClient@CGXWChildFrame@@MAEHPAUtagCREATESTRUCTW@@PAUCCreateContex
t@@@Z)
ChildFrm.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXExcelChildFrame::PreCreateWindow(struct tagCREATESTRUCTW &)" (?PreCreateWindow@CGXExcelChildFrame@@UAEHAAUtagCREATESTRUCTW@@@Z)
CKSSDoc.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXExcelDocAdapter::IsExcelFile(unsigned short const *)const " (?IsExcelFile@CGXExcelDocAdapter@@UBEHPBG@Z)
CKSSDoc.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXExcelReadDoc::BaseOnOpenDocument(unsigned short const *)" (?BaseOnOpenDocument@CGXExcelReadDoc@@UAEHPBG@Z)
CKSSDoc.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXExcelReadDoc::OnSaveDocument(unsigned short const *)" (?OnSaveDocument@CGXExcelReadDoc@@UAEHPBG@Z)
CKSSDoc.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXExcelReadDoc::OnOpenDocument(unsigned short const *)" (?OnOpenDocument@CGXExcelReadDoc@@UAEHPBG@Z)
CKSSDoc.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXDocument::DoSave(unsigned short const *,int)" (?DoSave@CGXDocument@@UAEHPBGH@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "void __stdcall _SetCaption(unsigned short const *)" (?_SetCaption@@YGXPBG@Z)
CKGXComboBox.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CGXControl::OnInvalidKeyPressed(unsigned short const *)" (?OnInvalidKeyPressed@CGXControl@@MAEXPBG@Z)
CKGXComboBox.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXControl::OnGridWinIniChange(unsigned short const *)" (?OnGridWinIniChange@CGXControl@@UAEXPBG@Z)
CKGXComboBox.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXComboBox::ReplaceSel(unsigned short const *)" (?ReplaceSel@CGXComboBox@@UAEXPBG@Z)
CKGXComboBox.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXEditControl::FindTextW(struct GX_FR_STATE const &,unsigned long,unsigned long,int,int)" (?FindTextW@CGXEditControl@@UAEHABUGX_FR_STATE@@KKHH@Z)
CKGXComboBox.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXControl::FindStringInChoiceList(class CString &,unsigned short const *,unsigned short const *,int)" (?FindStringInChoiceList@CGXControl@@UAEHAAVCString@@
PBG1H@Z)
CKGXComboBox.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXControl::GetChoiceListItem(class CString &,unsigned short const *,int)" (?GetChoiceListItem@CGXControl@@UAEHAAVCString@@PBGH@Z)
CKGXComboBox.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CGXComboBox::GetControlText(class CString &,unsigned long,unsigned long,unsigned short const *,class CGXStyle const &)" (?GetControlText@CGXComboBox@@UAEHAA
VCString@@KKPBGABVCGXStyle@@@Z)
CKGXComboBox.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CGXEditControl::SetValue(unsigned short const *)" (?SetValue@CGXEditControl@@UAEXPBG@Z)
SpellWrapper.obj : error LNK2001: unresolved external symbol "public: __thiscall CGXFont::operator struct tagLOGFONTW const *(void)const " (??BCGXFont@@QBEPBUtagLOGFONTW@@XZ)
CKViewFindReplace.obj : error LNK2001: unresolved external symbol "public: int __thiscall CGXGridCore::FindTextW(int)" (?FindTextW@CGXGridCore@@QAEHH@Z)
CKViewFindReplace.obj : error LNK2001: unresolved external symbol "public: int __thiscall CGXGridCore::FindTextW(unsigned long &,unsigned long &,int)" (?FindTextW@CGXGridCore@@QAEHAAK0H@Z)
D:\CKProjects\SHAKTIOFFICEU\SOCalc\Bin\CKSS : fatal error LNK1120: 50 unresolved externals
Error executing link.exe.
CKSS - 146 error(s), 3 warning(s)
|
|
|
|
|
vkm1984 wrote: ggets.obj : error LNK2005: "unsigned short * __cdecl GetFileString(unsigned short *,int,struct _iobuf *)" (?GetFileString@@YAPAGPAGHPAU_iobuf@@@Z) already defined in StdioFileEx.obj
See here.
vkm1984 wrote: CKSS - 146 error(s), 3 warning(s)
The first 1-2 errors would have sufficed.
"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
|
|
|
|
|
I use the GetFilePath() function to find the path of a file in CFileFind class.
The result it returns i store it in a CString class object
e.g. i get c:\temp\mypic.bmp
i need to input this name to a CxImage class object but for that it needs to have "\\" instead of "\"
but when i use the CString function replace it wont work
i have tried
name.replace("\","\\");
name.replace(CString("\"),CString("\\"));
name.replace('\','\\');
Help needed
|
|
|
|
|
This question indicates you don't understand escaping and the role of backslashes in C string literals - when you enter a string in C/C++ source, the '\' character means 'step over the \ and treat the next character specially'
For instance, if you see \" in a C string literal, it means 'insert a double quote character' - as the double quote character is the string delimiter, this is the only way you can enter a double quote charcter.
This use of '\' means that you need to do something special to insert a '\' character in a string - that something special is '\\'.
So if you see this in some C/C++ code:
const char* path = "c:\\temp\\mypic.bmp";
what this means is that path will be assigned the address of the string c:\temp\mypic.bmp - note that the double backslash characters have been transformed to single backslashes.
So - your path doesn't need to be changed once it's in a CString - you can either assign the string literal version I showed above, or read the version with single backslashes using some form of user input, like this:
std::string path;
std::cin >> path;
I can enter c:\temp\mypic.bmp at the console window and that is what'll be assigned to path - no transformation of backslashes will happen from the command line.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Muhammad Hassan Haider wrote: name.replace("\","\\");
Stuart's answer is likely what you need, but in case not, have you tried:
name.replace("\\", "\\\\");
"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
|
|
|
|
|
Thanks
Now i got the joke why after a single space after \ the code worked. Sorry but me new to visual C++.
This site is indeed very helpful.
regards
HASSAN
|
|
|
|
|
offcourse it's quite good site.... welcome abroad dude
|
|
|
|
|
Hello gentlemen,
I am drawing text directly onto the desktop-I am using hooks.
I am capturing these messages from desktop - WM_ERASEBKGND and WM_PAINT
and this is the drawing function:
DrawText(hdc, pszText, strlen(pszText), &rcWindow, DT_RIGHT);
Everythink is working fine - I see text on the desktop. But if I move with a window(which is currently open/active) the text will get bold. Even if I click on the desktop the text on the desktop will get bold.
But if I hit F5 and the desktop is active - the text is normal.
Can you give me a hind, what I am doing wrong?
Thank you.
|
|
|
|
|
daavena wrote: But if I move with a window(which is currently open/active) the text will get bold. Even if I click on the desktop the text on the desktop will get bold.
But if I hit F5 and the desktop is active - the text is normal.
Can you give me a hind, what I am doing wrong?
This happens if you have a wrong font selected into your dc (the one used for hdc). Also make sure the font object has a valid life time.
|
|
|
|
|
Hi there,
I have not looked at C++ code for 7 years and so need a bit of help with this. I basically need to have a dll installed on a client machine. This dll will be called from another program. The dll will need to open a customed browser (basically I need to change it so that it looks more like an application than a browser), the dll will tell the browser the link to connect to. This will call a PHP script on a server which will then display as a normal site. I need to be able to control the focus of the browser window, so if the user presses the close button, it will hide the window, etc.
I have seen that you can achieve most of this using CHTMLView - my question here is how do you incorporate this into a dll? I am using Microsoft Visual studio to set up my projects.
Also is MFC the correct approach when this will be installed on a client machine, or does this even matter?
I have also looked at using IWebBrowser2, but I'm finding it hard to get clear examples!
As you can see I am in need of direction!
Thanks
|
|
|
|
|
Create an MFC DLL project.
Create a dialog template as a resource in the DLL.
Add the web browser control in the dialog.
Create and export a function in the DLL that will show the dialog and call member functions of the browser control like Navigate2 to execute the PHP script.
Now you can load the DLL from an application and call the exported function to display the dialog or customized web browser as you call it.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
hi all,
i am sorry i dont know weather i could ask this question ornot coz, these r the
thinks always run in my mind.
since we call sizeof as operator but y does we use it as sizeof(type) as a function...
plese if any buddy finds it silly forgive me i even tried with google i didnt find it out..
|
|
|
|
|
well ... technically speaking ... every operator IS a function.
So what's the difference ?
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
emilio_grv wrote: well ... technically speaking ... every operator IS a function
In a language like Haskell, yes. In C or C++, not so much - for example, can you show me how to get the address of +, so I can use it as a functor in an STL algorithm?
To elaborate on the Haskell reference - any operator can be used where a function could be used by surrounding it in parentheses. Similarly, any function can be used as an operator by enclosing it in backticks.
For example:
-- Define an addition function
add x y = x + y
-- Define two functions that add integer lists. The first uses the + operator
-- as a function, the second uses add. They are equivalent.
addLists1 :: [Int] -> [Int] -> [Int]
addLists1 l1 l2 = zipWith (+) l1 l2
addLists2 :: [Int] -> [Int] -> [Int]
addLists2 l1 l2 = zipWith add l1 l2
-- The 4 lines of main are equivalent - they all add 3 and 4 with
-- different combination of operator/function and operator/function syntax.
main = do
print (add 3 4)
print ((+) 3 4)
print (3 `add` 4)
print (3 + 4)
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: can you show me how to get the address of +, so I can use it as a functor in an STL algorithm?
Good point! And that's probably the difference that makes the standard deployers to use different therms.
In theory it shold be &operator+ , but that's ambiguous because of its overloading ...
Thanks for pointing this out.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
Mmm - thinking about it, you *can* use something like that for class/struct types:
struct XX
{
};
XX operator+( XX const&, XX const& ) {}
struct YY
{
};
YY operator+( YY const&, YY const& ) {}
int main()
{
&static_cast<XX( & )( XX const&,XX const& )>(operator+);
&static_cast<YY( & )( YY const&,YY const& )>(operator+);
}
The static_cast effectively specifies which operator+ you want.
But you can't use that for built-in types.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
hawk23reddy wrote: y does we use it as sizeof(type) as a function...
Because that's what the C and C++ Standard's define. To quote the C++ Standard:
The sizeof operator yields the number of bytes in the object representation of its operand. The operand is either an expression, which is not evaluated, or a parenthesized typeid.
And you're better off using parentheses with expressions, as sizeof has higher precedence than most arithmetic operators. Consider this code:
#include <stdio.h>
int main(int argc, char** argv)
{
printf("%d\n", (int)(sizeof 3+4));
printf("%d\n", (int)(sizeof (3+4)));
}
Because sizeof has higher precedence than +, sizeof 3+4 == (sizeof 3) + 4.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
The parenthesis are required if you are requesting the size of a type (e.g., int ). Otherwise, the parenthesis are optional.
"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 thankx for answer
but y for int (or types) the parenthesis is required is there
any conceret reason
|
|
|
|
|
As I said in this reply[^] - because the standard says so...
But it's probably to simplify parsing - lord knows C++ (and to a degree, C) parsers need all the help they can get.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
sizeof is not a function. It is an operator.
Just because parenthesis is used does mean that it is a function.
In that case if , switch , while , return etc. can be called functions.
This is a excerpt from MSDN -
The operand to sizeof can be one of the following:
A type name. To use sizeof with a type name, the name must be enclosed in parentheses.
An expression. When used with an expression, sizeof can be specified with or without the parentheses. The expression is not evaluated.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|