Search:
Type: Posts; User: zerver
Search:
Search took 0.05 seconds.
-
August 2nd, 2016, 08:24 AM
Intellisense may have been improved in recent versions of Visual Studio, but historically speaking it has been normal for it to fail, at least in more complex projects.
You eventually learn to...
-
April 11th, 2016, 06:55 AM
Try this:
m_ArrData.Add(new char[sizeof(MSG_Packet)]);
memcpy(&msgPacket,m_ArrData.GetAt(0),sizeof(MSG_Packet));
-
March 30th, 2016, 10:16 AM
Also try the memory corruption tools I suggested here:
http://forums.codeguru.com/showthread.php?555017-Memory-corruption-tool-for-MSVC
Typically these tools will fail for large apps due to runaway...
-
March 14th, 2016, 09:25 AM
If you still need a memory corruption tool that works, here is one:
https://msdn.microsoft.com/en-us/library/windows/hardware/ff549561(v=vs.85).aspx
There is another one called DrMemory.
Both...
-
March 1st, 2016, 08:28 AM
I think CreateProcess() is a better choice if you are interested in process handles/threads.
-
March 1st, 2016, 05:18 AM
Hi!
Modifying the actual Notepad behavior would require hooks or similar, and that is an expert topic, not possible to explain in a reasonable amount of text.
However, what you can do is to...
-
January 11th, 2016, 09:09 AM
It is called "OLE Automation" and there are plenty of examples available on the web. C++ examples are a little more scarce than VB and C#.
https://support.microsoft.com/en-us/kb/179706...
-
December 18th, 2015, 06:07 AM
This worked in win 7 and earlier, and I see no reason why it should not work in Win 10:
int timeout;
if(SystemParametersInfo(SPI_GETSCREENSAVETIMEOUT, 0, &timeout, 0))...
-
November 20th, 2015, 05:54 AM
Try visual studio 2015, maybe it comes with an updated CHtmlView.
If that does not help, I would forget about the CHtmlView and try to find a third party replacement.
-
November 4th, 2015, 06:23 AM
I suggest make a driver/system service if it is task manager specifically that you are afraid about. Don't try to make an application that behaves like a virus.
-
October 29th, 2015, 09:03 AM
Then I think you will have to investigate why they claim static linking is not suitable. I've seen this type of statement before and there are valid reasons for it, but could also be nonsense or...
-
October 28th, 2015, 10:47 AM
You download the static libs for the 3p project if you want to link statically, otherwise the dynamic libs :)
No proper libs available? If you have the source of the 3p project compile the lib...
-
October 16th, 2015, 09:28 AM
Hi!
I suspect you already know that "unsigned char" can hold an integer value in the range 0 to 255.
It is possible that your "double" values for some reason are slightly off, e.g....
-
October 12th, 2015, 09:00 AM
for(int i = 0; i <height; i++)
{
m_pOutFileRGB->write(reinterpret_cast<char*>(array_1D), width*bytesPerPixel);
}
Also, this looks fishy. You are writing the same data to file many...
-
October 7th, 2015, 06:35 AM
Hard to say, but maybe you are corrupting the memory with that CopyMemory stuff. After doing so, anything can happen.
The "8" last in CopyMemory also means you assume a specific size of the...
-
October 6th, 2015, 09:00 AM
How do you assign the current date/time?
I'm thinking that your problem might be caused by language settings on the PC, or different versions of the MFC dll files.
Try static link your app with...
-
September 9th, 2015, 09:51 AM
Correct, but if we are going down the optimization route, more importantly you wouldn't call "new" so many times.
Instead make one allocation for each dimension, and the elements would then index...
-
September 8th, 2015, 10:05 AM
Did not test, but something like this:
double **** Allocate4(double **** mat, int k, int l, int m, int n)
{
mat = new double *** [k];
for(int i = 0; i < k; i++) {
mat[i] = new double...
-
September 2nd, 2015, 07:22 AM
Just a guess, maybe it is IOCP-based or something underneath, and your object is already being waited on by those internals....
-
August 31st, 2015, 08:10 AM
Digital Rights Management typically uses encryption techniques to protect the content so that it can only be used by a specific set of users. So, your files would probably end up being encrypted. I...
-
December 19th, 2014, 09:41 AM
Helping you would be a very bad idea, because it appears you did not try on your own to devise a plan how to tackle the problem.
I can provide some links though:...
-
December 19th, 2014, 09:24 AM
You can't even compile binaries for windows 2000 with VS2010.
-
November 28th, 2014, 09:27 AM
13 hours... whoa. An operating system?
I really hope you guys enable the the /MP compiler option.
It used to have a lot of bugs, but multithreaded compilation is pure win with later versions of...
-
October 14th, 2014, 10:17 AM
If the amount of items that you plan to add isn't huge, also consider this as an alternative:
http://stackoverflow.com/questions/1109522/how-to-fast-fill-a-clistctrl-in-c-mfc
-
October 7th, 2014, 04:12 AM
I'm glad it helped.
However, for the special case when you need to protect against concurrent access (i.e. exactly one thread is allowed), consider using a critical section instead of semaphore....
|
Click Here to Expand Forum to Full Width
|