|
dzldan wrote: how to get rid of that.
Not "get rid of that" but check your code by debugging to find out what happened before "WinOcc.cpp" line 247 had been executed.
Maxwell Chen
|
|
|
|
|
No idea which guy voted my reply down , but:
1) The information from the original post wan't too much. He did not quote the last line in his code (not "winocc.cpp") before the fired assertion.
Let's assume he hasn't know what the action 'debugging' is.
2) Once an assertion is fired, VC++ prompts for [Debug], [Continue], or [Abort]. Then the original poster should click that [Debug] button to back-trace the cause when he has read that bold words "debugging" and "before" in my previous reply.
Maxwell Chen
|
|
|
|
|
How can I get the ip that visiting my sharefolder
which api will be helpful?
thanks.
|
|
|
|
|
|
|
Hello
Did you know any graphic library (with C++ support) including some functions/methods which allow you to grab a single/multiple frame/frames from vide movie (avi or mpeg for ex.) and then save it as a bitpam or jpeg image??
Did you know any graphic library (with C++ support) including some functions/methods which allow you doing some operations & transofmations on images (bitmaps for ex.) like filtering of motion detection???
I'have heard that such funcions do exist for ex. directly in MS DirectX librarys (components) but i i hardly know abot it.
|
|
|
|
|
see MS's DirectShow for frame capture.
there are dozens of graphics libraries out there that can do transformations and filtering (for example, see the one at the bottom of my post - or see the ones available on CodeProject)
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
code
//---------------------
class One
{
public:
int i0;
};
class Four
{
public:
One ones[4];
int iNum;
};
Four four;
One & o = four[0];
//---------------------
last line above is an error.
I think the error can be solved by define a suitable operator in class Four.
any idea?
.
-- modified at 4:13 Sunday 7th May, 2006
|
|
|
|
|
includeh10 wrote:
One & o = four[0];
what about
One & o = four.ones[0];
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
is syntax the same as solution?
|
|
|
|
|
class Four
{
public:
One ones[4];
int iNum;
One& operator[](int nIndex)
{
return ones[nIndex];
}
};
|
|
|
|
|
right,
that is what I want to know.
thx
;);P
|
|
|
|
|
What do you wish to know? I thought you wanted to know how to write the operator, so I wrote it in that post.
|
|
|
|
|
I am planning to develop TCP/UDP compression utility for Star
topology Network. In short on a windows pc client utility will run, which
will run on top of existing network adaptors. Before sending data to
actual interface it will compress UDP/TCP part of IP packet and forward
it to Central Server for uncompression, then it will further route it.
If anybody how to do it please let me know.
|
|
|
|
|
This[^] might give you some starting points.
We need to graduate from the ridiculous notion that greed is some kind of elixir for capitalism - it's the downfall of capitalism. Self-interest, maybe, but self-interest run amok does not serve anyone. The core value of conscious capitalism is enlightened self-interest.
Patricia Aburdene
|
|
|
|
|
Thanks for the link.
You want to say instead of creating new interface on top of existing using NDIS-Hook filter I can alter(Compressing TCP Payload in Ip packet) packets before sending it to physical interface, vice versa while receving before it goes to network layer I can alter(Decompressing TCP Payload in Packet).
Is it possible to have a small sample code for basics of Firewall-hook & NDIS-hook so that I can have some idea.
|
|
|
|
|
I want to track filesystem changens, ie I want some sort of message when a file is opened, read from, written to, closed, a directory created, etc.
But I don't know the relevant functions in Win32API which do this. What are their names?
Ideally, I'd want a callback which gets called anytime a file/directory is used in some way in one of the directories I specify. Is that possible? If not, what's the name of the functions which a nearest to that functionality?
|
|
|
|
|
You need to implement a filter driver (or some) to hook those drivers of FAT32, NTFS, ... drivers.
Maxwell Chen
|
|
|
|
|
I need a driver? You sure? Things like filemon froms sysinternals don't look like they use drivrs for their functionality, at least I couldn't see any driver intall related imports, especially not for each type of filesystem.
|
|
|
|
|
hfry's solution is easier.
Maxwell Chen
|
|
|
|
|
|
|
maybe it is some helpful to you here[^]
|
|
|
|
|
If I create a thread with code like this:
while ( true ) {
if ( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) ) {
switch ( msg.message ) {
case WM_QUIT : {
return;
}
break;
}
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
Does this automatically create a hidden window (I'd prefer not to have this)? Are there any downsides to doing this? Somewhere I recall reading that this could potentially be problematic.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
|
|
|
|
|
No it doesn't automatically create a window. The first call to PeekMessage()/GetMessage() would automatically create a message queue for the worker thread though.
In your code, you would be polling PeekMessage() in a tight loop if there is no message available on the queue. Why not use GetMessage() instead? It blocks until a message is posted on the queue.
|
|
|
|