| can unmanaged code be verifiable? (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I have got some C code that uses STL containers. I need to use that code from a C# application, so compiled it as a .NET assembly. As I wish to run the project on a web environment, the DLL must be verifiable. As far as I understand, unless it's managed, it cant be verifiable. One idea I had was to use System.Collections containers instead of the STL containers. As I dont want to make changes to t... |
|
| setting a caption of window using it's handel (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| does anyone know the user32.dll function or how i can do this? I want to set the caption of a window based on the handel i specify... i already have the functions to get the handel of the window returned as an integer... but i want to change the caption, ive been looking through the user32.dll function list, but not sure which one does it. any help would be nice, thanks! |
|
| cmd file inside my Setup solution (newbie queston) (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I have this simple .cmd file which I want to run inside my other programs in VS.net (setup file). It does not run. Can somebody help me!!!!!!!! IF "%ver%" "Microsoft Windows 2000" GOTO Win2k @REM IF "%ver%" "Microsoft Windows XP" GOTO WinXP @mkdir temp1 GOTO Common :Win2K @REM Win2K instructions here mkdir temp2 : Common: @REM Common instructions here mkdir temp3 |
|
| impersonate in vc++ .net (5 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi all, I have written a windows service in vc .net with "SystemAccount" rights and I want to get access to the user's desktop so I have heard that I have to impersonate the user when it login. How I can impersonate the user? Thanks |
|
| Help needed installing GinaStub example. (7 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I am dying trying to get the GinaStub example to work at: http://msdn.microsoft.com/library/default.asp?url /library/en us/vcsample98/html/vcsmpginastubsample.asp Any help is greatly appreciated and much thanks given in advance. I am very new to the Visual C environment, so I am hoping is something very silly and easy to fix. Here is what I have done: 1) Down load Visual Studio 6 examples from thi... |
|
| Pimpl idiom in MC++ classes (10 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Because 'friend' is not recognized in MC , using the pImpl idiom in MC classes seems nearly impossible. Normally a pImpl class is a 'friend' to the class for which it supplies the private implementation, so that it can access any protected members, including inherited protected members, of that class. Without 'friend' the pImpl class can no longer do this, and it is a PITA passing the necessary pr... |
|
| Repost: Re: DllImport for Windows CE for pocket PC device development (10 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi Chris and BJ, I am working in the same library too. I tired to use the Visual C to link to this win ce.net dll, and from Visual C , I can see the method and build with the following code: // This is the main project file for VC application project // generated using an Application Wizard. #include windows.h #include stdio.h #using mscorlib.dll #include tchar.h using namespace System::Runtime::I... |
|
| Using managed wrappers class library (4 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, I've got problem building managed class library to wrap unmanaged code. I created managed class library using standard patten: #include "../Unmanaged/Class1.h" //Class1 unmanaged namespace ManagedWrappers { public gc MClass1 { public: MClass1() { m pClass1 new Class1(); }; ~MClass1() { delete m pClass1; }; private: Class1* m pClass1; } } the result is ManagedWrappers.dll assembly. Now I want t... |
|
| How to get rid of the fatal error about iostream (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi, I just want to using a console application in the .net enviroment. Before the main(), I using the #include "iostream.h" but the .net tell me: c:\project\console\console\console.cpp(11): fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory By the way, I want to compile the MS's program: ADOXCreateDatabaseX.cpp about ADO. The .net always told me: c:\project\consol... |
|
| How to declare a managed variable as a member of a not-managed class? (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I need to declared a managed variable as a member of a class that is not managed. How can I do that? Please, don't say I have to declare the class as a managed one, because I can't apply that solution. Please, give me other solution. Thanks. |
|
| C++ Translator Yet? (12 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| I've answered this question myself on the asp.net ng a while back: (it was a while back). I am faced with converting a large proprietary C app (Proprietary DEFINED: the programmer was 1. too lazy to document, or 2. too protective to document) Does anyone know of a tutorial, if not an app to convert C (VS 6) code to C#? As much as I'd like to ignore the existing code & just rewrite it from scratch,... |
|
| HOWTO create a copy of one database (11 replies) |
| microsoft.public.dotnet.languages.vc |
| Hello! Was wondering how I can create a copy of one database? FYI I'm not interrested in the data, just the fields and triggers, and so on. Which way is the easiest? Do I create a script and run it from there? Is it smart to have it inside a SP? Any idea would be greatly appreciated. I'm programming SQL 2k and VC7.0 Lars |
|
| Call to webservice doesn't wait to return (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi All, I have created a ASP.NET web service with a web method. This method retrives data from SQL Server and returns it as an XML string. Now I have added a web reference to this web service in a VC 7.1 (unmanaged) project. I call the web method in my VC code. The problem I am facing is that the line next to the line that calls the web method is executed even before the call to the web method ret... |
|
| INCLUDE environment variable not working (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi: I'm setting the INCLUDE environment variable, but VC is not searching it for header files (I've checked it with filemon). I've tried with user variable, machine variable, rebooted the machine, nothing makes it work. Does INCLUDE variable until work? I'm using WinXP SP1 and VC 7.1. Thanks, Strauss |
|
| How to access API function of a Managed C++ application? (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi all, How to access API function of a Managed C application? Sample: This doesn't work. (::MessageBox.) #pragma once namespace teste { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; /// summary /// Summary for Form1 /// /// WARNING: If you c... |
|
| C1001: INTERNAL COMPILER ERROR (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Internal Compiler Error VS.NET 2003 Enterprise Architect Windowx XP SP1 RAM 1GB Free DiskSpacs 20GB Here is Source Code of it. // This is the main project file for VC application project // generated using an Application Wizard. #include "stdafx.h" #using mscorlib.dll using namespace System; public value struct A { int a; A() { a 0; }; }; public gc class M { public : M() { }; void E(A gc &par) { p... |
|
| '$' in C identifiers? (5 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi all, Either I'm missing something big here, or there's a problem with the C compiler in .NET 2003; and with the C compiler in Visual Studio 6 SP5 too .... Consider the following 2 lines: #define TEST $$$ 0x05 static test $$$[] { TEST $$$ }; The compiler works as if '$' were a valid character to be used for an identifier, and signals no warnings/errors. From what I know, during preprocessing it ... |
|
| Performance issues using .NET C++ (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I am wondering if it is feasible to use .NET for applications that have to be very fast. We have a few applications that are blazingly fast, written in Borland C using Borland C Builder. We would like to port over to ..NET, but some of the test models we have developed are MUCH, MUCH slower than it's Borland counterpart. Is this due to the .NET Framework and the JIT? Or is it something we should b... |
|
| Urgent help needed! Raising events! (3 replies) |
| microsoft.public.dotnet.languages.vc |
| Dear All Please help me in the following issue: how to raise an event from an unmanaged class to a managed class. Both classes are in C and there should not be any static methods involved in this implementation. ie. the event source is an unmanaged class and event receiver should be a managed class. Also the event receiver method should not be static. Thank you very much for your understanding. |
|
| Can't detect memory leaks properly. (3 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi. I have a project that leaks :( I tried using the crtDumpMemoryLeaks function, and I get the memory leaks written to the output window, but it doesn't show the correct source file. Instead it shows the following: Detected memory leaks! Dumping objects C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\crtdbg.h(689) : {53} normal block at 0x00FD28C0, 112 bytes long. Data: G G G G 94 ... |
|
| Resource DLLs and HTML pages (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Could anybody let me know how I can create a resource dll which include HTML pages? Thanks, Jalil |
|
| How can I find data in a wave file ... ? ... ? (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi everyone, How are you ? Happy new year for all !!! Well I want to know how can I find some data like a tone in a recorded wave file in WindowsPCM format in 11kHz 8bits. This file(s) will contain some conversations like phone conversations and some tones in midlle so I need to find this tones, how can I read this datas and recognize some tone ? Very Thanks for helps, Danilo Almeida. |
|
| Form background (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi. I'm using VC 7.0 do develope my MFC dialog based application. Is there some way how to set background for my form? Just like property. Drawing in runtime is unwanted. There's no problem to set background in C# project, but in MFC project I din't find any way. And the second minor question: Does MFC prject in VS.NET support the same MFC libraries just like VS 6.0 or I should provide with my pro... |
|
| How to create systemwide hooks for keyboard (for keys like WIN, ALT+TAB) (3 replies) |
| microsoft.public.dotnet.languages.vc |
| Hye, How to create systemwide hooks for keyboard for keys like WIN, ALT TAB, CTRL ALT DEL even when the application does not have the focus on it... Thanks, |
|
| Can I use C preprocessor in VC++ attributes (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc |
| Hi, I want to use preprocessor at VC attributes. Isn't it possible? Or, there is another way to use predefined string at attribute code? Thanks Wonil Kim (ÑÑêªìé) Sr. Software Engineer Global Solution Team / KTF Technologies Visual Impact KTF EVER ! |
|