|
Murugan k wrote: ...save the content from the window into file only on the desktop and when i have to open that saved file.
Is this part of your application's functionality?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
yah,
i have to show some data on the window from database and save that data into file. I just found out that it only crashes when the files are on the desktop.That is when i try to open the file on desktop using CFileOpendialog, my application going to closed.
But that file placed on any other drives like(c:,d:,..), nothing to worry, it will execute successfully...
Thanks in advance
|
|
|
|
|
If you know it crashes when files are on the desktop, can't you put files on the desktop and
debug the program?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
hi murugan.,
I'm also facing the same problem..
even my friend also trying to resolve that problem...
if you got any valuable solution
let me know...
bye ...
|
|
|
|
|
Hi,
i want to minimized my application when i clicked (two times) on task bar... do you know the message?
thanks
Giulio
ps. the message isn't WM_NCDBCLICK, WM_NCLBUTTONDBLCLK.
|
|
|
|
|
you can use WM_NCLBUTTONDBLCLK to close the application by adding oncancel(); in the function.
|
|
|
|
|
but i don't want to close the application... when i find the message i want only minimized...
do you understand?
Raiz<
|
|
|
|
|
you can use WM_NCLBUTTONDBLCLK and add oncancel() in the function it will work.
|
|
|
|
|
vimarsh puneet wrote: you can use WM_NCLBUTTONDBLCLK and add oncancel() in the function it will work.
hi.. what would you achieve in 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
Support CRY- Child Relief and you
|
|
|
|
|
What part of the task bar are you double-clicking on? If you click your app on the taskbar it
will minimize - click it again it will restore, right?
Or are you referring to something else?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
ok.. the app with standard dialog frame minimize and restore if i click on taskbar(my application), but i want a custumize application without dialog frame...
now do you understand??
thanks...
giulio
|
|
|
|
|
Ing.Raiz82 wrote: i want to minimized my application when i clicked (two times) on task bar... do you know the message?
have you check what WM_SYSCOMMAND contain for it!
"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
Support CRY- Child Relief and you
|
|
|
|
|
Hi,
I have an exe which is created with document view architecture and developed in VC6.It has dependencies also.Now I want to convert the whole application into a service.I should not create a service and invoke the exe from the service. I need to redesign the whole application so that it becomes a service.
How should i go for that?
Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also.
If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service?
Thanks & Regrads,
Sanju.
|
|
|
|
|
Well I think I can't really help you that much, but I also created a service some time ago.
And I know that a service has to be created as a win32 console application, so I am wondering of how your application can work as a service (because it uses document/view architecture and consists therefore of a GUI).
Because of that I think that you have some core logic in your application that works without a GUI. So you have to create a new console application for your service and put your "real" logic into that service. You can then rebuild your MFC app to access the logic in the service as a frontend (compare e.g. MSSQL Server: The "real" MSSQL server runs also as a service, but there exists also a frontend by which you can control this service).
VC6 is very old now, and I would suggest to start every new project with a newer version. But because this is an older application and you use many other third party libraries for VC6 I would suggest to stay to VC6, just because then you maybe don't have that much problems...
|
|
|
|
|
Hi,
Thank u all for ur replies.
Thanks & Regards,
sanju
|
|
|
|
|
I think you are new to write windows service if yes see this series articles "Driver Development Part 1: Introduction to Drivers" on the codeproject of Mr Toby Opferman(these articles use of VC 6)
write service is different of write a program if you have a problem on your program you can simply find problem but on services its hard.;)
|
|
|
|
|
WhiteSky wrote: rite service is different of write a program if you have a problem on your program you can simply find problem but on services its hard.
he he he,, who given you two vote! let me square it.. damm those people!
"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
Support CRY- Child Relief and you
|
|
|
|
|
First of all
hi alok how are you I seldom see you on the codeproject
and thank you for your vote but may I ask a question
'm wondering how do you find this message 3 April
|
|
|
|
|
WhiteSky wrote: and thank you for your vote but may I ask a question
'm wondering how do you find this message 3 April
i started from where i left!
"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
Support CRY- Child Relief and you
|
|
|
|
|
Well I think some people will be surprise when they see your answer to their question after this time;)
|
|
|
|
|
If you're using doc/view then why make it a service? Service applications run in their own
Windows instance and generally provide no user interface.
Why do you need to make it a service?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Also...everything you need to know about services can be found here: Services[^]
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
sanjutvm wrote: Should i use .net or VC6 itself? I'm planning to use VC6 itself bcoz it has many dependencies which are in vc6 and uses 3rd party dlls also.
If using VC6, should i create using ATL COM appwizard -> Service.exe or simply create a cpp file for service?
try to search for srvany.exe in google.. it could run any exe at service!
"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
Support CRY- Child Relief and you
|
|
|
|
|
HI,
I need to lunch the network connectionwizard thru my VC++ application. i will be glad enough for uor ans...
Thanx in advance
birajendu
CyberG India
Delhi
India
|
|
|
|
|