| How can I Serialize control such as Button? (4 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, How can I Serialize control such as Button? I tried to do it with XmlSerializer and BinaryFormatter, but got exception: Class Button isn't marked as Serializable. I tried to mark as Serializable my own class inherited of Button, but got the same. What do I have to do to resolve this problem? Ivan |
|
| CColorDialog::GetColor() in DotNet (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I want to use the CColorDialog mfc class in my program with DotNet beta2. I write the following lines: CColorDialog clrDlg(RGB(128,128,254),CC FULLOPEN,NULL); if(IDOK clrDlg.DoModal()) { //COLORREF l clrNew clrDlg.GetColor(); CString str; str.Format ("0x%x",clrDlg.m cc .rgbResult ); AfxMessageBox(str); } The Color Dialog appears as desired . The problem is that the returned value of CColorDialog::... |
|
| How I can override the attribute. (4 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, How I can override the attribute, which I derrived from ancestor (base class). I insert my attribute, but VS WinForm designer used old attribute either. Ivan |
|
| Additional dependencies don“t work? (7 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, I m currently working on exposing unmanaged c classes as managed classes and am having problems with my dependencies. I m working with VS.NET RC1 on WinXP Pro. The unmanaged classes use 3rd party .lib files which I add to the Configuration Properties Linker Input Additional Dependencies box (and am assuming that this one is what was in Link Object/Library modules VC 6) . The path to these file... |
|
| endian conversions in C#? (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Does anyone have a byte swapping routine for big endian little endian conversion of int32s? I have a nice one in C that uses pointers. I'm a newbie to C# and am somewhat baffled by that lack of pointers for implementing fast little routines like this. thanks, Tom |
|
| The console windows disappears (12 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, everyone, In VC6 I write a console application, say: #include iostream.h int main () { cout "Hello\n"; return 0; } When I run it from the VC environment IDE a console window is displayed with the output of the program: Hello Press any key to continue However in VC7, the console window is displayed and disappears so quickly that I can't see the program output. Anyone knows how to keep the conso... |
|
| Beta 2 vs. RC1 (4 replies) |
| microsoft.public.dotnet.languages.vc |
| We are planning to release on Friday. Is there any news you can give me about RC1 that might influence us to upgrade to RC1? Or maybe convince us to stay with Beta 2? I'm looking for things like bugs fixed or bugs introduced, how much work involved to upgrade, anything kind of information you can share. How about when is Microsoft planning on shipping the general release. Thanks in advance, Carl |
|
| memory leak in ASP.NET. (6 replies) |
| microsoft.public.dotnet.languages.vc |
| I seem to have one. I have an API that consists of classes written in Managed Extensions for C that are wrappers for legacy C stuff. I have a stand alone program written in C#. My C# program looks okay. I have run this program for several minutes and it appears that the memory usage is relatively stable. I also have tried the same C# code in an ASP.NET page. I drive this web application by using W... |
|
| Callback from unmanaged C++ (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, Suppose I have an unmanaged C function: void register((int (*)(char *)) myCallback) { // ok, myCallback is registered } void notify() { // now, notify the client via myCallBack } If I try to provide the callback function from managed C : using namespace System::Runtime::InteropServices; delegate int CallBack(char*); // a delegate type public gc class ManagedClass { public int MyCallBack(char* ... |
|
| Is OLE DB not recommanded? are we all suppose to use ado.net? (4 replies) |
| microsoft.public.dotnet.languages.vc |
| I see a lot of discussion on ado.net, what happen to OLE DB consumer and provider? are they not long then recommended way for us to access the database???? which one is suppose to be fast??? Please advise. John |
|
| ATL Server Web Service vs. Managed C++ Web Service (4 replies) |
| microsoft.public.dotnet.languages.vc |
| Can someone explain the differences between the two and briefly describe the circumstances why you would choose one or the other? Thanks, Daryl Richter Exelon Power Team http://www.exeloncorp.com/powerteam |
|
| Which Language Should I Choose? (126 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi all I've posted an article at http://www.dotnet.za.net/viewarticle.asp?articleid 12 that deals with the issue of what language developers should choose when deciding to learn .NET. It goes through all the major options (Java/C /VB/Perl/Python/Delphi programmer) and gives the pros and cons of each of the major choices (VB.NET/C#/C .NET/J#/JScript.NET etc). Hopefully this'll be of use to all of y... |
|
| Custom Controls (5 replies) |
| microsoft.public.dotnet.languages.vc |
| Is it possible to create a custom control inheriting from System::Windows::Forms::UserControl just as the C# and VB control class libraries do? I created a C# control class library and then converted it to a C .NET project but when I drag it from the toolbox onto a C# Windows Form I get an error dialog that says "Attempt to access invalid address". Mark Schmidt |
|
| input from keyboard (2 replies) |
| microsoft.public.dotnet.languages.vc |
| If I want to receive input from my keyboard (example: a delete or enter key), what kind of event and is there any example of doing that? Let's say if I press delete on the keyboard, the program does this. The program is a simple dialog with listbox on it, if I press delete then it should remove highlighted items inside the listbox. Please help. Thx. Samuel |
|
| Header Files? Where'd they go?! (4 replies) |
| microsoft.public.dotnet.languages.vc |
| Hey all, I just started looking into managed extensions for Visual C and cannot figure out how to correctly include, import, use the correct libs... I used to "#include" the window.h file, but if I do that now I get a ton of linker errors. What is .net wanting me to include to get the same defs as windows.h had, but for .net stuff? I cannot find anything at all that is a decent example. All the ex... |
|
| attribute - Does not seem to take effect in Managed C++ apps (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi all, I am using build v1.0.3328 of the .NET framework SDK. Applying the [STAThread] attribute to the main() entry point in my managed C application does not seem to have any effect. The Apartment state still seems to hold the ApartmentState.Unknown value. However when i set values explicitly through the ApartmentState property of the current thread, it takes effect as expected. But I'm still pu... |
|
| possible bug?! (4 replies) |
| microsoft.public.dotnet.languages.vc |
| I was trying to make a property in MC and got the following error: error C2327: 'bluh::bluh::Delimiter' : member from enclosing class is not a type name, static, or enumerator (on line " property Delimiter* get Delimiter ()") I think the lexical parser is not working right the problem seems to happen when you have the property named the same as the object type returned by the get property, here is... |
|
| BUG in C++: array size passed to a C# code (3 replies) |
| microsoft.public.dotnet.languages.vc |
| Here is an example that demonstrates incorrect array handling between C and C# C# class code: public class Class1 { public Class1( int a, int b, char c ) {} public static void f( Class1[] v ) { System.Console.WriteLine( "array size is " v.Length ); } } and the C calling code: int main(void) { Class1* v[] { new Class1( 1, 2, 'a' ), new Class1( 3, 4, 'b' ) }; Class1::f( v ); return 0; } When I run t... |
|