|
I have not seen this problem...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Confirmed. Sometimes the cursor is placed on some totally wrong place. Can't say whether it only happens when the file is open though...
|
|
|
|
|
Yep. I've pinned it down to only occuring in C++ projects when the outlining feature is enabled ..
I have disabled outlining for my VC++ .NET projects and the classview behaves right. Everybody is obviously not having this problem, however I hope that Microsoft finds a fix for the few of us by the first SP.
Travis D. Mathison ---
--- After three days without programming, life becomes meaningless ...
|
|
|
|
|
I no I'm getting away from what this thread started out on... but.
I see you really are using VC++ 7.0. When I create a dialog in VC++ 7.0 I get a HTML version as well as the resource and DoModal seems to use them both. Have you seen any of this?
|
|
|
|
|
Yeah, by default the class CHTMLDialog is used instead of CDialog. You can ofcourse change this to CDialog when you first create the class for the dialog.
I guess it's Microsoft's way of trying to push people to using the HTML type dialog as it offers the possibility of richer dialogs etc. ...
Travis D. Mathison ---
--- After three days without programming, life becomes meaningless ...
|
|
|
|
|
Thank you!!!
Oh... then if I use the html code do I just delete the buttons off the resource so I don't have the buttons showing up twice?
If I go with CHTMLDialog can I still use the graphic interface for adding controls to the html?
|
|
|
|
|
You can indeed delete the buttons off the resource. I haven't fooled around with CHTMLDialog too much yet .. this next project I'm doing will have me doing it though.
Travis D. Mathison ---
--- After three days without programming, life becomes meaningless ...
|
|
|
|
|
Yah i just encountered the same pain in the butt.. turn off the outlining (which is one of the coolest features ).. and keep your fingers crossed that it will work one day soon.. it works when outlining is on, but only the first time you double click on the class/function.. doesn't seem to affect double clicking on variables, but that looks at the .h not the .cpp.. anyone got a phone number for a MS developer to make sure they are workin on it?
-dz
|
|
|
|
|
Yep, it is a problem with VC++ .NET and outlining .. I'm hopeing as well it gets to Microsoft and the issue is rectified with first SP
Travis D. Mathison ---
--- After three days without programming, life becomes meaningless ...
|
|
|
|
|
User Controls:
I have created a user control, simple datagrid, using code-behind. In my .ascx file, I used <%@ Control Language="c#"
CodeBehind="RealEstateSummary.ascx.cs" AutoEventWireup="false" Inherits="ETECH.RealEstateSummary" %>
and in the .cs I inherited from the UserControl Class using the Namespace ETECH.
Ok...I then created a simple .aspx file that contains the following:<%@ Register Tagprefix="MYETECH" Namespace="ETECH"
Assembly="ETECH" %>. I don't want to use the SRC attribute. My goal is to "use" it from the ETECH.DLL and not the SRC. Upon
execution I get the following message. I know the compiler found the control but I don't understand why it won't create the object
to use in my .aspx page. Can anyone help me? The reason for using .dll is so that other "projects" can use the .DLL by using
reference thus using the control without supplying the code.
...Sorry for the stupid question!
Thanks
Mark
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location
of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
ETECH.RealEstateSummary.InitializeComponent() in c:\documents and settings\mark gordon\my documents\visual studio
projects\hussey\etechprop\realestatesummary.ascx.cs:146
ETECH.RealEstateSummary.OnInit(EventArgs e) in c:\documents and settings\mark gordon\my documents\visual studio
projects\hussey\etechprop\realestatesummary.ascx.cs:136
System.Web.UI.Control.InitRecursive(Control namingContainer) +235
System.Web.UI.Control.InitRecursive(Control namingContainer) +179
System.Web.UI.Control.InitRecursive(Control namingContainer) +179
System.Web.UI.Page.ProcessRequestMain() +171
|
|
|
|
|
The exception that is being thrown is caused because you are accessing an object without first creating the object.
On line 146 of realestatesummary.ascx.cs you are using the object that is the culprit. Check in your code and make sure that somewhere you are assigning to that variable.
HTH,
James
Sonork ID: 100.11138 - Hasaki
"Smile your little smile, take some tea with me awhile.
And every day we'll turn another page.
Behind our glass we'll sit and look at our ever-open book,
One brown mouse sitting in a cage."
"One Brown Mouse" from Heavy Horses, Jethro Tull 1978
|
|
|
|
|
Hi.
I'm relatively new to C# and .NET and I'm trying to implement a MailMessage class using C#. When I build my app I get an error on this line "Using System.Web.Mail;". The error is :
C:\Vinna\vs.NET\fc\fcBunkaskraning\MyWatcher.cs(7): The type or namespace name 'Web' does not exist in the class or namespace 'System' (are you missing an assembly reference?)
What am I doing wrong??
Best regards,
Kristjan
|
|
|
|
|
As I said, I'm relatively new to .NET and C#. I've figured it out. I added a reference to System.Web and now it works
Best regards,
Kristjan
|
|
|
|
|
I'm sure this is a question many people have had and asked before, but I haven't seen or heard the answer. Is there an equivelent feature for the VC++ 6.0 ClassWizard in VS.NET?
I've seen how you can do the Add->Function, Add->Variable, etc. But that is obviously tedius if your adding a lot and I know it's here somewhere .. I've looked through all the Custom tools buttons, etc.
Help please ..
Travis D. Mathison ---
--- After three days without programming, life becomes meaningless ...
|
|
|
|
|
sorry ,there is no calss wizard in VC7
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
I wonder if this is what people want? Anybody think this will ever change per developer request? Or do you all think it's a feature that has been left with VC++ 6.0-- and gone for good?
Travis D. Mathison ---
--- After three days without programming, life becomes meaningless ...
|
|
|
|
|
Travis D. Mathison wrote:
Or do you all think it's a feature that has been left with VC++ 6.0-- and gone for good?
That's because MS want make the interface of different languages the same
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Ahh, yes. Ofcourse. I should have thought of that -- that makes sense then.
Travis D. Mathison ---
--- After three days without programming, life becomes meaningless ...
|
|
|
|
|
Microsoft has just changed the interface. All the features existing in VC 6.0 are also available in VC 7.0 also, but they have just moved to VB kind of interface.
You Can Add Function,Variable etc with normal right clicking on Class View.
If you want to add some message handlers, or event handlers you need to right click the class and then select its 'properties'. Then you can select the buttons on top for 'Events', 'Messages' handling.
It is a real fact that the previous interface in much more simpler than the one existing in VS.NET.
|
|
|
|
|
I've not yet looked at VC++ 7, having been concentrating on C#. But I expected that we might run into problems of this sort when we moved to a combined IDE. No doubt, some of the more ambitious of us (not me!)will write a ClassWizard add-in. If not, i expect it will reappear in the next version of VS.
Kevin
|
|
|
|
|
I recently ported an old VC++ program from 6.0 to .NET. There were a few issues to begin with, but the only thing that I've changed in the product is that I'm using the Shared DLL option to reference MFC now instead of Static Library. The program builds fine and runs, but when I perform pointer intensive operations the performance in .NET is horrible. We're talking an order of magnitude here. Execution that takes 2 seconds in 6.0 takes 30 seconds in .NET. I've tried all the optimizations I can think of but none of them did anything to increase performance. Should I just stick to 6.0 for now? Why is it so slow? It's unmanaged code so I don't think GC would be affecting performance at all. It seems like it is though. What's the deal? Any input is appreciated.
myenigmaself
http://myenigmaself.gaiden.com
myenigmaself@yahoo.com
"If debugging is the process of removing bugs from code, programming must be the process of putting them in."~~Dykstra
|
|
|
|
|
I haven't gotten to performance issues yet.
When I create dialogs in VC++ 7.0 they get some HTML code as well as a resource and DoModal() seems to be using both. Are you seeing this?
|
|
|
|
|
my issue was resolved once I moved to release build. debug is a lot slower in vc.net, but release is the same. I even noted a few performance improvements in .net.
|
|
|
|
|
Hi, I'm trying to send an object across a network and I'm trying to implement serialization but I'm not doing it right. I tried searching for tutorials and articles but they're for C#.
[Serializable]
__gc class FileTransferHeader
{
public:
FileTransferHeader(String* theFileName, Int64 theFileSize);
__property Int64 get_Size(){return fileSize;}
__property String* get_Name();
private:
Char fileName __nogc[256];
Int64 fileSize;
Int16 fileNameLength;
};
and later in some other class that has a networkstream, and a BinaryFormatter() and an object of type FileTransferHeader named theHeader.
I try theBinaryFormatter->Serialize(theNetworkStream, theHeader);
and I get an UE.
Unhandled Exception: System.Runtime.Serialization.SerializationException: The type $ArrayType$0x2984d64b in Assembly WinsockContinued, Version=1.0.792.39872, Culture=neutral, PublicKeyToken=null is not marked as serializable.
--------------------------
One problem with the programmer's mentality is insecurity. This goes deep. An insulting college litany says that failed mathematicians become computer programmers. They are also ridiculed for being nerdy losers, for being too fat or too skinny, and for having few social skills. Most programmers can be spotted easily in a crowd. Nobody really wants to hang out with them. Put thousands of these people in one company and if you can get them to work, you become a billiona
|
|
|
|
|
What I am wondering is how much of the .NET framework runs on the CLR. As i am looking through the .NET libraries with ILDASM, it seems most of the heavy processing is delegated to native functions. Everything appears to be just a big wrapper. I am not trying to trash .NET, i am a big fan. I was just wondering if Microsoft doesn't trust their CLR with heavy processing, how do they expect us to.
Again, I am no expert. The above assumption is based on a few hours of browsing "System.Drawing.dll".
Michael
|
|
|
|