|
You need to start by figuring out what algorithm you want/need to use. Huffman, LZW ... Then you can search this site for examples. Then if you do not find what you need there is always google.
John
|
|
|
|
|
|
why we use vc++ to programing multimedia player
|
|
|
|
|
(VC6.0, Excel 2000)
Range range;
Borders borders;
range = sheet.GetRange(COleVariant("A1"), COleVariant("L6"));
borders = range.GetBorders();
borders.SetLineStyle(COleVariant((short)1));
This sample is applied to all cells ..
but I want only outline
plese help me.... I want reference source...
|
|
|
|
|
i want to program a dialog-based program,which contains a CListCtrl ,i want the CListCtrl to act like MS ExPlorer
but i don't know how to do it.
someone can tell me how to do it ,or tell me this is about what subject,best some relative articles ?
thanks
|
|
|
|
|
|
|
I need to convert CString to binary and back. Does anyone know how?
|
|
|
|
|
What do you mean by "convert a CString to binary and back"?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
CString: "Hello there" -> Binary: 1001110100101001.....
I want to take each bit of that and put it in some image pixels for watermarking..
|
|
|
|
|
I want to hook some APIs. I has some questions when reading the article on codeproject website
http://www.codeproject.com/dll/apihijack.asp[^]
The sample in that article is to hook DirectDrawCreate function in DDRAW.dll, and change it with his own function in his own dll. I am just wondering why he set a global WH_CBT hook but with a callback function doing nothing (just do CallNextHookEx).
When I made some mouse hook or keyborad hook, I always did my work in the callback function, so I am confused that why we changed when do API hooking.
Thanks in advance!
|
|
|
|
|
I used SetDocumentHtml to set my html code to the HtmlEditCtrl.
but It's no use.
Why was this happen?
How can I set html document to htmleditctrl??
Thank you very much!!!
|
|
|
|
|
I feel you got to check CHtmlEditCtrlBase::SetDesignMode().
suhredayan There is no spoon.
|
|
|
|
|
Thank you!
Yes , I got a way to do this.
But,when I set html document for htmleditctrl,the resources(jpg,gif etc.) can't be showed .
Only text can be showed.
what's the matter??
|
|
|
|
|
I am a beginner taking my first programming class so answer at my level I have a struct
struct stats
{
int score;
int frequency;
}
stats gradebook[10];
now I want to read this info into the array of structs from a file called scores.txt how do I set up the function getscores and read in from the file
|
|
|
|
|
See fopen() , fscanf() and fclose() .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
hello friends
i want to use some functions in my project please tell me from which functions i can get these value in LAN
cpu usage
available network bandwidth
network packets per second
memory usage
thanx
bye
|
|
|
|
|
hiho@ll
a question to all hardcore (windows) C++ hackers
if i have a few thousand (or many many more) objects, how could i have access to each object indivdually and (extremly) very fast?
i thought about using collections but i thinkg that it would be very slow if there are a many 10000 objects which i need to access
and how i have access to all of them without waiting for a thread to finish
i mean how could i synchronize the access to those objects if i'm running many threads, but i don't want a thread to wait for it's information because it would slow down?
thx@ll
|
|
|
|
|
Use hash! It's as short as that. There are many classes available, from Micro$oft, Boost, etc.. Those are fast enough to handle hundreds of thousands entries.
Greetz, pat le hashed :->
|
|
|
|
|
|
hiho@ll
i'm thinking about a project, which would need a few thousands threads running and every thread should be accessible everytime (i think about a vector or something else in the core)
so my question, what is the maximum number of threads/Objects windows/VC can produce/handle?
am i right that, it should be depeding on how much RAM i have and not on somthing different?
thx@ll
|
|
|
|
|
How is the vector related to the multiple threads?
Are you trying to access the same vector from multiple threads?
Top ten member of C++ Expert Exchange.
http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/
|
|
|
|
|
hiho
i want to try to use the vector to hold my references to my other objects
but i think i build a core, and every vector who needs something must ask the core and not the other way
but this would be the little difficultier way
and i don't know if i could do this all, because windows only allows a maximum of 18.000 handles for the appz, i read from the KBReport i got in the second answer
my questions are answered
thx@all
|
|
|
|
|
|
To get the unsigned _int64 value between two bits in a LONGLONG,I wrote:
unsigned _int64 CMyBitsDlg::RevealBitsInLL(LONGLONG theNb,unsigned int lowBit,unsigned int highBit)
{
unsigned _int64 valueOfBits=0;
/// Get the string as zero and 1's
CString mystring=ConvertLLtoBin(theNb);
for(unsigned int n=63-highBit; n<=63-lowBit; n++)
{ int theChar=mystring.GetAt(n); //it is either 1 or 0
valueOfBits +=(unsigned _int64)((unsigned int)theChar*pow(2,n));
}
return valueOfBits;
}
/////////////////////////////
Now,if I give a hex of :
FFFFFFFFFFFFFF (16 Fs)
and a low bit =0,a high bit =63,
I am getting:
14,123,288,431,433,875,407
instead of the correct answer which is:
18,446,744,073,709,551,615
What am I doin wrong ?
Thanks for any help.
|
|
|
|