|
i saw some project don't need include when mylib.h use include in stdafx.h and stdafx.h is set precompiled headerfiles for project setting.
Nho'c Ti`
|
|
|
|
|
Hi People,
I have seen a CCheckStatic control that is a mix between a check box and a group box.
Does any body can tell me where I can find the same type of control but with a RadioButton?
Can anybod show me how can I insert a RadioButton in the GroupBox title?
Best regards.
There is no spoon.
|
|
|
|
|
Two options that come into mind:
1. Make your own GroupBox and do whatever you want there
2. Just throw a radio-button OVER your GroupBox, write the logic to 'connect' them, and you get a radio-group-box-thingy.
|
|
|
|
|
Thanks.
I would add this third option:
3. simply take the source of CCheckStatic and replace BS_CHECKBOX by BS_RADIOBUTTON in the Init() method of the class
There is no spoon.
|
|
|
|
|
Hi all
I have started on a project which has already been goign for a while
and i noticed that the callstack says that the code is breakign in function X, which is called from function Y and so on
much when i try and double click on said line in the callstack i go to an incorrect location in that class's file...is there a method for getting VC.net to resynch properly so it'll take me to the right place?
bryce
---
Publitor, making Pubmed easy.
http://www.sohocode.com/publitor
|
|
|
|
|
Seems your browsing the wrong source (a copy?) or you need to rebuild the project because the binary is not online with the code.
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi all,
I need to pass large data( in the order of MBs ) to DLL for processing. When I pass a reference to such object that holds reference to this data from the application and then, trying to access the member variables from passed object causes crash my application.
Note that, it works fine if
1. I downsize data in object,
2. I make member variables public.
Is there any thing special I need to do when passing and processing large data to DLL?
Hope I am clear about the question.
Please feel free to ask any questions, that would help to understand problem more correctly.
Thanks and regards,
Shrinivas
|
|
|
|
|
1. how many MBs?
2. is this data local memory?
Don't try it, just do it!
|
|
|
|
|
How about using shared memory?
-Mel
|
|
|
|
|
If you have access to the dll sources, you can try changing the dll to export two functions - Func1 to load (and append) the data, and Func2 will process the loaded data. Then break your data into smaller blocks and call Func1 until all data is loaded, then call Func2 to handle them.
...Plug & Pray...
|
|
|
|
|
call Func1 until all data is loaded, then call Func2 to handle them ....
Does this mean that, I am trying to access the data before it is loaded? I am not sure what we mean "Data loaded" here. This may sound primitive question. But I will appreciate further explanation.
Thanks and regards,
Shrinivas
|
|
|
|
|
I think the problem is on passing large amounts of data as parameters. Since you say it works with smaller blocks, what I suggest is break the large data into smaller blocks and call Func1 to pass them to the dll one by one.
Finally when you have passed all the smaller blocks to the dll, call Func2 to process them all together as one.
|
|
|
|
|
Hello
I am intermediate level programmer and i am having trouble in using MsChart componant in VC++. In documentation its written that i can directly use database as datasource if by using grid and ADO. It works perfectly in VB as per net examples and experiences of ppl i talked to. But how to use that feature in VC++ ?
Well i have database like following
Name Value Time
a 10 12-00
a 20 12-05
a 30 12-10
b 40 12-10
b 70 12-06
b 90 01-00
Now what i want to plot is two line graphs of a and b in the same chart.
What i have with me is the query which gives me above data.
Is there any other simple method to do above thing ?
Thanking you in advance
Bhushan
|
|
|
|
|
For compression and encryption experts out there.
Is it wise to apply encrytption algorithm after the compression?
Or there is already some way of achieving both compression and encryption at the same time?
Any inputs are welcome.
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
To encrypt:
Plain data -> compress -> encrypt -> final data
To decrypt:
Final data -> decrypt -> decompress -> original plain data
Never try to compress something encrypted. If the encryption algorithm is any good then the encrypted data shouldn't be compressible, not even by 1%. So always first compress then encrypt.
Best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
yes, both at one time can be possible but is not very wise.
i propose you compress your files and then encrypt it by e.g. AES or BlowFish.
By the way: compression improves the encryption result because it is much more difficult for brute force attacks to identify the decrypted data.
Don't try it, just do it!
|
|
|
|
|
In general compress first. Someone could design an encryption algorythm that also did compressions, but only the very smartest of people should attempt it, and even they should expect to take at least 5 years to design the algorythm. (even then success isn't a for sure thing, many algorythms seem good for 10 years or more until someone figgures out a trivial way to break it!)
|
|
|
|
|
I think the final decision will be based on
- how frequent the compression and encryption functions be called
- the data itself, how secure does it need. And the lifetime of the data validity. Some data is only valid within a time frame, therefore, there is no need to apply complicated encryption that will only waste up the CPU time.
- the size of compressed data needed/acceptable..
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Hi i know this is probably a stupid question but whats the proper syntax for for allocating memory for a 2d array?
i tried
int **array;
array = new int[2][2]
even tried the second line with *array
this wont even compile
so wahts the correct way to do this?
thanks
|
|
|
|
|
The only way I know to do it is to create an array of int* and then assign each element to point to an array.
e.g.
int ** array = new int*[2];
for (int i = 0; i < 2; i++)
{
array[i] = new int[2];
}
|
|
|
|
|
this is definitly the most silly way. for every new an entry in the heap will be created which will decrese the speed of your app dramatically if there are many fields for the array.
Don't try it, just do it!
|
|
|
|
|
Pft. Allocation of the array is not typically the source of speed overhead. Accessing array positions repeatedly is, and your way is no faster than mine. Mine is at least intuitive.
|
|
|
|
|
Why don't you use a vector instead? They are much safer and easier to handle...
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|
|
... and also one dimensional.
|
|
|
|
|
vector < vector < int > > Matrix;
and now you have a 2d array...
A student knows little about a lot.
A professor knows a lot about little.
I know everything about nothing.
|
|
|
|