|
Thanks.
I had thought of your first method, but I think certain languages use similar words so the accuracy wouldn't be that good especially for chat as maybe only one of the words I am searching for would be used per chat line.
Haven't had much luck on the web either
|
|
|
|
|
Hello EB
InternetreadFile reads page in cache so i can't get updated content. How to make it to read file each time from server?
Thanks And Reagrds
Amit
|
|
|
|
|
specify INTERNET_FLAG_RELOAD flag to InternetOpenUrl function.
Forces a download of the requested file, object, or directory listing from the origin server, not from the cache.
|
|
|
|
|
Hi everyone!! I wna knw hw to create an OpenGL window in an MFC dialog. Ive got a code from Steinsoft.net but it doesnt allow me to display a terrain inside my window. It only allows for simple objects to be displayed.
PLEASE HELP!!
Aman N
|
|
|
|
|
|
I'm confused of frequently change openmode of database via ado-recordset,
the attitude of locktype also doesn't take function (m_pRecordset->LockType=..),m_pRecordset->AddNew() take a runtime error.how to solve this problem without chage the open statement in initializing(Read only when initial open)?
Lee
|
|
|
|
|
why not you use a command object _CommandPtr and try *Executing* the insert statement? instead of using m_pRecordset->Addnew()?
VuNic
|
|
|
|
|
Hi,
I use the FindFile(sCurrImgPath) and FindNextFile functions to search for files of the format file*.x (where the * is a number) in a directory. The problem is that these functions return the file names in the following order (for example):
file1.x
file10.x
file11.x
file2.x
file20.x
file3.x etc...
and I need the files in the order:
file1.x
file2.x
file3.x
file10.x
file20.x etc...
How can I do this?
-- modified at 2:21 Thursday 9th March, 2006
|
|
|
|
|
That is how it will be because when comparing strings file10 is less than file2 so it comes up in the order.
If you have file numbering like file01 , file02 , you can avoid these problems. But you cannot expect this.
Nibu thomas
Software Developer
|
|
|
|
|
Nibu thomas wrote: If you have file numbering like file01, file02, you can avoid these problems. But you cannot expect this.
I don't have the files numbered this way, and I can't change their names...
is there a way to sort the names of the files after I get all of the file names?
|
|
|
|
|
CComboBox m_Combo;
m_Combo.Create(WS_CHILD,CRect(0,0,0,0),this,1);
m_Combo.Dir(DDL_ARCHIVE|DDL_DIRECTORY, _T("*.*"));
and you can inactive sort in the propery page
-- modified at 3:20 Thursday 9th March, 2006
|
|
|
|
|
I don't understand what you meant...
did you mean to add to my project a combo box that will list the files, and then use it's sort property to sort the names?
|
|
|
|
|
CComboBox m_Combo;
CString m_str;
m_Combo.Create(WS_CHILD,CRect(0,0,0,0),this,1);
m_Combo.Dir(DDL_ARCHIVE, _T("*.*"));
for (int i=0;i
|
|
|
|
|
a combo box is a displaying matter.
what the guy does is a background treatment, typically for a controler...
moreover, you are using a MFC class when no way the guy said that it was using MFC...
very bad method so.
|
|
|
|
|
2 possibilities :
if you can rename the files, change file1.x , file2.x , to file01.x , file02.x , etc...
if you're not allowed to change the file names, then firstly search for "file?.x" files, then when you've got them, search for "file??.x" ...
|
|
|
|
|
I can't rename the files... so I'll have to go for the second possibility..
but FindFile doesn't accept question marks, it accepts * to signify a wild card.
so when I write file*.x and file **.x, it gives the same result...
Is there a way to get all of the files that have one number after the file, then find all the files that have two numbers after the file, etc.?
|
|
|
|
|
Why don't you get the files in a linked list and then sort the list? In that case you can sort the list in any type of order you need. Basically, the suggested solution with the combobox does the same, but you can keep it all in your own hands just as easily. Suggestion for a linked list:
typedef struct _st_list ST_LIST;
struct_st_list
{
CString m_strFilename;
ST_LIST * m_Next;
};
ST_LIST * MyList = (ST_LIST *)NULL;
ST_LIST * NewList (void)
{
ST_LIST *r, *l;
r = new ST_LIST;
r->m_Next = (ST_LIST *)NULL;
if ((l = MyList) == (ST_LIST *)NULL)
MyList = r;
else
{
while (l->m_Next != (ST_LIST *)NULL)
l = l->m_Next;
l->m_Next = r;
}
return r;
}
William
|
|
|
|
|
|
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case WM_MYMESSAGE:
//////////////////////////////
// click cancel button to do some thing and destory the window, if here i use SendMessage or DestoryWindow, what happend?
PostMessage(hWnd, WM_COMMAND, MAKELPARAM(IDCANCEL, BN_CLICKED), hWndCancel);
////////////////////////////
break;
}
return CallWindowProc(wpPrev, hWnd, uMsg, wParam, lParam);
}
|
|
|
|
|
Dear Visual C++ friends,
For example, there are some files with extension .doc in c:\test directory. How can I write code to find those files and get file names?
Once I get those file names I'll list them in a combo box.
Regards,
Joy Anne
|
|
|
|
|
|
|
|
I am programming item with windows authentication . Our client may be working in winxp or win2000. Client must input username and password .So I use CredUIPromptForCredentials() in winxp. But this function is not supported in win2000. I have not found replaced function. I find that "Enter Network Password" dialogbox in win2000 is fit to me .But I don't know how to call this dialogbox and how to get user name,password?
Could you give me some advice?
Thanks
|
|
|
|
|
The WNetConnectionDialog function starts a general browsing dialog box for connecting to network resources. The function requires a handle to the owner window for the dialog box.
|
|
|
|