| managed vc to create .dll (2 replies) |
| microsoft.public.dotnet.languages.vc |
| i'm tring to learn creating a dll and including it to a program... iknow that in csc.exe if you give output parameter as file.dll it automatcally converts to dll... is it same for cl.exe nad link.exe ??? i couldn't find much about this on the internet |
|
| Overloading of operator ? (10 replies) |
| microsoft.public.dotnet.languages.vc |
| Is it possible ? I can't figure out how to do it. Gawel Pierwszy yk z pucharu nauk przyrodniczych czyni ateist , ale na dnie pucharu czeka Bóg. Werner Heisenberg |
|
| how to get pure html without javascript from ms web browser control (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hello, I used web browser control in my program. but I found that if html includes javascript, ihtmldocument object still has this scripte, not pure html. does anybody know how to get the pure html (script has been interpreted)? Thanks in advance! |
|
| Testing for NaN (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| How do I test a float for NaN (or other weird garbage) without messing up my FPU or throwing exceptions or other bizarro things? I'm using VS6 Thanks, Rudy float f; SetFloatToFunnyValue(&f); if( IsFunnyValue(f) ) { f 0.0f; } |
|
| Build an enterprise application for a customer with aprox. 100 Clients ? (2 replies) |
| microsoft.public.dotnet.languages.vc |
| HI!!! If you would happen to get the chance to build an enterprise application for a customer with aprox. 100 Clients (.and increasing) which technology and architecture would you choose. The security policy is pretty strong so we would have actually only port 80 available. Besides that no deployment effort on client side is desirable. There is a 100Mbit LAN and this new application would be deplo... |
|
| Is it possible to delete an event handler using .NET framework? (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I'm using .NET VC , and when I add an event handler, everything looks good it shows up in my class browser, etc. But I could not figure out how to delete the EVENSINK!! The only way seems to be if I go and remove the lines from the .h and .cpp code manually... I am thinking that I must be missing something... Because in VC6, I was able to delete the event handlers using the Class Wizard... I would... |
|
| Finding Path to Source Files (6 replies) |
| microsoft.public.dotnet.languages.vc |
| How can you find the location on the drive of your source files in Visual Studio v7.1? With v6.0 it was easy: Just right click on a file name (or white space in the editor), and select Properties. nwells |
|
| Native funtion pointers in managed class (2 replies) |
| microsoft.public.dotnet.languages.vc |
| hi, I want to use a native function as a member variable in managed class. I'll set this member variable to a native funtion pointer with its retunr type and params. so then I call such as PInvoke method on this member for achieving call global unmanaged callback function. I looked GetManagedThunkForUnmanagedMethodPtr method fro achieve this but has example in msdn or other resources Anyone help m... |
|
| Disassembly notation in 7.1 - can't see variable's address (9 replies) |
| microsoft.public.dotnet.languages.vc |
| This c line in MSVC .net 2003 7.1: f(&d); Generates this assembly: 00411C67 lea eax,[d] 00411C6A push eax 00411C6B call f (411159h) 00411C70 add esp,4 What's up with the "[d]"? I want to see the pointer value! How do I make the pointer value appear? Please don't say "open your executable in notepad." Rudy PS: I'm trying to debug a problem where the pointer value (&d) changes during execution! |
|
| Confusing Managed C++ Link Errors? (3 replies) |
| microsoft.public.dotnet.languages.vc |
| I get the following odd link errors. This code builds perfectly in non managed VC 7.1. Any ideas on where to begin? thanks! msvcprtd.lib(MSVCP71D.dll) : error LNK2005: "public: class std::basic string wchar t,struct std::char traits wchar t ,class std::allocator wchar t & thiscall std::basic string wchar t,struct std::char traits wchar t ,class std::allocator wchar t ::erase(unsigned int,unsigned ... |
|
| Cannot convert parameter problem (6 replies) |
| microsoft.public.dotnet.languages.vc |
| I have the following code in a header file (pseudocode): template class T class Pt3 : public Vec3 T { public: // Constructors Pt3() {} void setVertFcn( void (*vf)(T x, T y, T z)) { vertfcn vf; } } and in another header: class SplineCurve { public: CurveD() { Pt3 double pt; pt.setVertFcn( glVertex3d); } } Compiler complains: error C2664: 'Pt3 T ::setVertFcn' : cannot convert parameter 1 from 'void ... |
|
| Vector or Array of object in managed C++ (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hello, do you know how it's possible to work with Array of Object or with vector in managed Visual C .NET Thank you sfouilloux |
|
| 'System::String __gc *' to 'std::string' (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, Can anyone tell howt to convert 'System::String gc *' to 'std::string' Thanks |
|
| Linker errors (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Sorry to post this again. I didn't get any responses the previous time I posted and I really would appreciate an answer. Even if someone could just acknowledge that this is a bug and/or give me a few clues as to what factors I could change to reduce this problem. I am getting these linker errors even more frequently now (today they started occurring after about three builds after a complete rebuil... |
|
| MFC modeless dialog box question (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi, for a specific application i need to implement a modeless dialog box. the code should work with VC6, so i decided to use MFC and not .NET. i tried to learn how to do this by modifying an MSDN example that implements a modeless dialog box. i added some code to show the about box modeless, just to see how this is done, but it simply would not work i think i do exactly the same as the example doe... |
|
| Output and input from console window? (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I am working on a Win32 program with an additional console window to output messages. I also want to type commands in the console window. Is there any common way to achieve that? For example how do I output messages while the console is listning for command inputs? I'm looking forward for your answer with great anticipation |
|
| Simple way to add #using in mixed Cpp? (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I am creating a mix managed/unmanaged C project. Since some of the *.cpp's do not use managed extension, the project option of [Use managed extensions] has to be set to 'no'. ( Note that using '#pragma unmanaged' in a managed *.cpp file: 1) slows down compilation, 2) and severely pollutes the exported managed namespaces. ) This forces me to manually add #using statements. I avoided configuration d... |
|
| VC++ .NET 2002: Error C1803 in creation of a simple regular DLL (4 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi all, I used 'Empty Project'/native C of the VC .NET 2002 to do 'Build' for the SimpleRegular.cpp and SourceFile.h files of the attached code of creation of a simple regular DLL and I got an Error C1083 can not find or open stdafx.h . Is stdafx.h already built in the VC .NET system? What is wrong in this coding to do 'Build'? Can someone help and point out what is wrong with this coding and how ... |
|
| Bad DLL Calling Cinvention (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I use the C .NET to write a dll and call this dll using VB6. VC Code: #include "stdafx.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul reason for call, LPVOID lpReserved ) { return TRUE; } extern "C" declspec(dllexport) int SPS Add ( int i1, int i2 ) { int sum ; sum i1 i2 ; return (sum) ; } VB Code: Sub Main Declare Function SPS Add Lib "SPS.dll" (ByVal i1 As Integer, ByVal i2 As Integer) As In... |
|
| list with structures (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi, I try to use the C std class "list" to create my linked list in my MFC app. Now, this list shall contain instances of a structure, like: typedef struct MYSTRUCT { int a; int b; }MYSTRUCT; How can I create a linked list of that? Thanks a lot Peter |
|
| Attribute providers for unmanaged c++ (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi All !! MSDN Magazine April 2001 (http://msdn.microsoft.com/msdnmag/issues/01/04/attributes/default.aspx) refferes to an attribute provider for unmanaged c . ATL makes heavely use of this feature, however, I can't find any documentation / interface description for writing one. Apparently the compiler hook looks takes the following form (from atlplus.h; line 18 20), but that will not get me far..... |
|
| Best way to use static method functions from MC++ lib in VB.NET (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I've created a MC library with a class that contains some static method functions. I create a reference to the library from a VB.NET application and I can call the functions with no problems. I'm wondering if there is an alternative to creating a reference to the dll or assembly? Is there a way to register a namespace in MC or VB.NET so that my class works like standard base classes such as the Sy... |
|
| vector, is this a bug in MS VC6? (5 replies) |
| microsoft.public.dotnet.languages.vc |
| My program needs to access a sequence of objects stored in a vector. However, when the last element in the sequence is deleted from the vector(eg. NodeCurrent is the last element), the for control does not return, instead it goes on and on until the program crashes. Is there a way to solve this problem? Thanks in advance. OS: WinME Compiler: VC6.0 class CNode { public: CNode(){}; ~CNode(){}; int n... |
|
| IL editor (12 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, does anybody know where I can find an IL editor ? thnx Chris |
|
| LoadLibrary Failure (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I have a managed app that makes use of a managed c class that must call an unmanage C DLL. This managed c class dynamically loads the C DLL with the LoadLibrary function. The LoadLibrary function succeeds and returns a good handle when the managed c class executes on the main process. However when the managed c class is called asynchronously throught the use of the .net programming model(BeginInvo... |
|