|
Are you referring to the hashing that goes on automatically in the cache?
|
|
|
|
|
Yes,I am referring to the cache.
|
|
|
|
|
Well that clears it up - NOT
|
|
|
|
|
My idea is read from a file and load in to memory as my app prefers frequent searching.
I am doing it by taking CMapStringToString.
What my question "Is cache memory different from storing in a hash table like CMapStringToString ?
|
|
|
|
|
But then the question is, what "cache memory" are you refering to? MFC or C++ in general don't implement a cache. Are you refering to a hardware cache? Internet cache?
--
Joel Lucsy
|
|
|
|
|
hello all,
Is there any Win32 API avaliable to add a new button to IE toolbar. And i had previously checked the Codeprojects' WTL Toolbands and deskbands.
if there is any api plz say. it will be greatfull.
Thank u.
ComputerNewton
|
|
|
|
|
I believe what you are looking for is a BHO, Browser Helper Object. This is implemented using COM. So, no, no direct Win32 API.
--
Joel Lucsy
|
|
|
|
|
hello all,
As i had searched to add a button to IE toolbar i got some manual in MSDN, which has done through registry. I did the same as said. But i didnt get it for my button. What is the probelm there?.
Here is the link...
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/ext/tutorials/button.asp
Plz check my problem there. or can any one say me the procedure that was given there once plz.
ComputerNewton
|
|
|
|
|
Hello,
I need to replace Windows Desktop folder with my own.
I can change it by writing new values in the
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
and
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders registry keys.
Then, if I will kill explorer.exe process - the desktop folder will change. But how can I do it without killing explorer.exe?
|
|
|
|
|
I'm not sure if you really can. I suppose explorer.exe will read the path from the registry when you run it and then store it in internals variables, so 2 ways... find and change these variables or restart the explorer.
Don't try it, just do it!
|
|
|
|
|
Hi guys
Taking a look in resource.h I've seen that.
#define IDC_SG_MIN11 1143
#define IDC_P101 1143
This happens in a lot of resources (resources with the same number).
That could be a problem?
It's better to have each resource with his own and unique number?
Best Regards
Doc
|
|
|
|
|
This plagues me as well.
Check out this utility for checking and fixing duplicate resource ids >
ResOrg[^]
I Dream of Absolute Zero
|
|
|
|
|
In my experience this duplication occurs whenever I copy & paste controls.
I've spent many an hour over the years rectifying such duplicates!
Ant.
|
|
|
|
|
Then you recommend me to change it, isn't it?
I haven't problems compiling but somke guys advised me that in W98 a non valid resource or something like this error happened, it's possible due to this?
Thanks
Doc
|
|
|
|
|
Yes I recommend that you change it.
Note: Remember to change the _APS_NEXT_CONTROL_VALUE at the end of the resource.h file also if you do it by hand otherwise subsequent controls will have duplicates.
Ant.
|
|
|
|
|
delete one of the resource and then add it, any problems due to duplication will go away...
but are you sure both where IDC_xxx
it is possible to have
IDC_xx 2233
IDI_xx 2233
and it is ok.
|
|
|
|
|
I need to programatically save some image displayed in WebBrowser control to some file, or get the image's data into memory.
How to do this ? (IHTMLImgElement offers only functions for getting image's size and creation date, but I could not find any function for getting image's data or it's name in temporary internet files)
Any ideas ?
Thank you !
rrrado
|
|
|
|
|
Your question (the same one posted a while ago...) inspired me a little. Using samples from CodeProject,
and MSDN documentation, I've glued together an IE toolbar with "Grab Pictures", and "Grab pointed to
Pictures" functions.
Once you have a IHTMLImgElement , just use its get_src method. Then use URLDownloadToFile , or URLOpenStream
if you are more masochistic...
Iain.
|
|
|
|
|
Hello, thank you for reply, but unfortunately image I need to save is not cached, is dynamically created and is different every time I reload the page or download it again
rrrado
|
|
|
|
|
I want to post a message from a Global Function to a UI thread.who can tell me ,how can i get the thread pointer or id in the Global Function?
void CALLBACK Timer2(HWND hwnd,UINT uMsg,UINT idEvent,DWORD dwTime)
{
//::PostThreadMessage(WM_TIMEUP,0,2);
}
class CServiceWnd : public CWinThread
{
............
}
ON_THREAD_MESSAGE(WM_TIMEUP,TimerProc)
afx_msg void CServiceWnd::TimerProc(WPARAM wParam, LPARAM lParam)
{
..............
}
|
|
|
|
|
You can get a pointer to your current thread by calling AfxGetThread . If you need a different thread, you'll need to store a pointer to it somewhere.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Problem: Convert the Global variables into Class Variables
A good example is the variable ‘OurString’ which is declared in
file oam.var in the following way:
TCHAR OurString[260];
It is used in 209 different places according to “Find in Files”.
There are two problems with those global variables:
1) they might break if we start using multiple threads
2) the code does not typically check if there is enough space for the stuff that is put to those variables.
Can U give some idea for implementation?
dadsadasd
|
|
|
|
|
|
hi...could anyone check the codings below? thanks.
#include <iostream>
#include <iomanip>
using namespace std;
class Bus
{
int number;
char startDepot[30];
char endDepot[30];
int departureTime;
public:
void update();
void display();
};
void Bus::update()
{
cout << "Enter the bus number (eg 83): ";
cin >> number;
cin.ignore(80, '\n');
cout << "Enter the start depot (eg Sengkang): ";
cin.getline(startDepot, 30, '\n');
cout << "Enter the end depot (eg Punggol): ";
cin.getline(endDepot, 30, '\n');
cout << "Enter the departure time (eg 1605): ";
cin >> departureTime;
cin.ignore(80, '\n');
}
void Bus::display()
{
cout << "Bus number : " << setw(3) << setfill('0') << number << endl;
cout << "Start depot : " << startDepot << endl;
cout << "End depot : " << endDepot << endl;
cout << "Departure time : " << setw(4) << setfill('0') << departureTime << endl;;
}
int main()
{
int count;
Bus *b;
cout << "How many buses are there: ";
cin >> count;
b = new Bus[count];
char choice;
int num;
do
{
cout << "u. Update\n";
cout << "d. Display\n";
cout << "e. Exit\n";
cout << "enter selection: ";
cin >> choice;
switch(choice)
{
case 'u' :
cout << "enter bus number (1-" << count << "): ";
cin >> num;
b[num-1].update();
break;
case 'd' :
cout << "enter bus number (1-" << count << "): ";
cin >> num;
b[num-1].display();
break;
}
} while (choice != 'e');
delete [] b;
return 0;
|
|
|
|
|
so...?????
what is your question ?
TOXCCT >>> GEII power
|
|
|
|