|
See QueryServiceStatusEx()
Bikram Singh
|
|
|
|
|
Alok the programmer wrote:
nope that i don't want i don't want to show dialog noe model nor modeless.
is any way to recieve window message without showing the modelor modelless dialog boxes.
There isn't a way to receive window messages without having the window created. The most simple way of doing this is to create the window as a modeless dialog and then do a ShowWindow(SW_HIDE) straight after creation. I use hidden windows in lots of apps for processing Windows and custom messages.
Michael
CP Blog [^]
|
|
|
|
|
let me explain my problem.
i am creating the window service(which is desktop interractive).i am also created Winlogon dll which notify me that some user is logged on or logged on the Work Station.
now problem arise to comuunicate between these two services i am using RegisterWindowMessage to pass information.
here the problem arise the Service can't receive a until dialog is displayed in case of modol dialog
and the in case of modelless dialog ,from wher i will get the desktop window pointer,without that it will not going to listen my registered message.
i think i have explained my problem
thanks,now any suggesstion
ps(socket create some problem in winlogon,so i can't use socket to sned or recieve message)
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Long post. I dont quite understand exactly what u need. But, if all you want to do is recv a message in a service, from another of your services', you dont need to create a window or dialog.
One service will use PostThreadMessage() to post a message, and another will simply run a thread with a GetMessage() loop.
Bikram Singh
|
|
|
|
|
i think you havn't read whole discussion.
any way thanks for reply.
basically you are correct but problem ramain the same where to produce thread id.
thanks for replyi owe you very much
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Frankly, I have not read the whole discussion. But from what I gather, all u need is the service's proc id, which the func i mentioned, will give u.
Dont be afraid to share ur code with others, Alok. You are still in a nascent stage, so dont try and protect your "wonderful" code at this stage. You have a lot to learn.
I see your english is not too good, well, I am sure i can give u a solution to your problem if u do speak in Hindi.
But in any case, It is wonderful to see you trying. Most people are afradi of admitting their lack of english knowledge, so kudos to you !!
Besides, remember that your approach to the problem is not the best one always ! Always attempt to present your porblem, rather than ask advice on what you *think* is the solution to your problem! Remember that always when posting to message boards !!
ciao!
Bikram Singh
|
|
|
|
|
bikram singh wrote:
I see your english is not too good, well, I am sure i can give u a solution to your problem if u do speak in Hindi.
helloo there,very very thank for advice.i will try to improve my english.basically i am very weak at language.plese forgive me for that.if i write hinglish here , may be our fellow programmer fail to understand.that why i am using english atleast they got the idea of my problem rather then going Null
bikram singh wrote:
Dont be afraid to share ur code with others, Alok. You are still in a nascent stage, so dont try and protect your "wonderful" code at this stage
who said i am afraid of sharing my code.
i am almost opensourec programmer and i have learned most of programming thorugh codes only.
any way thanks for reply.any what are doing in your life????
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Alok the programmer wrote:
who said i am afraid of sharing my code.
I thought u did, cos i saw your reply to a post in which u were going to give code to the person via email. Mu mistake again!
Alok the programmer wrote:
any what are doing in your life????
Im a s/w developer with emphasis on systems programming.
Bikram Singh
|
|
|
|
|
bikram singh wrote:
I thought u did, cos i saw your reply to a post in which u were going to give code to the person via email. Mu mistake again!
Basically i am recently faced critics about my system application,so i must assure it working properly before posting on CP.
Basically many programmer on CP are Raw,so any System S/w may damage there system if not handle with care.
that why i write i will mail you my code if you want.
bikram singh wrote:
Alok the programmer wrote:
any what are doing in your life????
Im a s/w developer with emphasis on systems programming.
that great!! are you working in any S/W co
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
hi
i need to include .gif or any animated files into richedit box.
how it is possible .Any body know , plz tell me.
thank you.
This allows you to set your preferences for the discussion boards
|
|
|
|
|
I have a Volcano Webcam . I lost its Driver
i m searching but cannot find any driver for it
Plz help me out
from where ,,, i can get it to download for Windows
thanx
|
|
|
|
|
|
I just created a new project MyTestProj.
I went to Project->Properties->Configuration Properties
The Property Pages are all blanks ! - can't make any changes.
whats the go?
is there something that i forgot to install?
big bug in vcpp.net ??
cheers.
|
|
|
|
|
Anonymous wrote:
I just created a new project MyTestProj.
What kind of C++ project? Are you sure you didn't just create a blank solution rather than a project?
Michael
CP Blog [^]
|
|
|
|
|
The steps were:
File->New->Project->Visual C++ Projects->MFC->MFC Application
(Project named MyTestProj, Dialog Based)
Project->Properties->Configuration Properties...
Everything is BLANK ? tried changing Configuration/Platform/Configuration Manager but still all blanks.
Any ideas would be much appreciated !
(I desparately need to turn off using Precompiled Headers)
Cheers
|
|
|
|
|
Hello all,
Does anyone know how to figure out the default mail client and then start it from a dialog?
I want the user to be able to select an option to fire off the mail client from within my application.
Thanks,
Murrah Boswell
|
|
|
|
|
ShellExecute()
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Yeah, that's where I ended up!
Thanks!
|
|
|
|
|
(might sound outdated but I have a nice aplication for that..)
How can I create an Active Document Server that is in-place activated? (Like a Word document added to a project opens in-place in Visual Studio). Using MFC AppWizard and creating a full automation server, it still opens in a separate executable.
we are here to help each other get through this thing, whatever it is Vonnegut jr.
sighist || Agile Programming | doxygen
|
|
|
|
|
|
Itdid not, but it does tell me I'm on the right track
[edit] found the difference:
I have to insert it using "Other Document". Still get an Assert, but it mostly works.
we are here to help each other get through this thing, whatever it is Vonnegut jr.
sighist || Agile Programming | doxygen
|
|
|
|
|
Hi all, What is the best way to print inside MFC (Visual 2002). I have tried TextOut but that sucks because every printer is different. I am getting the idea that MFC can't do a very good job of printer because of limited functions? hopefully, its my limited knowledge.
|
|
|
|
|
I'm sad to say that it is your limited knowledge
With GetDeviceCaps , you can get the resolution for the output media (be it screen or printer). You can use the value - compared with that of the screen - to scale your drawing and font creation.
For text only, you can also create fonts in typographical points - CreatePointFont and CreatePointFontIndirect .
Finally, you might want to set the mapping mode to one of the physical coordinate systems - see SetMapMode on MSDN.
|
|
|
|
|
Hi Johan,
Thank you for the support. I will be working on this problem this weekend. Sadly, printing is my weakest skills but this project will force me to be better. I guess I have put off printing long enough. Thnx again.
|
|
|
|
|
It's not much different from working with the screen, actually. The big problem is designing drawing code that makes no assumptions regarding the output resolution.
|
|
|
|