GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 16-Nov-2005, 07:06
jaro's Avatar
jaro jaro is offline
Junior Member
 
Join Date: Nov 2005
Location: somewhere in souteast asia
Posts: 60
jaro will become famous soon enough
Question

convert win32 console application to win32 application


hi!

i have a win32 console application. is there any method or is it possible to convert it to win32 based application.

thanks in advance,
jaro
  #2  
Old 16-Nov-2005, 10:00
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 927
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: convert win32 console application to win32 application


Hi jaro,

Welcome to the GID Forums™.

Quote:
Originally Posted by jaro
i have a win32 console application. is there any method or is it possible to convert it to win32 based application.
Win32 console applications are win32 based applications.

Do you mean Windows GUI applications?
What language do you use? C or C++?
What compiler do you use?

I think there is no direct method to convert console apps to windows apps.
We have to write different coding.

Best Regards,
Paramesh.
__________________

Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Just walk beside me and be my friend.
  #3  
Old 17-Nov-2005, 00:13
jaro's Avatar
jaro jaro is offline
Junior Member
 
Join Date: Nov 2005
Location: somewhere in souteast asia
Posts: 60
jaro will become famous soon enough

Re: convert win32 console application to win32 application


Quote:
Do you mean Windows GUI applications?
well it is not a gui application.
Quote:
What language do you use? C or C++?
i use C
Quote:
What compiler do you use?
i'm using MVC 6.


basically the module was given/turnover to me, what it(server) does is listens to a client and will display the message of the client.
i was ask to change it, now instead of displaying the message to a command console(?) , the message will now be written to a file. Now I've done the function that will write the message to a file. Now the problem is that everytime i try to run the program,the command window always shows up.
And also they want this program to be also run as a windows service.


i've tried to change the project setting to a win32 application but i always get this message:
Quote:

LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
Debug/SVR.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


i'm new at C and still trying to get a hang of this...

- jaro
  #4  
Old 17-Nov-2005, 02:35
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: convert win32 console application to win32 application


Quote:
Originally Posted by jaro
i've tried to change the project setting to a win32 application but i always get this message:
That's because you tried to compile it as a Win32 but didn't change the code. Keep it a console app.

Quote:
Originally Posted by jaro
And also they want this program to be also run as a windows service.
This is how I set up a service a few years ago. It should still work fine.
  • Place a copy of SRVANY.EXE in the C:\WINNT directory.
  • Install as a service by running INSTSRV YourProgramName C:\WINNT\SRVANY.EXE
  • Under Control Panel:Services:YourProgramName choose Startup as Automatic and choose Log On As System Account and Do Not Allow Service to interact with Desktop
  • Start the registry editor
  • Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\YourProgramName create a Parameters key
  • Under the Parameters key, create an Application value and enter the full path of the YourProgramName executable (including the extension).
You'll have to find SRVANY.EXE in your system or off the web
__________________

Age is unimportant -- except in cheese
 
 

Recent GIDBlogMeeting the local Iraqis by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bloodshed Dev C++ Project Options JdS C++ Forum 6 11-Nov-2005 17:23
Chaning Font and Color In win32 console app. Tperry23 MS Visual C++ / MFC Forum 2 02-May-2005 14:31
Win32 Window Shading behavior (like linux) WillyumYum C++ Forum 3 18-Apr-2005 14:36
Help! Some basal questions about MFC xutingnjupt MS Visual C++ / MFC Forum 1 05-Dec-2004 03:38
Console to MFC application vadharah MS Visual C++ / MFC Forum 6 12-May-2004 00:30

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:46.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.