|
You can use of FindFirstFile/FindNextFile in a loop.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
With MFC, use something like this:
void EnumFilesRecursive()
{
CFileFind ff;
BOOL bWorking = ff.FindFile("d:\\*.*");
while (bWorking == TRUE)
{
bWorking = ff.FindNextFile();
if (ff.IsDirectory())
{
if (ff.IsDots())
continue;
EnumFilesRecursive(ff.GetFilePath());
}
else
{
}
}
return;
}
|
|
|
|
|
Using ADO ,records could be deleted using Delete(adAffectCurrent) or SQL queries.
Which one is more feasible and faster to process ?
|
|
|
|
|
Why don't you make a test?
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]
|
|
|
|
|
As CPallini suggested - benchmarking...
The other factor to consider is this - which is simpler for you? - teh less time and effort you (have to) put in, the more likely the code is correct, and the more time you've got to do other stuff that matters!
|
|
|
|
|
Just adding to Carlo and Stuart's replies,
Usually if something is neatly wrapped up into a class and methods are exposed to you, it would come with a lot of conveniences like ease of use, error checking, etc., (most importantly prevents you from shooting your own foot). On any normal day, this must be a reasonable trade-off with the performance overhead that would impose (should take very little time more than the code what you might write - if written well).
I'd personally go with an existing class and use its methods, but that again depends on the requirements.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
hello sir/madam,
we are developing project on screen capturing and lock mouse and keyboard of client computer in JAVA. we are able to capture multiple client's screens. but in java , we didn't find any code to lock mouse and keyboard. so, i think it is possible to develop that code in C++. so can u give me some code example to lock mouse and keyboard so that i can call that functions of c++ in JAVA through JNI.pleas reply me.please sir/MADAM.................
|
|
|
|
|
You may use ClipCursor()[^] to lock the mouse cursor within a specific rectangle.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
use ANSI key or window API in CPP.
|
|
|
|
|
i don't know window programming in cpp. so can u give me some code example or hint in win 32 in cpp sa that i can call that function in java through jni?
|
|
|
|
|
Hi All
How can i know pen drive is formated through code?i am getting information of connection disconnection.But when pen drive is connected and then format,then how can i know pen drive is formated?Plz help me.
|
|
|
|
|
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
|
|
|
|
|