|
i had read those kind of pages nad found no solution that is why i posted question on that forum otherwise i cound do himself n tried to do so but result was 0%.
microsoft had not documented what to do inorder to make a service as desktop just link here n there but no to the poin answer.
Tell me what to do in order to make service runnig as desktop except specifying SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS parameter n creating service.
when i click on the service name and then properties and then logon through this code the checkbox "allow service to interact with desktop" was checked i think there it is present still cannot get the callback functions.
-- modified at 6:53 Tuesday 22nd August, 2006
-- modified at 7:37 Tuesday 22nd August, 2006
Tasleem Arif
|
|
|
|
|
Hi friends,
I am working on one Image processing application where I worked on the Histogram equalization, Histogram based Image segmentation and edge detection algorithms.
In my application I need to write one algorithm for object reorganization and object matching (the master Image is stored in to the DB) .
But the practical limitation is the object is of the shape of bullet and is coming in any position on the conveyor and I am grabbing the Image using CCD camera.
I have to compare the Master Image of the bullet I have in DB with the grabbed Image from the conveyor.
Please suggest any algorithm or library if anybody knows for this purpose
Regards,
Dinesh
"Failure is success if we learn from it"
-- modified at 2:41 Tuesday 22nd August, 2006
|
|
|
|
|
hello,
Iam using "CRecordset" class to access SQL database in another PC
through network(PEER to PEER).
Everything works fine when the network connection is active..
When the network connection is breaked and resumed for period of time,
the database cannot be accessed.
how to reconnect the database after the network is resumed???
give me a solution....
"Empty mind is devils workspace"
|
|
|
|
|
hi
how to convert CString to double format??
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
|
<br />
#include stdlib.h<br />
CString str = "123.0045";<br />
double a = atof(str);<br />
|
|
|
|
|
i am using two Command Buttons one for sending another for receiving data can be stored in a file
plese help me
advanced thanks
prasad raju
|
|
|
|
|
USB ports don't work like a standard COM port. Depending of the device you want are connected to, you should have received a driver with this device. Then, take a look at the documention (normaly, supplied with it). Everything should be described there.
Now, if the device connected is a USB-to-RS232 device, then it creates a virtual COM port and you should open this port and work with as a standard COM port.
|
|
|
|
|
Hi,
I have created a Device Independent Driver Code. It is working perfectly. All i need is a Application Launcher program. And that is where my problem starts. I am trying to create the file using the CreateFile Command. And it is always returning false. I have attached the code snippet below. Anyone who knows how to solve the problem please help me.
HANDLE OpenDeviceDriver(LPCTSTR szDriverName)
{
HANDLE hDevice;
TCHAR szFullName[200];
wsprintf(szFullName, "\\\\.\\%s", szDriverName);
hDevice = CreateFile (szFullName,
0,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL
);
if(hDevice == INVALID_HANDLE_VALUE)
{
hDevice = 0;
printf("%x Error %ld\n",hDevice,GetLastError());
}
return hDevice;
}
With Warm Regards
Kenny
|
|
|
|
|
What's the return value from GetLastError() ?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
The result of the GetLastError() is 2
|
|
|
|
|
That's ERROR_FILE_NOT_FOUND
Could it be an ANSI/UNICODE problem?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Might be. Is there any other way through which i can achieve the same? Or can we modify any settings to achieve the above.
-- modified at 4:48 Tuesday 22nd August, 2006
|
|
|
|
|
I'm a bit on thin ice here, but if your program is a Unicode build, you can try to use the wide version of CreateFile, CreateFileW().
Else, convert the string to ANSI and use CreateFile()
Or, do an ANSI build (by removing the UNICODE define(s)).
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
This is one problem. I tried your views and one problem is solved. But still it gives the same error in create file.
Regards
Kenny
|
|
|
|
|
Here is an article that might help you. Check out the information regarding "symbolic link name" especially. Maybe that's your problem?
http://www.ddj.com/dept/windows/184416453[^]
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
how start to a MFC code for delaunay triangulation using 10 points..?
-- modified at 0:34 Tuesday 22nd August, 2006
|
|
|
|
|
Hi, welcome to Code Project. I sure hope you become a member of our little community. If you want people to do your job for you, you would do well to show that you've taken a stab at it yourself. You've emphasised MFC, but what you're asking for is a mathematical operation. Why do you require MFC be used to do this ? What have you already done to try and solve this problem, besides asking us to do it ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I think Codeproject may need to open another section for MATHS
If u can Dream... U can do it
|
|
|
|
|
|
Christian Graus wrote: and he has no idea what he's asking for
|
|
|
|
|
what is wrong with u???
dont ever underestimate people!
|
|
|
|
|
man, you're on codeproject since today...
i don't think you have something to say against me on that board, especially when looking at your posts.
|
|
|
|
|
do u mean a maths operation cannot deal with MFC???
|
|
|
|
|
There are no specific MFC classes that deal with the maths operations.
That doesn't mean you cannot use MFC in an application that uses MFC to produce the GUI for such an application.
You could try reading Sedgwick's C++ Algorithms books, or any work on computational geometry in C or C++, which might help.
Are you looking for code that will help to draw them, or calculate them, for example?
Aside:
There are a lot of people posting on CP whose idea of a good question is:
I have to do X. Please send me code.
There are several things wrong with this approach. Firstly, getting other people to do work for you isn't as helpful when learning to program. Sure, it's good to look at other people's code to see how they approached the same (or a similar) problem.
Secondly, most people here who answer posts are not employed by CP, and provide help for free, because they are generous souls, so antagonising them doesn't get you anywhere. If someone complains about my posts, for instance, I tend to ignore further posts and questions from them. Firm, but fair, in my opinion; if you cannot be bothered to retain that thin veneer of politeness towards me, why should I care what happens to you?
Thirdly, and probably most importantly, by attempting any problem yourself, you should be learning more about it; by highlighting the areas that you are having difficulty with, rather than refusing to attempt it in the first place, you are much more likely to get positive responses, which will probably help you clear up any confusion or difficulty.
Steve S
Developer for hire
|
|
|
|