|
Chaser92 wrote: Which library contains the procedure in WinCE?
You have my apologies. I did not realize that you were asking about an embedded environment. Perhaps you are looking for SetStdioPathW[^] and GetStdioPathW[^]?
You can possibly use CreatePipe to create alternate input/output handles which are also opened from inside your application giving you complete input/output control.
I think it could work like this:
1.) Call CreatePipe and save the handle to newhandle variable.
2.) Spawn a thread which reads the pipe handle.
3.) Call GetStdioPathW and save the handle to the a saved_output_handle variable.
4.) Call SetStdioPathW(1,newhandle).
5.) Call CreateProcess and your child process will inherit the parent i/o handles.
6.) Call SetStdioPathW(1,saved_output_handle) so you restore your own standard io handle.
I hope I made sense... if not just ask.
Best Wishes,
-David Delaune
|
|
|
|
|
I get it, but as I don't know much about unmanaged coding, could you tell me how does one read or write to a pipe? or maybe some kinda example
Many thanks, you're saving my life
Best greetings
|
|
|
|
|
You can read/write to the pipe just like it is a file. Unmanaged code this would be the WriteFile Function[^].
Best Wishes,
-David Delaune
|
|
|
|
|
Hi Randor,
I want to redirect the output of another process too, but in Windows Mobile.
SetStdioPathW seems to work only in Windows CE.
Do you know a function like SetStdioPathW that work at Windows Mobile?
Thanks in advance.
|
|
|
|
|
Vietnam Tour Operator, Travel Agent , Vietnam 's Leading Hotels and Resorts Online Reservations www.vietnampathfinder.com offers discounted flights, hotels and resorts, car rental, visa Arrangement, first class holidays, tailor-made tour packages, eco-adventure travel to the mystical, exciting and Newly Discovered destinations in Vietnam, Laos and Cambodia.
Vietnam Travel
Vietnam Art tours
Hanoi Art tours
Vietnam family vacations
Vietnam Family holidays
Vietnam tours for family
|
|
|
|
|
Hi
I want to add User control in List view control.
Can it is possible using vb.net code.
Please suggest.
Thanx
Mitesh
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
Hi all.
Do someone know if it's possible to convert a VB.Net C.F.2 application to C++ ? And if yes witch program can do such work? If yes the C.F.2 need to be installed the same on the device?
Thanks
modified on Sunday, January 4, 2009 2:16 PM
|
|
|
|
|
|
Thanks for reply, but C# is not the same of C++.
Bye!
|
|
|
|
|
How to open settings tab using VB .Net
|
|
|
|
|
hi...
i'm doing my engineering final year ... i need to do a project in my final semester... can someone help me out with some good topics... would be grateful for your help....
|
|
|
|
|
...
Blog link to be reinstated at a later date.
|
|
|
|
|
i'm soory for having done that...
|
|
|
|
|
Hi
I use the SqlceResultSet seek methot to my searc function. It's work on update, get or set methots but how can i find the row number, or index.please help.
my code is like that:
SqlCeResultSet rs=new SqlCeResultSet();
BindingSource bd = new BindingSource();
bd.DataSource = null;
bool res = rsMalzemeAdi.Seek(DbSeekOptions.FirstEqual, new object[] { textBox1.Text });
rsMalzemeAdi.Read();
bd.DataSource = rs;
int index = bd.CurrencyManager.Position; // not work
CurrencyManager CM= (CurrencyManager)dataGrid1.BindingContext[rs];
index= CM.Position; // not work
|
|
|
|
|
how can i launch contact, Calendar, Tasks in pocket pc using VB .Net
|
|
|
|
|
These are all items that can be done by starting a process with the Process class. Take a look at the start[^] method.
Contacts are a part of the pocket outlook application. if you start "\windows\poutlook.exe" with the argument "contact" it open the contact list. See this XDA Developer thread[^] for a list of other items that can be started in this manner.
|
|
|
|
|
How to get remaining battery status using VB .Net
|
|
|
|
|
That depends on whether or not you are willing to P/Invoke native methods. You can get a qualitative (non-numeric) description of the battery status from the State and Notifications broker through the PowerBatteryStrength[^] member to get it's power level or PowerBatteryState[^] to see whether or not it is charging.
If you want more detailed information on the battery you will need to P/Invoke GetSystemPowerStatusEx2[^]
I made use of this function in a CodeProject article on Windows Mobile Power Management[^]
|
|
|
|
|
How can I move sms from inbox to anoher folder in windows mobile pocket pc. I am working in vb.net.
plz help me
thanx in advance
|
|
|
|
|
Have u got any solution for it? if yes please mail me on this Email Id: manvendra.cs1@gmail.com
Thanks
|
|
|
|
|
I have a mobile application with c#. Create a database and some tables. In c#, insert, delete or update on a dataset but I can't update this dataset to database. Close application and reopen, All new datas are lost. What is my wrong ?? Can you help me ?
S.A.A
|
|
|
|
|
Please someone help me to launch executable (.exe) in Pocket PC using VB .Net
|
|
|
|
|
Here is a snippet in C#, won't be a problem to convert to VB:
ProcessStartInfo p = new ProcessStartInfo("iexplore.exe","");
Process.Start(p);
Regards,
Lev
|
|
|
|
|
Thank you Lev
|
|
|
|
|
You're welcome
Regards,
Lev
|
|
|
|