i have a network monitoring program whit a client / server architecture
and every thing work just fine. but an strange behavior happens when my client program is running in background, office document open very slowly when i open them by double clicking on them. this is for both local and network shared documents.
it takes nearly about 20 minutes when i open an office document by doble clicking it but the same document opens immediately when i use the file-open command.
my client program works with tcp to communicate with server.it uses DDE to communicate with browser and some other system task.
No. In MS Office Word - the standard toolbar having "Font Color" button. Whenever we change the color from the Color Palette, the color is being updated as small bar(rectangle) at the bottom of the "Font Color" toolbar icon. We need to implement similiar sort of button.
I am using CSocket class for client server programming. I want to create or start the socket while user login the particular account and close the socket when user logoff from his account.
In MFC, I found OnEndSession and OnQueryEndSeesion which calls when user logoff. Is there any other event or method by which i can trap user login the account or after logoff once again user login in his account.
Waiting for the reply.
you are the only one that give a good "figure out" and you get a 2?
I put a 5 to change it.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
In my program i create a window which show irregular shape draw in OnPaint. While moving using MoveWindow, background is also moving with irregular shape. How to overcome this problem. Please help me!. Thanks in advance
i create a window which show irregular shape draw in OnPaint
If you paint irregular shapes in OnPaint, its not meaning that you are making the window shape irregular. The window will be rectangle. To make your window irregular in shape you have create a region of the shape you wanted and use
This will slove your problem.. Hope this'll help you..
I have a string(not a CString), actually a file path. As an example,
Then in following way get some data.<br />
string FullPath = c:\Test\MyProject\G00062_002_01.srf;<br />
string filePath = FullPath.GetFileTitle(); <br />
string groupID; <br />
string sessionId; <br />
string partID; <br />
groupID = filePath.substr(1, 5); <br />
sessionId = filePath.substr(7, 3); <br />
partID = filePath.substr(11, 2);<br />
So my outputs are 00062, 002, 01 respectively asstring type. I want to add those values in a database asint type. How should I dothis conversion.<br />
Where I'm confusing is that, outputs are in string format. But actually there are some integers.
error C2079: 'stream' uses undefined class 'std::basic_stringstream<_Elem,_Traits,_Alloc>'
error C2440: 'initializing' : cannot convert from 'std::basic_string<_Elem,_Traits,_Ax>' to 'int'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
I would say it is much better than using the C functions (sscanf, atoi, ...) because you are consistent (you used string, so stay with the tools the stl provides you). I don't like the idea of mixing C++ (std::string) with C (atoi, sscanf, ...).
What is this thing with GetFileTitle ? std::string doesn't have such a function so it shouldn't even compile (except if you pasted a wrong piece of code).