| Argument to __identifier keyword (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi, In MC spec 22 identifier Keyword: The argument to identifier shall be a C keyword. But the following compiles fine: int main() { int identifier(num) 123; return identifier(num); } What am I missing? Thanks, Simon |
|
| Questions on __value class (6 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi, In C#, value types are derived from System.ValueType (and hence from System.Object). Does this hold true for MC ? value class ValueClass {...}; Is ValueClass above derived from System::ValueType (and hence from System::Object)? Thanks, Simon |
|
| optimize Pentium 4 and above bug!? (3 replies) |
| microsoft.public.dotnet.languages.vc |
| I beleave I have found a bug in the C compiler of Visual Studio 2003 The correct output for the code below is "Color is: 99b2cce5" but if I turn on the Pentium 4 and above (/G7) options I get the follow result "Color is: 80000000" which is completly wrong. I found this bug when upgrading from visual studio 6.0 and my colors turned black! :) /O2 /Ot /G7 /I "../../DevelopmentSystem" /D "WIN32" /D "N... |
|
| Bug: specialization of static member variables not supported ion VC7.1 (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi, the following does not compile with VC7.1 (and I think it should according to the C Standard (1998)) template class T struct SpecializeStaticMember { static int m Num; }; // declaration and definition of the general member variable // (will be 0 initialized because it has static storage duration) template class T int SpecializeStaticMember T ::m Num; // declaration of the special member variab... |
|
| visual studio .net c++ projects (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hello, I hope there is a solution to this. I am required to develop a service application using Visual Studio ..NET. I am required to develop it using C . Originally we set out using Visual Studio .NET 2003. But for the database bugs in this framework, this environment supports Windows Service project type for the C language. I currently have a solution prepared and (mostly) working but for the ..... |
|
| How to map a Windows message in VC 7.0 ? (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi: In VC 6.0, it is easy to map a handler to a Windows message, in which header file, MESSAGE MAP and default handler function are all taken care of by the VC 6.0 IDE. Just wonder if VC 7 (.NET) has the same ability? Thanks for your info. Polaris |
|
| Bit handling (3 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, I've got the following problem: I have a 16bit integer, and I want to get the value, that is represented by the last 13 bits, like that: XXX????????????? //I'm interested in all that is covered by '?' Additionally, I need to convert this value to integer. For all that, I wrote the following macro, but I'm not sure if it's working properly, so please have a look: #define OFFSET(offset) (offset ... |
|
| Binary searching (9 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi, can anyone tell me what's the best way to search in binary content? Best if someone could post or link me to some source code (in C/C ). The search should be as fast as possible and it would be great if the engine (or so) would accept multiple parameters (like a search offset, a max number of bytes to search in etc.). Any ideas? Thanks a lot again, Gordon |
|
| GetMessage from hidden window (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Strange, very strange. I'm using CDialog to process messages form CMenu. CDialog does not enter modal state. CDialog constructor have Create() and CDialog destructor have CWnd::DestroyWindow(); I'm using following code to dispatch message to CDialog: MSG msg; GetMessage(&msg); DispatchMessage(&msg); Now, if CDialog is visible code runs ok. If CDialog is NOT visible code stops at GetMessage() and h... |
|
| any performance diffrence btw MC++2003 & 2005 (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| is there any performance diffrence between MC 2003 ,other .NET languages and MC 2005 (cause of an optimization) ??? |
|
| Does .net replace win32? (7 replies) |
| microsoft.public.dotnet.languages.vc |
| Okay...one last question. I've pretty much spent the weekend reading up on .Net, Soap, web services and enough three letter acronyms to feed the world alphabet soup. Is it a fair and mostly true statement to say that when programming Visual C using .Net, the .Net stuff basically replaces the Win32 API? I know you can still make a call back to win32 if need be, but the general idea I gather is that... |
|
| Array Name (3 replies) |
| microsoft.public.dotnet.languages.vc |
| Hello, I need some help with something simple. How would I be able to display two or three names in an array? So, if I have an array called Names[ 3 ] { 10, 10, 10 }; //Names can hold up to three names with 10 characters each. First I want to let the User to type his/her name up to three times. How do I let the make the element in the array count in the while loop??? For example: .... Please help ... |
|
| Need Help on Arrays (2 replies) |
| microsoft.public.dotnet.languages.vc |
| This program I'm working on is asking for an "Array of counters," What is that? |
|
| is this an compiler bug ? (5 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| i have two classes... public class1{ // properties class2 copy; } public class2{ // properties create copy of class1; } i got error in class1 that "class2 is undefined"... however intelli show shoutcut of class2. if compiler goes step by step; while declaring class1 it is possible to be class2 undefined but it is too moronish... how could i solve it ??? ps: if i take class1 bottom of class2 then i... |
|
| Bare bone program hangs (Visual Studio 2003) (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi there. I just installed Visual Studio 2003 Professional and discovered that the most basic program hangs in the IDE. It runs fine from the command line however. #include "stdafx.h" int tmain(int argc, TCHAR* argv[]) { return 0; } Note that this executable (test.exe) appears in the task manager but the IDE is completely frozen and needs to be forcibly shut down. Any ideas? (am using Win2000 Pro,... |
|
| send this key as refrence (3 replies) |
| microsoft.public.dotnet.languages.vc |
| i have a form name Form1 i want to create a copy of Form2 which know th refrence of Form1. example: private: System::Void button1 Click(System::Object * sender, System::EventArgs * e) { Form2 * copy new Form2(this); copy ShowDialog(); } constructure of Form2 is like.. ( but i get errors ??? ) public: dialog(Form1 *const refree) { InitializeComponent(); } |
|
| Adding a control to ControlCollection. (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I am having trouble adding a control to ControlCollection in a class I have derived from GroupBox. Here is what I've got. gc class RowColumn : public System::Windows::Forms::GroupBox { public: RowColumn(){ ignoredcontrols new System::Windows::Forms::Control::ControlCollection(this); } void IgnoreControl(System::Windows::Forms::Control* control){ ignoredcontrols Add(control); } void DoSomething(){ ... |
|
| Debug Error on virtual unmanaged functions. (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hello, I'm writting an application using mixed mode with C and C .NET, and I have a problem, if I put a breakpoint or try to enter (with step by step) into a virtual and unmanaged method, the debugger tell me: "There aren't source code avalaible for the current location", and the disassembler window appears. I can enter with the debugger into functions of the same file but these functions aren't v... |
|
| compiler bug (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I have a strange problem with the code below. I suspect a compiler bug. When compiling the code below with 7.1, i get a number of "undefined variable" errors, but the code should compile fine. However 1) If I remove the forward declaration template typename Ch, typename Tr std::basic ostream Ch,Tr & operator (std::basic ostream Ch,Tr &, const timer&); the same code compiles fine 2) If I change to ... |
|
| listview subitem (7 replies) |
| microsoft.public.dotnet.languages.vc |
| Hello. I have one question I make Listview with 4 columns. And I want add text to to column 2,3,4. With listview1 Items add ("Text") I can add text only to first column. In Visual basic.NEt I can write listview1.Items(x).Subitem(number column).Add ("Text"). Is something like this in VC.NET? Thanks for answers. |
|
| VB6 + VC++ : how to avoid flicker? (5 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, I am trying to avoid flicker in this situation: 1) I create a simple VB6 Window application (a void form) and I define this code for the form (that has the autoredraw property set to false): 'NOTE: this declaration is in another file Declare Sub InstallMsgHandler Lib "E:\TestMsgHandler\Debug\TestMsgHandler.dll" (ByVal lpPC As Long) Private Sub Form Load() InstallMsgHandler (Me.hWnd) End Sub Pr... |
|
| AddIPAddress, DeleteIPAddress on Windows NT 4.0 (2 replies) |
| microsoft.public.dotnet.languages.vc |
| hi i'm using the APIs AddIPAddress and DeleteIPAddress from the Iphlpapi.lib in the Microsoft Platform SDK. On MSDN i found the compatibility of them: Windows NT: Requires version 5.0 or later. thats fine but now my programm must also be excecutable on a Windows NT 4.0. how can i get the functionallity for AddIPAddress, DeleteIPAddress and all other network functions on NT 4.0??? please give me a ... |
|
| Migrating from VC++ v6 to v7.1 (6 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| With Visual C v6, I was able to open a .cpp file into the IDE, type F7, and have an executable. With .NET 2003, that is no longer the case. Is there a quick and dirty way in .NET to perform like its predecessor? |
|
| SharedMemory Base address mapping (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi, I wonder... Is it possible to define the address to which shared memory will be mapped? In other words is it possible to apriory define the address MapViewOfFile returns? Dlls are being loaded and relocated on the relocation table during Process Creation, is it possible to use/manipulate this mechanism somehow... ? Nadav. |
|
| Screen flash when using cl.exe (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I'm using an application (a Tcl/Tk app) that uses cl.exe to compile code in the background. One very annoying feature is that a DOS box is flashed to the screen and then withdrawn during linking. Imagine using this application to link thousands of executables and trying to use the machine while thousands of temporary DOS boxes appear and temporarily take focus away from the application you are usi... |
|