Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / September 2007

Tip: Looking for answers? Try searching our database.

Added control, lots of warnings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EdisonCPP - 20 Jul 2007 15:14 GMT
I added an IP Address Control I found online.

I get hundreds of warnings when I compile it now:

c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll
: warning C4945: 'ResXFileRef' : cannot import symbol from
'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll':
as 'System::Resources::ResXFileRef' has already been imported from another
assembly 'System.Windows.Forms'
       c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll
: see declaration of 'System::Resources::ResXFileRef'
       first seen type is used; re-order imported assemblies to use the
current type
       This diagnostic occurred while importing type
'System.Resources.ResXFileRef' from assembly 'System.Windows.Forms,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

The above is for one symbmol, I get MANY of these for other symbols.

Any idea on how to get rid of these warnings... there are so many, it
actually takes
my project 3-4 times as long to compile.

To me it seems like it's trying to get framework references from the new
control instead of the default libraries, then
finding them again in the default libraries????  Or is it somehow getting
double defs from Framework 1.0 and 2.0?

I have the C# code for the control, and compiled it with VS2005.  Using it
in managed C++ project.

Thanks,
Steven
EdisonCPP - 20 Jul 2007 16:02 GMT
I found and installed hotfix:  NDP20-KB922271-X86.exe
The problem still persists.

>I added an IP Address Control I found online.
>
[quoted text clipped - 30 lines]
> Thanks,
> Steven
PvdG42 - 20 Jul 2007 17:29 GMT
>I added an IP Address Control I found online.
>
[quoted text clipped - 30 lines]
> Thanks,
> Steven
Can you provide a link to the control in question?
Unless others can "see" the details, it's unlikely you'll get useful
answers.

Have you contacted the control author(s) to ask about your issues?
EdisonCPP - 20 Jul 2007 18:04 GMT
http://www.codeproject.com/cs/miscctrl/IpAddrCtrlLib.asp

I have emailed the author, with no reply yet.  There's a long
forum at the bottom of the control's site where no one else seems
to have the problem.

Also, I thought on a general forum someone might have
seen something like this when putting, say a C# control
into a C++ app; something commonly known, and
not specific to this specific control.

Steven

> Can you provide a link to the control in question?
> Unless others can "see" the details, it's unlikely you'll get useful
> answers.
>
> Have you contacted the control author(s) to ask about your issues?
Linda Liu [MSFT] - 23 Jul 2007 04:37 GMT
Hi Steven,

I have tried to download the IP address control you have mentioned from the
codeproject web site and performed several tests.

Firstly, I try to use the IP address control of the VS05 version in a
managed Visual C++ Windows Application project. I add the IP address
control in the Toolbox and drag it onto a form. Then I build the managed
VC++ project and all is fine without any warnings.

Secondly, I try to use the IP address control of the VS.NET 2003 version in
the same managed VC++ project. Repeat the above steps. When I build the
project, I get the same warnings as you did.

So, if your managed VC++ project is developed with VS05, please use the IP
address control which is developed with VS05 as well.

Please try out my suggestion and let me know the result.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
VisualHint - 10 Sep 2007 16:47 GMT
Hello Steven,

just for your information, if this is a path that interest you, I
developped a commercial framework named FieldPackEditor, specialized
in field-based editors. The DateTimePicker is the main example, but it
can also create ip address editors. The sample provided showcases
exactly that.

Best regards,

Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart FieldPackEditor.Net / DateTimePicker replacement (http://
www.visualhint.com/index.php/fieldpackeditor)
Home of Smart PropertyGrid for .Net and MFC (http://www.visualhint.com/
index.php/propertygrid)
Microsoft PropertyGrid Resource List - http://www.propertygridresourcelist.com

> Iaddedan IP AddressControlI found online.
>
[quoted text clipped - 28 lines]
> Thanks,
> Steven

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.