|
So if I developed it on a machine using .NET 2.0, compiled it, and moved the EXE to a computer with .NET 1.1, it would fail?
|
|
|
|
|
|
ok, good to know, thank you.
|
|
|
|
|
I think the serial port classes were new in 2.0 so they wouldn't even be in 1.1.
|
|
|
|
|
They aren't. MS published a net1.1 beta version of them on a code site with a non commercial use only license, but otherwise you can't use them without .net 2.0.
|
|
|
|
|
How can i access web services from .net cf. I added the references properly.still it says "unable to connect to remote server". what is giong wrong ? do i need to do some emulator settings?
|
|
|
|
|
You haven't said which versions of the Framework or which OS you're using. .NET Compact Framework 1.0 did not establish a network connection for you; CF 2.0 does, when using HttpWebRequest and web services, on Windows Mobile (2003 or 5.0). The exact behaviour depends on the URL you're using and the configuration of the unit. Generally speaking, the Connection Manager treats any URL with a dot in the host portion as being an Internet URL while URLs with no dot are considered to be Work URLs.
If you have a network card and its media is connected - associated for wireless network cards - then it will be used, if the setting at the top of the Wireless Network/Network Cards control panel (Start, Settings, Connection, Network Cards but some devices have Wireless Network) labelled 'My network card connects to' matches the URL. Otherwise, the Connection Manager will use any modem or cell network data connections set up in the Connections control panel. If required to connect to Work it may use a VPN connection if you configure one.
If you are currently connected to ActiveSync and ActiveSync's 'This computer is connected to' setting (in Connection Settings) matches the URL, Connection Manager will try to use the desktop pass-through. This does not work for all protocols.
Finally, Windows Mobile 5.0 disables all network connections - disconnecting from modems and cell data networks, and disabling network cards - when connected to ActiveSync. This was apparently a feature requested by some corporate customers and phone networks. There's no way to switch this off (that I have yet discovered).
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I used SetupDiEnumDeviceInterfaces to loop hDevInfo list and found 4 items with guid : GUID_DEVINTERFACE_VOLUME
But SetupDiGetDeviceInterfaceDetail returns error: "1421 Control ID not found" for each device information set.
What's the cause??
|
|
|
|
|
hello friends i m converting vc .net 2003 project into vc 2005 (vc7).
i open my proj in vc2005 and then compile . i m getting following error in header file atlmisc.h file.
c:\program files\microsoft visual studio 8\vc\include\atlmisc.h(1159) : error C2440: 'return' : cannot convert from 'const wchar_t *' to 'TCHAR *'
can someone help me......
Harish
|
|
|
|
|
atlmisc.h is from the Windows Template Library. Further help is really only possible if you tell us which version of WTL you're using.
Also, this is a native C++ programming question. This board is for questions relating to the .NET Framework: the CLR, the base class library, and Windows Forms. Try asking here[^].
I suspect your problem may be that UNICODE is not defined or that you have a mismatch between the definition of UNICODE and _UNICODE .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi!
I am doing a windows desktop application. I have a tab control which is aligned on thr gith, meaning that the tabs for the tab pages are displayed on the right. It is working fine. But when I added the "Application.EnableVisualStyle();", the titles for the tabs are not displayed anymore. They will display again if the alignment is Top or Bottom. But I really need to place them on the right since that is what is required of me.
Help anyone?
Regards,
Aldrich
|
|
|
|
|
It's a bug. If you add .manifest file to any application, wich contains control with right tabs, you'll see the same picture sigh:
My english is bad. Please, correct my errors.
Best regards, Alexey.
|
|
|
|
|
aww.. ok. I guess I won't be able to use the XP style for my desktop application..
Thanks!
Your english isn't bad. It's very understandable. My English is not very good too, but as long as it is understandable, then I guess it's ok. Practice makes perfect! hehe!
Regards,
Aldrich
|
|
|
|
|
Aldrich Caw wrote: ok. I guess I won't be able to use the XP style for my desktop application..
Don't give up, you can draw tab text yourself.
My english is bad. Please, correct my errors.
Best regards, Alexey.
|
|
|
|
|
Ok. I'll try. Thanks! Wish me luck!
|
|
|
|
|
Can any body help me to get a detailed book on Microsoft content management server 2002?
i am very much in a need of that.
advanced ThanX
Ramesh.Kanjinghat
|
|
|
|
|
My project is .Net VC++.
I need to use functions defined in SetupDi.lib
I've added additional dependancies as "setupdi.lib"
but I still receive error as follows. How can I solve the problem??
Form1.obj : error LNK2001: unresolved external symbol "void * __stdcall SetupDiGetClassDevsA(struct _GUID const *,char const *,struct HWND__ *,unsigned long)" (?SetupDiGetClassDevsA@@$$J216YGPAXPBU_GUID@@PBDPAUHWND__@@K@Z)
My statement:
hDevInfo = SetupDiGetClassDevs(&GUID_DEVINTERFACE_VOLUME, NULL, NULL,DIGCF_DEVICEINTERFACE | DIGCF_PRESENT);
prototype of the function in MSDN:
HDEVINFO
SetupDiGetClassDevs(
IN LPGUID ClassGuid, OPTIONAL
IN PCTSTR Enumerator, OPTIONAL
IN HWND hwndParent, OPTIONAL
IN DWORD Flags
);
-- modified at 15:28 Wednesday 12th July, 2006
|
|
|
|
|
In the derived class of an interface class, the implementation of the interface method involves calling a function that specific to the derived class. How to invoke the function that declared in the child class whithout having error indicating unknown function???
For example, I receive error:
error C3861: 'Build_StationRecord': identifier not found, even with argument-dependent lookup
Build_StationRecord is a function has been defined ahead. It's a public function of the child class.
-- modified at 12:15 Wednesday 12th July, 2006
|
|
|
|
|
I couldn't get your question. Could you rephrase a bit, or maybe add some a littl code to show what you did?
Best,
Jun
|
|
|
|
|
I found solution for it..
I have list the function prototype of virtual function in derived class(.h) as public function, then implement it in derived class (.cpp) with scope of derived class name (classname: .
|
|
|
|
|
I have a control that is derived from the standard ComboBox. I have an override for the OnPaint method that paints a border, drop down arrow button, background, and foreground. The only problem is that something (some other event/subcontrol) is drawing a black text box with a large font over top of the text box region of the combo box control.
I am drawing a background in my OnPaint event, and it is being draw on top of. I can see that the background is drawn because there is a border around the text box region. My code looks like the following:
<br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
base.OnPaint(e);<br />
<br />
DrawBorder();<br />
DrawBackground();<br />
DrawArrowButton();<br />
DrawForegroundText();<br />
}<br />
What am I missing here??? By the way, this control works just fine if the DropDownStyle is set to DropDownList, however I'm need it to work as a DropDown (being able to edit the text box).
--Ian;
|
|
|
|
|
In calling all of your painting functions, are you passing the Graphics object sent inside the PaintEventArgs or are you creating another one?? You should be passing the Graphics given to you by the PaintEventArgs.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sorry for my simple example. Yes, I am passing the PaintEventArgs that is passed to the event. So the GC is being used to do all the painting.
--Ian;
|
|
|
|
|
That's why we always suggest Copy-'n-Paste the code instead of retyping it.
You said that this text is being painted OVER what your code painted?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I'm painting the background a green with a FillRectangle, and when it is displayed to the screen, I see a 2 or 3 pixel border of green surrounding a black text box region (that was not drawn by me). This is what I mean when I say that it was drawn over top of what I had drawn.
The sample class below does not contain all the code, however it will give you an idea of the problem. Just drop this class into your a project, compile, and drop it the ComboDraw control onto a form.
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
namespace ComboTest<br />
{<br />
class ComboDraw : ComboBox<br />
{<br />
public ComboDraw()<br />
{<br />
DrawMode = DrawMode.OwnerDrawFixed;<br />
DropDownStyle = ComboBoxStyle.DropDown;<br />
FlatStyle = FlatStyle.Flat;<br />
SetStyle(ControlStyles.UserPaint, true);<br />
}<br />
<br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
base.OnPaint(e);<br />
<br />
e.Graphics.FillRectangle(new SolidBrush(Color.Green), ClientRectangle);<br />
}<br />
}<br />
}<br />
--Ian;
-- modified at 9:19 Thursday 13th July, 2006
|
|
|
|