|
thanks nave for your hint but I saw that article before and it did not solve the problem in my case because onIdle never get called. As I said before if any has an idea but updating toolbar button for ocx controls I can send a small project that show the update problem.
I ma awaiting any other hints that may help!
thanks
zak
|
|
|
|
|
ok send me the project..I will try.
id - nave432@yahoo.com
nave
|
|
|
|
|
Sorry nave for this late response due to the end of year vacations.
I just want to let you know that I did send u the project today!
I'll be awaiting your response
Thank's again
Chiheb
|
|
|
|
|
Hi, I don't know if this is the place to post this question, but I assume that people reading this will have enough experience to answer it: is there any way to sniff a tcp loopback connection in windows? The CommView trial is the only one that I've found that works partially, because it doesn't show the FIN messages...
I would really appreciate any hint about this.
Thanks in advance,
Federico
|
|
|
|
|
google found this[^]
Hope it helps
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
Hi,
Assume an small SDI application build using VC++ 8.0 on Vista OS.
If I try to run the exe of this application on another machine without VC++ 8.0 installed in it( assume that it has VC++ 7.0), then it will not launch and display an message box showing that the dll MFC80D.DLL could not be found in location bla.. bla... (3 to 4 paths).
When i try to start the exe, is it possible for me to prompt to the user (using a message box) that the application connot run in this system (as it doesnot have VC++ 8.0 in it.
Put it in simple words, I dont want my application to crash when I start it on another machine without the required dll's.
|
|
|
|
|
You can statically link to MFC and the C runtime so your app doesn't need DLLs.
If your app requires DLLs then they need to be properly installed:
Redistributing Visual C++ Files [^]
wrote: When i try to start the exe, is it possible for me to prompt to the user (using a message box) that the application connot run in this system (as it doesnot have VC++ 8.0 in it.
I don't think so
|
|
|
|
|
wrote: Put it in simple words, I dont want my application to crash when I start it on another machine without the required dll's.
You would likey have to create a (statically-linked) launcher or kickstart application that searches for all required files and if all are found, then launches the real application.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Hello,
I would like to get filenames with neither pathname nor extension on a multiselection files from a CFileDialog. I used GetFileTitle but it gets a NULL String with flag OFN_ALLOWMULTISELECT.
Here is my sample code
if (FileDlg.DoModal ()==IDOK)
{
CStringList csFullpathname, csOnlyName;
POSITION pos = FileDlg.GetStartPosition();
while (pos)
{
//This works and get the full path name
csFullPathname.AddTail(FileDlg.GetNextPathName(pos));
//I get a NULL string
csOnlyName.AddTail(FileDlg.GetFileTitle());
}
}
}
Is there a straightforward solution or Must I parse the full pathname to extract only the file name?
Thnks for your help.
|
|
|
|
|
|
According to the docs, GetFileTitle() doesn't work on multiple selections.
Does this work?
#include <shlwapi.h>
...
if (FileDlg.DoModal ()==IDOK)
{
CStringList csFullpathname, csOnlyName;
POSITION pos = FileDlg.GetStartPosition();
while (pos)
{
CString PathnameStr = FileDlg.GetNextPathName(pos)
csFullPathname.AddTail(PathnameStr);
TCHAR buf[MAX_PATH];
_tcscpy(buf, PathnameStr);
*::PathFindExtension(buf) = _T('\0');
csOnlyName.AddTail(::PathFindFileName(buf));
}
}
|
|
|
|
|
Your answer is full
|
|
|
|
|
It's great!!!!
|
|
|
|
|
Specify your own buffer to the lpstrFile member of the OPENFILENAME structure and examine it when the dialog is [OK]ed.
You may have to derive your own class from CFileDialog to do this.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
OkDockey!
|
|
|
|
|
Hello
if (FileDlg.DoModal ()==IDOK)
{
CString csFname;
POSITION pos = FileDlg.GetStartPosition();
while (pos != NULL)
{
csFname = FileDlg.GetNextPathName(pos);
}
}
}
|
|
|
|
|
What is your point? Or ,? Please use better headings. And ASK your question.
ps. one } to much.
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
Sorry, my question is not clear. My English is not too.
I just would like to get filenames when I select several files from a CFileDialog.
Suppose I have selected C:/myfolder/myfile.txt and C:/myfolder/anotherfile.txt
I would like to get "myfile" and "anotherfile". I tried to use the CFildeDialog member fuction GetFileTitle() but it does not work with multiselection files.
Is there a solution to this problem?
thnks,
|
|
|
|
|
Sorry you posted your question better at the top but ill reply here.
Arris7 wrote:
if (FileDlg.DoModal ()==IDOK)
{
CStringList csFullpathname, csOnlyName;
POSITION pos = FileDlg.GetStartPosition();
while (pos)
{
//This works and get the full path name
csFullPathname.AddTail(FileDlg.GetNextPathName(pos));
//I get a NULL string
csOnlyName.AddTail(FileDlg.GetFileTitle());
}
CFileDialog FileDlg(true,NULL,NULL,OFN_HIDEREADONLY
| OFN_OVERWRITEPROMPT
| OFN_ALLOWMULTISELECT );
if (FileDlg.DoModal ()==IDOK)
{
CString csFileName;
CStringList csOnlyName;
POSITION pos = FileDlg.GetStartPosition();
while (pos)
{
csFileName = FileDlg.GetNextPathName(pos);
csFileName.Delete(0,csFileName.ReverseFind('\\')+1);
int pointpos = csFileName.ReverseFind('.');
csFileName.Delete(pointpos,csFileName.GetLength()-pointpos);
csOnlyName.AddTail(csFileName);
}
}
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
Its not good title for a question.
|
|
|
|
|
hi All ,
I have a project which is depend upon another project . Now i am using the function of another project's .h file into my main project file . If i compile it on VC6 then there is no any type error but if i use VC8 compiler then it is showing following linking error
I have the proper decleration and defination of these function
How to come out this problem
ProgressPage.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall ZipUnzip::~ZipUnzip(void)" (??1ZipUnzip@@UAE@XZ) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT<wchar_t,class strtraitmfc<wchar_t,class="" atl::chtraitscrt<wchar_t=""> > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z)
ProgressPage.obj : error LNK2019: unresolved external symbol "public: unsigned char __thiscall ZipUnzip::RestoreFilesFromZipArchive(class ATL::CStringT<wchar_t,class strtraitmfc<wchar_t,class="" atl::chtraitscrt<wchar_t=""> > >,class ATL::CStringT<wchar_t,class strtraitmfc<wchar_t,class="" atl::chtraitscrt<wchar_t=""> > >,class ATL::CStringT<wchar_t,class strtraitmfc<wchar_t,class="" atl::chtraitscrt<wchar_t=""> > >)" (?RestoreFilesFromZipArchive@ZipUnzip@@QAEEV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@00@Z) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT<wchar_t,class strtraitmfc<wchar_t,class="" atl::chtraitscrt<wchar_t=""> > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z)
ProgressPage.obj : error LNK2019: unresolved external symbol "public: __thiscall ZipUnzip::ZipUnzip(void)" (??0ZipUnzip@@QAE@XZ) referenced in function "public: void __thiscall CProgressPage::TraverseTree(class ATL::CStringT<wchar_t,class strtraitmfc<wchar_t,class="" atl::chtraitscrt<wchar_t=""> > >,struct _TREEITEM *,unsigned int)" (?TraverseTree@CProgressPage@@QAEXV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@PAU_TREEITEM@@I@Z)
.\Release/RebuilderWizard.exe : fatal error LNK1120: 3 unresolved externals
Regards
Navdeep
|
|
|
|
|
It appears that you are pulling in the header for the ZipUnzip class, but not its implementation. You either need to add the .CPP file(s) to your project, or the library that contains the implementation.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
I think you need to add library to your program
|
|
|
|
|
Hi all,
i am trying to reduce the size of main frame window on WM_DISPLAYCHANGE message. As i reduce the size of Main Frame to adjust resolution, the contained objects in Main Frame get cut, will i have to reduce the size of each and every thing in Main Frame window manually or is there any simpler way to do so??
thanx all
Aamir
Aamir Zia
|
|
|
|
|
The child controls will have to have their size and/or layout changed in response to the new resolution.
You will have to do it manually, or use a framework that already supports this, but code will have to be written, regardless.
Be aware that font size changes may also require a re-layout/resizing of controls as well.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|