|
|
Daniel,
Do you have example codes? Does C++ have BCP capability?
Thank You
|
|
|
|
|
|
Thank You Daniel. I went to the site, scan thru the code a little.
I think this is what I need. You are very very helpful.
Thanks.
|
|
|
|
|
I want to develop a program in VC++, that runs in background; i mean that the program has no user interface and runs silently. The motive of this program is that it downloads certain file from internet, and when downloading completes, a dialog box is displayed. I've developed all the core logic and download coding etc. But now i want this program to run as a "silent" application in background.
Can any one tell me how can i convert my application to "invisible" form ????
|
|
|
|
|
check ShowWindow
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Papa wrote:
check ShowWindow
My program is not necessarily a windows application. I want to run it as a "process" and not "application". Just when you see windows task manager in Win2k, there are two tabs, "applications" and processes". I want to run my program as a process and not as an "application", and this difference is something that i am unable to understand
|
|
|
|
|
|
He probably will not be able to use a Service as he said he want to display a some kind of message to the use when its done.
|
|
|
|
|
if u hide the window, it stop showing in The Window tab of task manager but keep showing in the Processes tab
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
If not using MFC, then build your app as a "Windows application" (i.e. one having a WinMain entry point) and just do not create any windows at all.
If in MFC, go to the InitInstance of the program, delete the GUI stuff (for dialog-based apps, a few lines of code displaying a modal dialog) and put your code there.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
You can create windows but you must not register a class or make any windows visible.
Todd Smith
|
|
|
|
|
does anyone can write codes to
let vb uses a dll file to pass a para to vc
and show in vc
please help~~~~~~~~~~~~`thanks...
|
|
|
|
|
You can simply export the function from your DLL and import it into VB the same way as if you were to call one of the Windows API functions from VB. Then inside that function call you can do just about anything that you would like.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
but i want to display the result in vc
how i can do???
or do you hvae any simple code????
|
|
|
|
|
It depends on how complicated you wanted to get with the method that you want to display the result.
Inside the function in the C++ DLL, you could simply call MessageBox and display the result. Or you could get more complicated and create a dialog or a window and display more complicated feedback data.
If this is the case though, why not just do it with Visual Basic.
Although I do have one more thought, are you trying to display the output in a console window like a regular console app displays the data?
If you help me understand why you are doing this, or possibly more details in what and how you want to display the data, I may be able to help you out more.
Good Luck
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
thanks a lot....
the reason i wnat to display in vc is because it's a homework~~~~~~
and i must to do that :
in VB:
public sub form_mousedown(....)
'send a message to VC and show in VC ,
'the message is like "wellcome to VB and VC"
end sub
and the message i can run in vc file...
just show the message "wellcome to VB and VC"
please help me to write this code or
you can write a simple fot me.....
because i have never learned VC.....
so~~~~~~
thanks.....
|
|
|
|
|
thanks for a lot....
the reason i wnat to show the para in VC is just it's
a homework, and i tyr many times it dosen't work.
so i need your help.
the question is that
in VB:
public sub form_mousedown(...)
'sent a message to VC
'and display in VC file,
'the message just like "Hi,Wellcome to VB and VC"
end sub
and i don't konw how to write those code in VC
because i have never learned VC,so i really need to your help...
can you write a simple code to me,let me see the file in VC
and write a dll file make the qeustion can work ...
i really need your help....thanks~~~~~~~~`Good luck
|
|
|
|
|
I have an MFC child dialog that I use on an windows CE machine. I would like to place that dialog into another MFC dialog which is skinned when the app is compiled for a non-ce device, ie. the desktop computer. All I need to know is - what is the way one would embed a dialog in another dialog. I have seen how to embed a child dialog into a form view and was also wondering how this compares to doing dialog within dialog. What would be easiest taking in account that I have a skin on the parent dialog.
Cheers,
Clint
|
|
|
|
|
Embedding a dialog into a CFormView or another CDialog is basically the same: have the child dialog have no border, and on the OnInitDialog of the parent dialog create the child with suitable parent and position it. There are additional details to fill in, but the basics are simple.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks for your help. A little trial and error finally got me what I was looking for
|
|
|
|
|
Hi,
I want my program to search if a program is installed or not , from the registry(???).How can i do that(i use MFC)??
|
|
|
|
|
One solution is to check the registry key in the uninstall section. If the registry key is not found, the MFC function should return NULL. Better yet, use a Win32 API registry function including RegOpenKey().
LONG RegOpenKey(HKEY hKey, LPCTSTR lpSubKey, PHKEY phkResult);
Kuphryn
|
|
|
|
|
Could you tell me how can i check the registry key in the uninstall section?If you have an example send it to me.
Sory And Thanks!
|
|
|
|
|
Maybe I'm just not good at finding things on MSDN, and my help doesn't list anything in the index about NM_TREEVIEW Anyway, how do I get information from a CTreeCtrl when I handle the CLickTree?
I have:
void CMyDlg::OnClickTree(NMHDR* pNMHDR, LRESULT* pResult)
{
int iRoot = iTheRootOfItemClicked;
int iSub = iSubIndexOfItem;
int iItem = iTheIndexOfTheItem;
}
How do I get that info or am I supposed to do this some other way???
There's honorable mentions of TV_ITEM things and
HTREEITEM, but all I get is:
HTREEITEM Handle to an item in a tree-view control.
Somehow that doesn't help me much.
Nitron
_________________________________________--
message sent on 100% recycled electrons.
|
|
|
|