|
Ryan Binns wrote:
Video editing would easily use this much memory, as would high-resolution image processing, high-quality audio processing (studio work), just about any military algorithms (radar, sonar etc...).
They're pretty specialised applications, but they certainly exist
I don't doubt it. It just seems to me that when talking about THAT much memory (at least on a standard PC), that you would generally get better performance by figuring out ways to not use so much memory at once.
I guess that could be tough to do in some cases. I wonder how much memory is alloc'd at one time for today's high end video games? It's gotta be getting pretty high.
|
|
|
|
|
David Kentley wrote:
I wonder how much memory is alloc'd at one time for today's high end video games?
I <marquee behavior="alternate" height="17" width="54" direction="up" scrollamount="1" scrolldelay="5" truespeed=""><marquee behavior="alternate" height="12" width="54" direction="left" scrollamount="1" scrolldelay="3" truespeed="">shudder to think...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
hello ppl
what i am trying to do here is find out what functions are available for a particular DLL for example most of the API function are contained in USER32.DLL file we can write code for accessing functions like SendInput and SetLayeredWindowAttributes that is we can explicitly link the DLL file and get those functions to work now what i want to do it there is a third party DLL that i would like to explicitly link now the problem is with USER32.dll i am aware of the functions their return types and their parameters but such is not the case with a third party DLL how do i know what functions this DLL contains the parameters the return type and everything any help would be appreciated
Regards
Ahmed Ajmal
|
|
|
|
|
You can't get parameter and return value information from a DLL. You'll need third-party-supplied information to know that. You can get a list of the functions it exports by examining the export table, but you can't get any information about them, other than their name.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
yeah ryan actually i tried the DEPENDS tool that installs with the Visual Studio and yes i did find out the functions their names but not any other imformation and what do u mean by EXPORT TABLE how do i use that
Ahmed Ajmal
|
|
|
|
|
Cyberizen wrote:
what do u mean by EXPORT TABLE how do i use that
A DLL's export table is the list of functions that it exports. Read about it in more detail on MSDN.
|
|
|
|
|
The export table in the DLL lists all the functions that the DLL exports. This is what the DEPENDS tool examines, so you can't get more than what DEPENDS gives you. It doesn't give parameters or return type.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
I want to start the same routine which runs if I press the searchbutton when I press enter on my keyboard. I think that I can realize that with the function OnChar(UINT nChar, UNINT nRepCnt, UINT nFlags) but it doesn't work.
OnChar(UINT nChar, UNINT nRepCnt, UINT nFlags)
{
if(nChar ==VK_RETURN)
{
OnSearch();
}
}
Please give me a tip if you know something. I am a beginner.
Julia
|
|
|
|
|
You should override PretranslateMessage of view/dialog
If you button is focused and < Enter > is pressed, call your routine.
"...hasn't really been well accepted as far as the ratings tell us so far " - Nishant S
|
|
|
|
|
Hello all
I wonder, does anyone knows the limit for of threads that the Os is allowing for one application to open ?
10x'
|
|
|
|
|
I believe you can have as many threads as the memory and CPU can tolerate. I once had more than 100 threads in a single test application running on Windows NT 4.0. But if you have too many threads, some of them will starve (not gettting any share of CPU to do anything) and the memory usage goes up quickly.
Click here to see my articles and software tools
|
|
|
|
|
The practical limit is far below the physical limit. (Except in rare cases, I question using more than a few dozen threads and for the exceptions, more than a few hundred [and for those few cases, the code could, and should, have been rewritten to use I/O Completion ports].)
|
|
|
|
|
hi all
does ne1 know the best function to use to detect
if a string contains Alpha characters
so if i had CString mystring = "55545kjfk"
would return true
or if i had CString mystring = "55545"
would return false
thanks all
si
|
|
|
|
|
write an own algorithm, it's the easiest way i think
Don't try it, just do it!
|
|
|
|
|
in <ctype.h> (CRT) look for the functions :
::isalpha
::isalnum
::isdigit
::isxdigit
|
|
|
|
|
bool containsAlphaCharacters(CString str)
{
str.MakeLower();
return(str.FindOneOf(_T("abcdefghijklmnopqrstuvwxyz")) >= 0);
} or
#include <ctype.h>
bool containsAlphaCharacters(CString str)
{
for(int i=0; i<str.GetLength(); i++)
{
if(_istalpha(str[i]))
return true;
}
return false;
} Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
cheers ryan,
nice one
|
|
|
|
|
You're welcome
If you feel up to it, do a bit of a speed comparison and let me know which one is quicker . They're probably about the same, but the first one will probably be slightly slower.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
halo,
I have a application which has two list box and my plan is that i must retrieve the data in the list box and somehow save it (perhaps in a integer variable) and if the data in both the liat boxes are same then there must be a error message displayed.. I tried out the following:
void Cdlg3Dlg::OnCamdone()
{
int i=0;
CListBox* m_ptele;
CListBox* m_pls1;
if (m_ptele->GetItemData(i)==m_pls1->GetItemData(i))
{ AfxMessageBox("Both boxes have same data");
}
}
but when i run the program i get the microsoft error box problem:
The xxxxxx application has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle......and so on.
i want to know whether it is the problem with my program..and if it is so can someone help me out.
Thanks,
Deepak Samuel
|
|
|
|
|
read LB_GETITEMDATA in msdn... it's the wrong function u chose!
use GetText member function!
Don't try it, just do it!
|
|
|
|
|
One solution is GetItemText() as the other member has mentioned.
Kuphryn
|
|
|
|
|
Deepak Samuel wrote:
CListBox* m_ptele;
CListBox* m_pls1;
These are uninitialized pointers.
|
|
|
|
|
Hi,
I would like to know if I can add few methods to class Clist.
Ehsan Behboudi
|
|
|
|
|
create a class derived from CList and put your methods there...
Don't try it, just do it!
|
|
|
|
|
i want to share the member variables and function between the various classes.what all methods can i use to achieve it?also, how do i use a friend function ?
Every problem has a solution!
|
|
|
|