CFanatic

Go Back   CFanatic > Programming > Win32 Programming

Join CFanatic Forum Now

how to integrate process with exe file topic posted under Win32 Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2007, 12:16 AM
Member
 
Join Date: May 2007
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
vidhya is on a distinguished road
| More
how to integrate process with exe file

hi

i created one process which will run one file called banner.exe that will create one banner on the desktop, in that banner some text will always be scrolling.what i want is this process should always be running in the background and whenever i execute banner.exe file from the command line with some command line arguments that arguments should be appended to the text which is previously scrolling in the banner.

what i want is their should be only one instance of banner.whatever i add or remove from the command line should update in the same banner.

is it possible to do this.please give me the solution how to do this.
Reply With Quote
  #2  
Old 05-22-2007, 12:23 AM
shabbir's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 1,163
Thanks: 57
Thanked 63 Times in 44 Posts
shabbir has a spectacular aura aboutshabbir has a spectacular aura about
| More
Re: how to integrate process with exe file

Yup thats very much possible.

You have InitInstance and in that check for banner.exe process using the FindWindow API and when found post a message to the banner.exe with the necessary command line and exit the current process.

banner.exe when recieves the message should append the thing in the list of its scolling banner.
Reply With Quote
  #3  
Old 05-22-2007, 04:11 AM
Member
 
Join Date: May 2007
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
vidhya is on a distinguished road
| More
Re: how to integrate process with exe file

InitInstance is MFC method right. can i use that method in win32 application.
Reply With Quote
  #4  
Old 05-22-2007, 07:42 AM
shabbir's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 1,163
Thanks: 57
Thanked 63 Times in 44 Posts
shabbir has a spectacular aura aboutshabbir has a spectacular aura about
| More
Re: how to integrate process with exe file

Quote:
Originally Posted by vidhya View Post
InitInstance is MFC method right. can i use that method in win32 application.
You have the same thing in WndProc of your Win32 Application. WM_CREATE or something similar.

The command line will be there in the WinMain.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inter Process Communication imaginative.bibhas Win32 Programming 1 07-29-2008 09:00 AM
File I/O (Reading from a Random-Access File) VersEtreOuNe C++ Programming 0 02-12-2008 03:39 PM
read file n spot blank char n re write file witout extra blank dev1910 C++ Programming 1 12-17-2007 12:43 AM
How to uniquely identify a process? codeunlock C# Programming 0 04-29-2007 12:49 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 01:47 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board