|
I just got a copy of Visual Studio.net. Since I am new to programming I thought I would try building an app I have done in 6.0 so I could get a feel for the new lay out. I created a new class "CLine" for my drawing app and when I try adding functions like "CLine (CDC* pDC)" I get a message saying it's not a valid name. In 6.0 it works perfectly. Is there something I might be doing wrong? Any assistance and guidance would really be appreciated.
Thanks
|
|
|
|
|
What is the exact error message that is generated. It would also be helpful if you posted a snippet of the code that is causing the error.
Michael
Time flies like an arrow. Fruit flies like a banana
|
|
|
|
|
There does not seem to be an AVI animation control in .NET.
Disagree any one?
Joel
|
|
|
|
|
for now, the recommended solution is to use interop with media player.
|
|
|
|
|
Sounds icky but I'll take a look. I wonder what you have to distribute with your app to support this?
Joel
|
|
|
|
|
I'm trying to display a context menu that changes depending upon which node within the tree the user right-clicks on. I'm changing the menu in the popup event. The problems I'm having are:
1) when you right-click on an unselected node it is not selected (although it is drawn selected for a moment) which means the popup event thinks a different node is selected. Is there a way of making right-clicks before the popup event really select the node?
2) some nodes have no context menu - how do I prevent the menu appearing? In the popup event?
If anyone has some sample code or ideas on the best way to implement this context menu within a TreeView it would be most appreciated.
|
|
|
|
|
Well, I was going to post a question asking when we can expect a book reference on the FCL, and I found my answer and wanted to share it with CPians.
The book is "coming soon" according to MSPress, it will consist of 7 volumes (that hurts the pocketbook ) I think Volumes 1-4 will be pulbished first, with some 6000 pages. The link below worked off and on for me:
.NET Framework Class Libraries Reference[^] by MSPress
Soliant | email
"The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
|
|
|
|
|
I'm making a little program using VC++.net these days. But when I run my program(.EXE) on a computer without VC++.net installed, it asks for msvcr70.dll, so that I have to put this DLL together with that program. This troubles me a lot. The Property Sheet of my project has been checked carefully, what else could I do?
Thanks a lot for any hint.
Tiny Flying Elephant loves flying...
|
|
|
|
|
Is the .Net framework and Win forms better solution for a desktop GUI application (without network or Internet options) than MFC?
|
|
|
|
|
Keep in mind, .NET has the overhead of the Common Langauge Runtime that provides you with a managed environment (ie. garbage collection).
IMHO, MFC will provide better performance with the added cost of more complexity in coding than .NET programming.
It really depends what your requirements are and your skillset could be an influential factor.
Soliant | email
"The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
|
|
|
|
|
If kind of depends on the size of the app in question, but generally speaking, no. If you want to do traditional desktop windows apps, stick with MFC. .NET may get there soon, but it ain't there yet. If you have ever tried to do a large, complex desktop windows application with VB than you have a good idea of what using .NET for the same purpose is like. MFC still has better tools for desktop development.
.NET is great for doing internet based applications though.
I'm not a real reverend, I just play one on CP.
|
|
|
|
|
I have done several large apps with Delphi. I know VB is not a good solution for them, but I suppose that C# + .NET Framework will not be the same case.
|
|
|
|
|
I'm trying to use the C# wizard to generate a win form project (i.e., New Project | Visual C# Projects | Windows Application). When attempting this, I'm getting an error dialog during the creation of the project stating that "OLE Automation Server can't create the object". Although this used to work, after un-installing other previously installed applications, something got broke. Over the last two days, I've tried just about everything, to include the following steps:
1st: re-install (i.e., repair mode) vs.net.
2nd: checked event log (nothing there)
3rd: applied all the latest critical OS updates (in my case XP professional)
4th: confirmed that latest oleaut32.dll and olepro32.dll were on the box
5th: explicitly register both
6th: un-install and then re-install (i.e., new) vs.net
7th: apply non-critical OS updates (i.e., a desperate measure...)
8th: upgrade IE to v6
After all this, I still get the same dialog. Since all other apps on the box are functioning fine, it would appear that either (1) at least one of the vs.net dlls has been corrupted or (2) there is an incompatibility between vs.net and one of the OS dlls. Since (1) would have been taken care during the re-install, I'm inclined to lean in the direction of the latter, but find it hard to imagine...
Anyone experience anything like this with that product or have any other ideas for my to try?
Dave
|
|
|
|
|
Locate VSWizard.dll in VS installation directory. Then run
regsvr32 vswizard.dll
see if that fixes the problem
Step back, rub your eyes, take a deep breath, stretch a bit, and reflect on the relative importance of CP, CG, the age / travel time sustained by supposedly 'fresh' cheese curds, and Life in General. - Shog9
|
|
|
|
|
still get the error dialog after registering vswizard.dll. Thanks for the idea...
|
|
|
|
|
Hi,
the real subject would be:
passing a object between two different objects in seperate security contexts using remoting.
but the text wasnt big enought.
I am have problems with the following, i have a remote object that
copies a file from a folder to another folder and this works. Following me
so far?
Once I change the peermissions on the first folder and change the
permissions on the remote object (to allow it to access the first folder)
the application falls with the following error
An unhandled exception of type 'System.TypeLoadException' occurred in
mscorlib.dll
Additional information: No server registered or could not load class for
CLSID {34A8A978-6099-3D6D-BD4D-490CAAB280C3}.
I am new to remoting so i am not even sure that this is a legal action and wither it goes against the windows security model.
Thanks in advance
Damien
|
|
|
|
|
Hello,
I have the following proglem: I would like to unload the control from the form. After it's removal from Controls collection I cannot close the form. The Dispose method does not get to be called. Just as there was no proper cleanup done. However, the Dispose call on the control does not help. Does anyone an idea how to manage this, to my surprise not easy, task?
All it is done in .NET using Windows forms.
Thanks in advice
Vasek
Vasek
VB6, C#, MS DNA, MS .NET software developer
|
|
|
|
|
You need to use the System.Post.In.The.Right.Forum namespace and do not forget this line using System.No.Programing.Questions.Please;
Best regards,
Alexandru Savescu
|
|
|
|
|
Thank you for your reply, Alex! Very useful to solve my problem, indeed!
Vasek
VB6, C#, MS DNA, MS .NET software developer
|
|
|
|
|
I never meant to offend you Vasek! Please post the same question in the C# forum and I am sure that whoever knows the answer will help you at once. It is the second most active programming forum, so you will not have to wait a long time for a response.
Best regards,
Alexandru Savescu
|
|
|
|
|
He he, I was wondering why there was no replies of rightfull wrath to this. For a moment I thought that there was a team of pissed off CPians on their way to his home for doing some serious "teaching".
"After all it's just text at the end of the day. - Colin Davies
|
|
|
|
|
The problem was not the Controls unload. It works fine. I was wrong in handling events.
Appologize to everyone I posted the message here. I will be more carefull in the future.
Vasek
VB6, C#, MS DNA, MS .NET software developer
|
|
|
|
|
Getting value from stuff you don't own is a compelling
idea. Just think, someone else has created something
that has value, and has made it available to you. You
can now leverage its value in ways that makes all
parties richer. That's the promise of web services.
You need to know about web services. The advent of
standards-based web services marks a new era of
system development. First mainframe, then client-server,
the Web, now web services makes it possible to leverage
every legacy system of the past and do so much more
with your information assets.
Architag Press, a division of Architag International
Corporation, announces the publication of Web Services
Implementation Guide, Volume 1: Getting Started, by
Brian E. Travis and Mae Ozkan.
Sample chapters of the book is available at
http://www.architag.com/press/wsig.
This book will show you what a web service is, and
how you can align your internal systems and external
trading partner interactions to take advantage of this
new concept in system integration.
You will learn about the "Three Steps to Web Services":
* Automate internal systems
* Determine integration points
* Expose integration points as web services
This book is for systems architects, developers,
and I.T. decision makers.
Highlights in this book:
* Written in a light, entertaining style.
* Emphasis on architectural design for web services.
* A tutorial on the state of web services standards.
* Plenty of real-life examples of web service use.
* Tutorials on the key technologies: XML, SOAP,
WSDL and UDDI.
* Code samples of key XML-based web services
technologies and extensions.
* Companion Web site with all code samples and
late-breaking information.
----
Download sample chapters of Web Services Implementation
Guide at http://www.architag.com/press/wsig/.
Stanford Powers, Publisher Architag International Corp
Phone: 866-898-0001 Outside US: +1-303-426-3126
Email: spowers@architag.com Fax: 720-294-1396
|
|
|
|
|
How to write an aplliacation that would
be analogous to Java Applet , but using .NET
(and specificly Windows-Forms)
And how to "instantiate" such an application
on a web page.
I mean that I enter url to html page with
something like codebase tag , and then
the code would dynamically be loaded onto
my computer and working within the browser.
Just like java applet, but using widnows forms.
Thanx
Michal Januszczyk
|
|
|
|
|
Sounds like your talking about an ActiveX control, I am not sure of any other methods, especially using .NET. Are you trying to accomplish something that asp.net can not handle ??
Soliant | email
"The whole of science is nothing more than a refinement of everyday thinking." -Albert E.
|
|
|
|