|
Are the two files inside the same folder? If they are not then you must provide a path:
#include "..\..\Centroids.h".
Hope this helps..
|
|
|
|
|
|
Have you seen this article. It's about ISensNetwork , but the steps are identical.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thank you very much for reply.
Now I got the right point.
I have seen this article before posting this thread but as explained in this article it is about ATL COM Application and also in that they have used ATL Simple Object and also Implement Interface.
I tried to include ATL Object in my project but it does allow ATL support to my Application because my application in simple Empty project( I hope ATL object Allows only to MFC PRoject And full ATL support project).SO, now how can I use this Interface into my project.
Is there any other alternative to use SENS And Event System??
Thanks.
Ashish Bhatt,
System Developer,
Avinashi System Pvt. Ltd.
|
|
|
|
|
Hi
In my VC 6.0 application , i get local host name , but can't get local ip address. Give me suggestion or code to get local ip address .Below given the code that retrieve the host name.
#include "winsock2.h"
void Sampleappl::GetLocalIpaddress()
{ WSADATA ws;
int recws=WSAStartup(MAKEWORD(2,2),&ws);
if(recws!=NOERROR)
{
MessageBox(NULL,"WSAStartUp Error","ERROR",MB_OK);
return 0;
}
char ipadd[15];
gethostname(ipadd,sizeof(ipadd));
MessageBox(NULL,ipadd,"Local ip address",MB_OK);
return;
}
regards
shakumar
shakumar
|
|
|
|
|
After calling gethostname() , call gethostbyname() to get the IP address.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Does anyone know how I can upgrade dbghelp.dll?
---
Yours Truly, The One and Only!
web: devmentor.org
Design, Code, Test, Deploy
|
|
|
|
|
I've found out that it seems one cannot replace or upgrade the dbghelp.dll that comes installed with the system. If anyone knows otherwise, please let me know!
---
Yours Truly, The One and Only!
web: devmentor.org
Design, Code, Test, Deploy
|
|
|
|
|
I am attempting to find how many rows of text will print per page from a rich edit control in a dialog box. Is there a method for finding the actual height of a text line? Neither the LOGFONT nor the CHARFORMAT nor the TEXTMETRIC structures provide this info accurately.
Doug C
|
|
|
|
|
|
Since rich edit text can have different formatting, the number of
lines per page can vary.
The only reliable way I know is to format the text for the device it
will be printed on, then calculate how many rows.
With a combination of some of the code here[^] and the EM_EXLINEFROMCHAR
message, you should be able to calculate the number of lines per page.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
A moved rectangle how does secure to the const size of itself. Forexample CRect(10,10); It must secure to these sizes when it go move forward. Please help with MFC.
Bitte tun Sie mir nicht antworten, wenn Sie nicht wissen, die Ursache des Problems wirklich oder nur als Antwort. Was ist das? Dies ist das Buch sitzen.
|
|
|
|
|
CRect rect(10, 10, 90, 90);
rect.MoveToXY(3, 5);
Maxwell Chen
|
|
|
|
|
Hakan D wrote: CRect(10,10);
Where did you find such a contructor?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Please, don't take that CRect(10,10); into consideration. I has just to mean that CRect(0,0,10,10); is it okay?
Bitte tun Sie mir nicht antworten, wenn Sie nicht wissen, die Ursache des Problems wirklich oder nur als Antwort. Was ist das? Dies ist das Buch sitzen.
|
|
|
|
|
It is OK. Now: What do you want to do with it?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
I am at start a game programming. This will be a F16 dog-fight glass simulate game.
modified 13-Mar-13 6:06am.
|
|
|
|
|
Very good.
Anyway, I was asking about your original post. Do you have to move the rectagle while keeping fixed its dimensions?
If the answer is yes then check out Maxwell Chen reply http://www.codeproject.com/script/Forums/View.aspx?fid=1647&msg=2378427[^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Yes. Thank for your help.
Bitte tun Sie mir nicht antworten, wenn Sie nicht wissen, die Ursache des Problems wirklich oder nur als Antwort. Was ist das? Dies ist das Buch sitzen.
|
|
|
|
|
Is there any way to control the unlock order when multiple threads have a CCriticalSection locked? I have a situation where multiple threads will be waiting on a lock, but I when it becomes available I would like the 'oldest' thread to unlock rather than a random thread.
I think I will need to roll my own locking scheme that takes the lock sequence into account, but I thought it was worth asking.
|
|
|
|
|
Based on your stated requirements it sounds like you could use a thread pool with a FIFO queue
|
|
|
|
|
Release roder for threads is decidedly not controllable. There's a fun statement of "the scheduler will be fair to all threads" (of the highest priority that can run), in MSDN.
Rob Caldecott wrote: I think I will need to roll my own locking scheme that takes the lock sequence into account
Ahhh, writng your own scheduler
|
|
|
|
|
No it sounds like what you need is a shared request queue. Each thread places an item on the queue containing an Event handle then waits on that handle, a worker thread takes each queue item in turn and sets the associated event. If you block the worker thread then all the others queue up as and when they need to but get released in order of oldest (longest waiting) first. The queue will need its own locking of course. If you're deparate I have some multi-threaded subscriber queue code knocking around (every subscribing thread gets to process every item exactly once) It's not very similar or very simple so you might be better looking elsewhere for examples. I'm disappearing for the weekend very shortly as well.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
I need to build an application that views two avi files side by side, similar to comparing a person's golf swing in the left frame with an expert's swing in the right frame. That isn't the application, just an analogy. I need to control the speed, slow motion/normal, pause, reverse, all the normal stuff. I'm probably searching using the wrong word or phrase, but I haven't found much of anything useful other than MCIWnd. I expected to find a long list of activeX controls, but haven't. Can anyone suggest something?
Thanks
Danny
|
|
|
|