|
AFAI, with GetWindowsText , you can retrieve the "name" of your window. The fact that you does not show the caption does not remove the member of the dialog class containing the name, it is only not shown.
~RaGE();
|
|
|
|
|
HI,
IAM NOT SURE I HAVENT DONE IT BUT YOU MIGHT CHECK INTO THE INITINSTANCE() WHICH IS RESPONSIBLE FOR MULTIPLE INSTANCES OF AN APPLICATION AND SEE WETHER YOU CAN GET ANY HELP FROM THERE.
BEST OF LUK
FARPOINTER
|
|
|
|
|
|
You can do some interprocess communication.
In the second application use RegisterWindowMessage() to register a custom user message, and capture that message using WndProc() .
In the first application (full-screen), when you are exiting, register the custom message, then send it to all windows using:
::SendMessage(HWND_BROADCAST,id,0,0); //id is id of the message returned by RegisterWindowMessage() .
The second one will catch it in its WndProc() then it can exit.
this is this.
|
|
|
|
|
Use ::SendMessageTimeout instead or your application might hang on the first app that is not processing messages - I can already see myself shouting this from the grave
|
|
|
|
|
Amarelia wrote:
Also I have opened another smae kind of exe.
Are you using CreateProcess() or ShellExecuteEx() for this? If so, then just retain the handle of the new process. You can then call TerminateProcess() using that handle. Another option is to send that other application a WM_CLOSE message.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
In the MFC exe version,i created a thread just to protect the GUI from freezing, but is it actually need inside an ATL dll?.. the dll's going to be used by a VB application, i guess it wont freeze the VB application, but is it recommended to use threads even inside a component(ATL)?
ie, its just a do while loop
void simpleFunction()
{
do
{
}while();
}
or
UINT ThreadFunxn(LPVOID lp)
{
do
{
}while();
}
which one can be right inside a DLL?
thanx
V
|
|
|
|
|
You already know the uses of both approaches. If it is a small operation, then it will do fine without threading.
If it is lengthy, then you should use threads. Inside the threaded version, you can report back by firing events that the operation is complete etc. Also you need to make sure that the object created in VB stays alive (global) as long as the thread inside the dll is running.
Maybe someone else can give some better explanation.
this is this.
|
|
|
|
|
khan++ wrote:
Inside the threaded version, you can report back by firing events that the operation is complete etc
AFAIK,This some time can be complecated... let search some documentation regarding it and will revert back to you for further discussion..
"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
|
|
|
|
|
Vivekuniq wrote:
UINT ThreadFunxn(LPVOID lp)
{
do
{
}while();
}
offourse this one, What else
"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
|
|
|
|
|
This could be a tricky one! VB and threading are like water and oil, they just won't mix well together.. at least that's what everybody is saying, including Microsoft. The thing is, if you're thread is created within the DLL and you only call the function that spawns off the thread from VB you should be OK; but only as long as you initialize OLE on that thread using CoInitialize() and then uninitialize it before the thread exits using CoUninitialize(). That is critical!!! Other than that, make sure the thread is dead before you close VB... or else ...
|
|
|
|
|
Hi
i need a simple interface for visually building SQL queries with access database (supporting inner joins)
every comments and helps appreciated
PS.
in a simple reporting system for end-user if fields from main tables are selected for output and the other tables are hidden to user (we dont like to show him the structure), i am going to traverse relations and build the appropriate inner join clause for query
|
|
|
|
|
Let say I have a server and client Dialog to send message through TCP/IP and I just read the MODBUS frame that have Transaction Identifier, Protocol Identifier, Length Field, Unit ID, Function Code & Data. How to write a program into the send button that when I type and send a data, it will add all the address infront of it?
|
|
|
|
|
What kind of question is that? Can you be more precise in your questions? I will have to ban you if you continue to post such questions!
Thanks for your cooperation.
I have reviewed your profiles and discover you have various identities and post questions which are irrelevent and i might say is stupid. So i ask of you to stop posting such questions.
Veerasamy S/O Muthu--
Chief System Analyser World Informatics
|
|
|
|
|
levi`s wrote:
I will have to ban you if you continue to post such questions!
Since you joined recently and this is your sixteenth message I have my doubts.
Oh, Yahoo cannot find any trace of "World Infomatics"
The tigress is here
|
|
|
|
|
you got the right victim. slay now!!
V
|
|
|
|
|
|
Trollslayer wrote:
It looks like my pet has run away. Boo hoo
ohh... i will find that for you .... come on come on ... cho on that guy
"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
|
|
|
|
|
levi`s wrote:
I have reviewed your profiles
i dont think he's applied for a job in your Company!(World Informatics !)
V
|
|
|
|
|
levi`s wrote:
I will have to ban you if you continue to post such questions!
Who the Hell you are ? I believe you are not System Admin or Moderator here.... How could you ban any body here buddy... this is open forum and every body have right to post his/her problem here.. if you don't like it don't post.... simple like that
"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
|
|
|
|
|
I think may be my english are not good enough to tell you all my question or problem. So next time hope that I will think carefully when I want to post question at here.
|
|
|
|
|
Dont mind u can post your questions
there is and open forum .
I have a project awaiting for me in
Modbus through serial , but its
schelduled in Octomber 2005 .So if
u can wait till then ....
Just send me an email at
vikas.amin@embin.com
will let u know as soon as i study
the modbus
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote:
Dont mind u can post your questions
there is and open forum .
I have a project awaiting for me in
Modbus through serial , but its
schelduled in Octomber 2005 .So if
u can wait till then ....
Nice Way to help other! thats what every one except from good programmer
"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
|
|
|
|
|
Jyhguang wrote:
think may be my english are not good enough to tell you all my question or problem. So next time hope that I will think carefully when I want to post question at here.
No Body NO... I am angry on that guy who is threatening you to ban you from FORUM.... not at you... you can ask any problem related to Visual ++ here
"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
|
|
|
|
|
Hi,
last week there was a new addition to codeproject, the CRoundButton2 class. This directly cought my attention, since I would like to add skinning and resizing capabilities to our application. But I have still a problem with this class. It can only handle text on the buttons and no overlayed bitmaps.
Why isn't there any Button class with SVG rendering capabilities. I know, I can write one myself and perhaps I will do so, but I find it interesting, since SVG is an accepted standard. There is no basic SVG rendering library available for Windows. You have to make use of adobes product or of the internet explorer. Recently there was a note that the two libraries librsvg and libsvg will join, and with the cairo backend there is also a win32 based output target available.
But I can't believe that there isn't anything currently available to render Buttons with SVG images wihin windows. Something, that is built into GTK/Gnome and QT/KDE since years.
Or, can somebody point me to the right direction? I don't want to make use of all high level features of SVGs, CSS and whatever. Simply render a button from a SVG source and have all button styles like, hoover, pressed, inactive and so on assigned a different SVG.
Best regards
Dirk
|
|
|
|