microsoft.public.dotnet.languages.vc Archive - February 2004
Post a message to this list
Messages
Page: 12345678910
inverse of cosine (6 replies, VIP)
microsoft.public.dotnet.languages.vc
How do I get the inverse of a cosine, that is, cos(a) x, I have x and I need to know a? I don't need the hyperbolic inverse, unless I can use it to get the cosine inverse. Greetings, Mario
Allocate an array of pointer (2 replies)
microsoft.public.dotnet.languages.vc
Hi, I try to allocate an array of pointer with this pieces of code: int **a; a new (int *)[3]; but the compiler report that : missing ; before [. It's may be an easy question. However, how to cope with the message ? Thanks for your attention.
Measure my code (2 replies)
microsoft.public.dotnet.languages.vc
Is there any tool (accompany with Visual Studio) which help me estimate the speed (or time duration of my application) ? Thanks
How do I force a window to scroll? (4 replies, VIP)
microsoft.public.dotnet.languages.vc
I want to force a window to scroll and am finding this to be an impossibly difficult task. First I tried using the API functions ScrollWindow and ScrollWindowEx but they do not work. The portion that is being exposed in the scroll is not painting properly even though I've passed it the flags to tell it to invalidate and erase the new area's background. Then when I force the window to redraw by cov...
I'm a newbie (2 replies)
microsoft.public.dotnet.languages.vc
Hi everyone I used to use VS 6.0 to create my C application. I just started learn how to use Visual Studio.Net. I wrote a small program like this: int main() { string name; cout "What is your name?"; cin name; cout "Welcome to my World" name "Hope you enjoy" endl; return EXIT SUCCESS; } I want to know how to stop my console screen. It runs too fast I could not see anything. Thanks
Reading binary file (2 replies)
microsoft.public.dotnet.languages.vc
Can someone tell me the best way to read fixed length string content from a binary file. There are no delimiters between strings. I only know the starting byte and that each string is 64 Bytes long. I was doing something like the following but it seems as though I must be doing this the hard way? Thanks in advance for your help. Dave BinaryReader *binaryInput; FileStream *fileInput; wchar t tHold;...
newline format control in richtextbox (12 replies)
microsoft.public.dotnet.languages.vc
I can't seem to add a newline (/n) to get a richtextbox control to display text on successive lines. The text that I type is overwritten. How do I remedy this? My example: richTextBox Multiline true; richTextBox Text S"First line /n"; richTextBox Text S"Second line"; Thanks, DAS
"All public methods should be virtual" - yes or no / pros & cons (163 replies, VIP)
microsoft.public.dotnet.languages.vc
I'm on a team building some class libraries to be used by many other projects. Some members of our team insist that "All public methods should be virtual" just in case "anything needs to be changed". This is very much against my instincts. Can anyone offer some solid design guidelines for me? Thanks in advance....
cast using reflection (2 replies)
microsoft.public.dotnet.languages.vc
Hi all, I have an object created via reflection of type CateringObject.FBO. I'm trying to assign it to a property that accepts objects of type CateringObject.IDeliveryDestination (which is implemented by CateringObject.FBO). When I try to set the property to an object of type FBO, I get a bad type error. Using reflection, how do I cast the FBO object to IDeliveryDestination? Any advice would be ve...
C++ compiler error with templates (4 replies)
microsoft.public.dotnet.languages.vc
I found the following compiler error with Microsoft Visual C .NET. I use different functions with return types determined by a Traits class. Function g() below works ok, but when I put the two declarations f1() and f2(), the compiler gets disturbed. The error message does not even reproduce the original code correctly. When the two declarations are switched, the problem goes away. Benedikt // #inc...
Where to find program VC++ .NET on 3D-Graphics? (4 replies)
microsoft.public.dotnet.languages.vc
Hello. Inform, please, where to find programs for Visual C .NET 2002 or 2003 on building the three dimensional solid and surface z f(x, y) in 3D space (without usage of other libraries such as DirectX and OpenGL)? In the answer I can inform, where to find these programs on Visual Basic ..NET 2003. Beforehand I thank for the answer, Dr. Zharkov V.A., Moscow, Russia.
set up include and lib path in .NET? (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hello, In Visual C 6.0, it is easy to setup include path and lib path. But I cannot find the way to add include or lib path for .NET through project property? How it can be done? Thanks, peter
Managed C++ Compiler Bug ambiguous conversion with class Object (2 replies, VIP)
microsoft.public.dotnet.languages.vc
There seems to be a bug in managed VC when a class is named 'Object'. The code following demonstrates the problem. Note that if the class named 'Object' is renamed ( and references to it changed appropriately ) it compiles ok. It makes no difference if class Object is fully qualified with the namespace, or if it's put in its own namespace ( outside of AccountManager ) and fully qualified to that o...
Managed Code Pls help me! (3 replies)
microsoft.public.dotnet.languages.vc
Hello! Could anyone help me please. I tried the following I created an application in .NET 2003. The project is a MFC Application a CDialog. I ran the application fine. I changed the properties for the app so I should use Managed Code (Use Managed Extensions YES). It still ran fine. I should now be able to add new things like Windows Forms. Am I right? You see I tried to add a Windows Form(:NET) i...
How to get notification of menu click added dynamically? (4 replies, VIP)
microsoft.public.dotnet.languages.vc
Hye, This is Jigar mehta from India. I have made one application that adds dynamic menu items from the database. Each menu item has one ID and menu item's text is coming from the database. Now, I want to get the notification of the menu item click which is added dynamically. I want to put one common routine where I can distinguish between all menu item clicks. Menu Items can be two or hundred. So,...
DLL problem - runtime binding (2 replies)
microsoft.public.dotnet.languages.vc
Hi, I have a DLL that exports some classes. When I look at the map file I can clearly see the managled names of all exported classes. Now I create an executable that uses this DLL. Linker has no problem with imported symbols from the DLL and executable compiles and links. When I now run this exe, it complain about not finding an entry point to an imported function from the DLL. Via "depends.exe", ...
Problems with allocation (2 replies)
microsoft.public.dotnet.languages.vc
Hello, I have a problem. The following program throws a "0" instead of a "25". IÂ m from the JAVA world, and in JAVA the output is "25". Hope, anybody can help me. Thanks ... class Content{ public: Content(){ wert 0; } Content::~Content(){ } int getValue(){ return value; } void setValue(int value){ value value; } private: int value; }; #include "Content.h" class Container { public: Container(){ } ...
Run-time check failure #0 (4 replies)
microsoft.public.dotnet.languages.vc
Hi, I get this exception everytime I debug and is just annoying. "Run Time Check Failure #0 The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention." The exception is being thrown from a third party code base which I can't even fix (and I ...
array of pointers to class methods (11 replies)
microsoft.public.dotnet.languages.vc
Hello, Hope someone can tell me how to do this I'm an old 'C' hack so sometimes I get stuck in old think...this is one of those times... I've got a bunch of methods in a class that I want to be able to lookup and call from an array. In 'c' I'd just do something like: struct thingie { char *name; void (*ptrtofunc)(); } listofthingies[] { { "func1", func1 }, { "func2", func2 } }; where func1 and fun...
Linker warning about function ordering with VC.NET 2003 (4 replies, VIP)
microsoft.public.dotnet.languages.vc
My project uses the /ORDER specifier to order functions as specified in file containing the decorated names of packaged functions (COMDATs). I am in the process of upgrading from VC6 to VC.NET 2003. When linking a release build of my project VC.NET 2003, the following warning occurs for each function that is being ordered: SUTL X86OrderComdats.dat : warning LNK4065: '?SUTL SomeFunction@@YAXXZ' can...
COM Object Won't Register in .NET (2 replies, VIP)
microsoft.public.dotnet.languages.vc
I have a COM (inproc) object that builds, registers and runs fine in VC6.0. It builds on .NET and "registers" without error, but nothing in the registry gets updated. This code was unmanaged in 6.0 and is likewise in .NET. Any clues? Paul
for employability.... vs c++.net or vs c++ 6? (2 replies)
microsoft.public.dotnet.languages.vc
hi there, i was wondering please on which version of c i should concentrate? i want to make myself as employable as poss... which version should i focus on please? the newest version seems the obvious choice, but are employers using it widely?? thanks.
VC++.NET & ASP.NET (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi all, i am a newbie. Can we call & use VC .NET within ASP.NET page? Thanks very much
Displaying line numbers in source files? (4 replies, VIP)
microsoft.public.dotnet.languages.vc
Is there an option for this? It woul certainly make debugging much easier! JE
Resource Only DLLs Fail to Link VC++ 7.1 (3 replies, VIP)
microsoft.public.dotnet.languages.vc
I have uncovered an interesting problem with resource only DLLs. If I create a project with a long name and the name includes periods ("."), the IDE will fail to kick off the linker. The resource compiler seems to successfully compile the .rc to a .res, but the linker never fires up. If I force a link, the DLL will be created but will contain no resources. An example project name that fails to lin...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com