|
coding-nastypcs wrote:
Also I'm working with the PocketPC SDK so things like FloodFill() cant be used
No, they can't be used. But they can be implemented...
QA: Where is the DC FloodFill method?[^]
Have fun!
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Thanks João,
I have since added the class to my project but have run into a little problem.
My project has 2 CDC's, one is in the main View class and the other I use in my Zoning Class.
When I draw my zone I draw the zone on both CDC's but the second CDC in the Zoning Class will get filled in.
I then use this CDC as a hidden CDC to check if I'm still in a zone, using the likes of GetPixel() to find out if I have left the zone.
My problem now is that it's always returning true, as in I have left the zone, so I now need to display the second CDC to the screen to verify that the zone has been set up right, but when I do I just get a blank display, all white.
I'm using code like the following...
<br />
ColorZone = new CDC();<br />
ColorZone->CreateCompatibleDC(NULL);<br />
int numPoints = Points.GetSize();<br />
<br />
if(numPoints>1)<br />
{<br />
for(int i=0;i<numPoints-1;i++)<br />
{
ColorZone->MoveTo(Points.GetAt(i).x, Points.GetAt(i).y );<br />
ColorZone->LineTo(Points.GetAt(i+1).x*, Points.GetAt(i+1).y);<br />
}<br />
<br />
if(CZone::IsComplete)<br />
{
CPoint point = Points.GetAt(0);<br />
point.x+=1;
point.y+=1;<br />
CRect rect;<br />
GetClientRect(NULL, &rect);<br />
CFloodFill<CDC, COLORREF> flood(*pDC, rect);<br />
flood.Fill(point, RGB(255, 0, 0));<br />
<br />
CMyBaseView* pView = (CMyBaseView*)((CMainFrame*)AfxGetApp()->m_pMainWnd)->GetActiveFrame()->GetActiveView();<br />
pView->GetDocument()->mapDC = ColorZone;<br />
}<br />
}<br />
As I'm very new to PocketPC development I'm a little unsure if the above code should do what it's meant to be doing, any input would be grateful!
Thanks again,
ar
|
|
|
|
|
hello geniusES!
i need help in choosing a final year project title. i wud like to do somethin in mobile java. please if ny1 of u hav got ne idea lemme know. or mail me at bsc_imz@yahoo.co.uk
da project time completion is within 3 months.
really appreciate if you can help,
Cheers
Imz.
Imran Mamdani!
Imran Mamdani!
|
|
|
|
|
Hi
Could anyone point me in the direction of information regarding the creation of a virtual com port. I have searched with little success...
Many thanks
Tom
|
|
|
|
|
Hi,
I have Embedded 4 and it it has no option to open solution files - only VC 6.
What are my options? The app is not .NET just written with .NET IDE.
What is the quickest way to port it to Embedded VC++ 4.0?
Thanks,
|
|
|
|
|
So it seems I need .NET 2003. Bugga is I have .NET 2002.
How do I downgrade a solution file to vc 6 project file given that I am not using any
.NET code?
Thanks
|
|
|
|
|
I'm porting an existing NT application to Pocket PC. On NT/XP I setup a direct pc to pc connection type for the application to establish a PPP connection via RasDial() and then connect a socket to get TCP/IP up.
I would like to use port the existing code but on the Pocket PC connection settings there is no direct connection allowed, only a Hayes Compatible modem option which dictates I need a modem connected to the COM port.
Is there anyway to setup a direct connection or change the RasDial() settings to use a VPN connection to the COM port to setup PPP ??
|
|
|
|
|
Dear All,
I need to set/pass cursor type and lock type in OLEDB interface. I opened the table/SQL statement successfuly. I am not able to find in which interafce i have to pass/set cursor type and lock type in it.
Any body is having any idea about this problem ?
If so, provide some input and it will be of an immense help for me to solve this problem.
Regards,
AKS
|
|
|
|
|
Cursor and lock information are passed on the property set of type DBPROPSET_ROWSET . If you are using SQL CE, check out the online docs.
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Hi there,
I've installed VS 2003 .Net, Pocket PC 2003 SDK and ActiveSync 3.7.1 on my PC.
I also intalled Microsoft Loopback Adapter service on my OS ( WinXP ), So now my programs run without any problem.
The problem is the Emulator use TCP/IP for transfering files between PPC and PC, and now I'm not able to use ActiveSync to connect to PPC
How can I get ActiveSync to work with Emulator ?!
Regards,
Hadi
|
|
|
|
|
Read this article:
Migrating to the eVC 4.0 Environment[^]
Check the section on "ActiveSync Via Ethernet":
You can now connect ActiveSync to the emulator without a loopback serial cable. Compared to the previous version of the emulator this is faster and configuration is simpler, and you do not need a loopback cable and a PC with two serial ports. Now you can more easily test your desktop installations, ActiveSync filters/providers, and RAPI applications against the emulator. (...)
You can follow the configuration link here:
Using ActiveSync over Virtual Switch[^]
Regards,
João Paulo Figueira
Embedded MVP
|
|
|
|
|
Dear João,
Thanks alot for help
Regards,
Hadi
|
|
|
|
|
Hi~
However, when you config the virtual switch in eVC++, the emulator can be connected with activesync only when the emulator is launched by eVC++. If the emulator is launched by VS .NET, it still cannot be connected with activesync.
|
|
|
|
|
hello all,
at present i am getting training on 8 bit controllers. but my doubt is that am i easily migrate to 16,32 and 64 bit controllers, with out having assistance.
Thanking u.
ComputerNewton
|
|
|
|
|
hello all,
how shall i design Cross Platform GUI. What r the languages we use to desing it. At present we are using C and C++. Is it posssible to desing?. if yes, how shall i do that?.
ComputerNewton
|
|
|
|
|
I recomend qt if you are willing to stick with C++ only for the GUI. (can mix C code in elsewhere of course, just not the GUI). Worth the price in my opinion, but I can't convince the boss of that... http://www.trolltech.com/
wxWidgets is another common C++ toolkit, which is nice enough and free. Normally allows your application to look like it was designed for that platform. (looks like a mac app on Macs, windows apps on windows) The license isn't a big deal. http://www.wxwidgets.org/
GTK is a free C tool kit (with some C++ wrappers that some hate and others love). http://www.gtk.org/
Java makes a claim to cross platformness and you can call native code if you jump through a lot of hoops. I don't recomend it, but you can make it work.
http://www.geocities.com/SiliconValley/Vista/7184/guitool.html has some interesting links on this issue, but I haven't explored it. Check out google too.
Watch the licensing on the free toolkits. So long as you are aware of what is allowed and what is required, it isn't a big deal. Not watching them could end up digging a big hole.
|
|
|
|
|
Ever wanted to develop .NET CF apps right on you PDA? Now you can. I ported C# compiler and tools from dotGNU project to PocketPC platform. IDE will be available soon!
http://mifki.ru/pcsharp
----------
Onboard C# compiler - http://mifki.ru/pcsharp
|
|
|
|
|
anyone know how to open a line with a mobile through an application on a pc
i tried microsoft speech sdk but i didnt know how to use phone line with it
|
|
|
|
|
Hi all,
I would like to ask a question as below,
My software is composed of a main C# program with some other c# dll as components. In the first round, I will install all the stuff on the machine.
Then after sometime, I need to install some additional dll to work with
the main C# program. How can I do that ? Is that possible in C#.Net framework ?
Thanks
|
|
|
|
|
Hi there,
I'm a new developer in .Net platform. I have implemented a code that runs at a Pocket PC 2002 platform. This is the client part , no problem. It saves some data such as names and adress information in XML document. The question is i want to send this data to a PC and upload necessary things. But i dont know how to start. the thing is just simple to upload XML file from PDA to PC or visa-versa. I couldn't find an article about this staff.if any one can tell me how to that or advises some article or site I will be glad. Thank you.
|
|
|
|
|
Look at the Activesync options.
There is a setting to enable Files to be synced.
If this is active, there will be a folder in your My Documents (ie "POCKET_PC My Documents".
This is a shadow folder of your ppc My Documents.
Activesync tries to keep this folder in sync.
So, anytime you cradle your ppc, or update the folder, it should be quickly up-to-date.
"For all of our languages, we cannot communicate" - Christy Moore, Natives
|
|
|
|
|
Hi all ,
i'm trying to realize a CF C# application that uses udp protocol and multicasting on address 224.0.1.84.
I need to have different sockets that reuse the same address and port, so i need to set the reuseAddress parameter with the setSocketOption function to true.
Unfortunely there is a bug in the API and the function with such a parameter doesn't work.
As Microsoft say you can work around this problem calling directly the CE API with the P\Invoke way.
I tried to do so, but with no result.
I always obtain error "10038" from the CE function setsockopt, which means that the function does't recognize the pointer passed a socket pointer. I'm sure i'm passing a valid socket pointer.
This is my code..
[DllImport("Winsock",EntryPoint="setsockopt", CharSet=CharSet.Unicode, SetLastError=true)]
public extern static int setsockopt(IntPtr _sock, SocketOptionLevel level, SocketOptionName name, byte [] byte_val, int int_val);
...
Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
IntPtr _sockhandle = sock.Handle;
MessageBox.Show(_sockhandle.ToString(), "socketHandle..");
if(this.setReuse(_sockhandle))
{
MessageBox.Show("setReuse OK!!");
....
}
...
private bool setReuse(IntPtr _sock)
{
int rs = 0;
try
{
Byte[] one = new Byte[1];
rs = setsockopt(_sock, SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, one, 4);
}
catch(Exception e)
{
MessageBox.Show(e.ToString(), "setReuse error..");
}
if (rs == mySOCKET_ERROR)
{
MessageBox.Show("setReuse error: " + rs.ToString() + " - " + Marshal.GetLastWin32Error().ToString());
return false;
}
else
{
MessageBox.Show("setReuse OK: " + rs.ToString());
return true;
}
}
What is wrong?
I tried too to call the CE API socket function in order to obtain a socket handle..
[DllImport("Winsock",EntryPoint="socket", CharSet=CharSet.Unicode,SetLastError=true)]
public extern static IntPtr mySocket(int af, int type, int protocol);
using it in this way
IntPtr _sockhandle = mySocket(2, 2, 17);
and passing it to the setsockopt..
in this way the function works, but now how can i associate this handle to a CF socket?
The socket.handle property is readonly and there is no constructor to create a new socket from a IntPtr handle..
Thank you very much!!
|
|
|
|
|
really do not know how to start it.
|
|
|
|
|
I'm a newbie trying to develop a client application to connect via a socket to a device connected on COM1. If I connect to a server on my host machine the standard SDK emulator connects OK. When I specify the device IP address that is connected to COM1 and try to connect to it, the emulator fails to connect.
Any help is appreciated !
|
|
|
|
|
Hello there,
In some occasions I used to use the Beep function in my programs for fast and easy sound-generation. I noticed now however that that doesn^t seem to be supported by PocketPC`s.. Is there an easy alternative for that?
In other words is there an easy way to sound a beep without having a wav file or any other sound file?
Regards,
Davy
|
|
|
|