| String class in managed extensions (4 replies) |
| microsoft.public.dotnet.languages.vc |
| hello, i am trying to write function in managed extensions, and require concatenation of several String* vars. ie. void myFunc(String* name, String* comment) { //... } i need to build a SQL query out of these two strings, like "INSERT INTO xyz(name,description) VALUES name variable , comment variable " help!!! |
|
| Cross Class Delegate/Callback Problem (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I am new to Visual C and .Net in general. I have done some C dos based coding and a lot of VB6 coding. I have starting learning VC .net because I am working on a project that requires it. I am running into a roadblock (probably simple) and can't figure out what is wrong. More or less I have 2 classes that each have a header file(SplashScreen.h, Logon.h) and a source file (SplashScreen.cpp, Logon.c... |
|
| Error C2512 - No appropriate constructor problem (3 replies) |
| microsoft.public.dotnet.languages.vc |
| I'm having problems with this error when creating new instances of my classes... The code that reports the error is: m surfaceFront new CDX::Surface(this); Its being called from CDX::Screen::CreateWindowed(), so this should be a pointer ot the Screen class. The Surface class's constructor is as such: Surface(CDX::Screen * screen); I've got the class defined as a GC class: gc public class Surface :... |
|
| String class - sorry guys (4 replies) |
| microsoft.public.dotnet.languages.vc |
| sorry about the misunderstanding, i need to add more than two strings (the code was an example). any ideas since this code below can only handler TWO string params? perhaps overload it? String *sqlCommand String::Format(S"INSERT INTO xyz (name, description) VALUES \"{0}\", \"{1}\"", name, comment); i really need to add about 8 or 9. (especially sorry to sean gies ; ) ) |
|
| A Question about CFont. (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I would like to use the wingding character set in CFont (VC V6). Is this possible? How? |
|
| Can Microsoft beat Apple? (7 replies) |
| microsoft.public.dotnet.languages.vc |
| I have a fundamental question about the way .NET handles the object orientated way of persistence. I am coming from JAVA and WebObjects (Apple) World and I am looking for a convenient way of working with objects without seeing any SQL statements only objects. I have used that approach for years on the WebObjects Platform (Enterprise Object Framework) and in Java recently (Container Managed Persist... |
|
| Drag Drop Registration - Repost (5 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, I've implemented a .NET container UI in VC . Everything was going smoothly until I attempted to implement drag and drop. The UI is similar to an explorer type application. Anyway, the list view control, when I set the AllowDrop property to true an exception is thrown. The exception, unusually enough is an InvalidOperation exception with a message "Drag Drop Registration Failed" The COM excepti... |
|
| in-process compilation (4 replies) |
| microsoft.public.dotnet.languages.vc |
| Is there a way to compile managed C code in process? Equivalent to the Microsoft.CSharp.Compiler class. Thanks, |
|
| fatal error C1001 (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hi, I have just found really strange problem. I am using Managed C for creating custom control. As soon as I added #using System.Drawing.Design.dll statement to the header file I got an error: fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2844) Please choose the Technical Support command on the Visual C Help menu, or open the Technical Support help file for more inform... |
|
| PInvoke and the .NET Framework (5 replies) |
| microsoft.public.dotnet.languages.vc |
| I have quite a few UnManaged C classes which I am trying to integrate into a .NET framework. One technique I know of involves creating Managed C classes which "wrap" the UnManaged code. Another technique is to use PInvoke(). My question is...what impact will PInvoke() have on my .NET assembly? Meaning, could my .NET assembly get invoked by .NET assemblies written in other languages (C#, VB.NET...)... |
|
| interoperability between managed and unmanaged objects (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I'm attempting to repurpose some existing VC6 code within the CLR framework so that I can build a front end in VB. The code I'm repurposing is a general framework for network I/O that requires me to inherit from a base class and implement a pure virtual method for handling data that arrives across the network. Alas, I can't inherit a managed class from an unmanaged class. This makes sense. But I d... |
|
| VC7 vs VC6 Doc Closing Problem - 3rd attempt (4 replies) |
| microsoft.public.dotnet.languages.vc |
| The IsModified flag does not appear to be handled the same way in VC7 as it is in VC6. The Afx Message box that prompts the user about saving a modified document does not have any message text in the vc7 version. The vc6 version does. Is this a bug? What do I need to do to fix this? thanks, glp... .. |
|
| Why Does This Code Work? (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I was working with some mixed code the other day and found that I could have managed objects in an unmanaged environment in some cases, but not in others. Here is some sample code that illustrates my point. #include "stdafx.h" #using mscorlib.dll #include tchar.h using namespace System; using namespace System::Collections; nogc class MyClass { public: // This member object won't compile and genera... |
|
| ListView with color options (2 replies) |
| microsoft.public.dotnet.languages.vc |
| Hello all! I'm new to VC and the .NET . So far I was developing with VB6 and now I just starteds with MFC in the .NET environment . I wanted to knew if there is a list "control" or any class that is already exist that implement a ListView(this is the control in VB) that support to give each row a different text color. Advanced thanks, Avi. |
|
| Copying the result(EXE or LIB) to somewhere after building(compile/link)? (2 replies) |
| microsoft.public.dotnet.languages.vc |
| I have many my own libraries(I made them as freeware) in my PC. But I want to copy the library to my default library directory after building(compile/link) it. ( Not touching "Linker's 'Output File' option", so I can have no problem to distribute my library source without any changes ) like Unix's Makefile: make install Thanks in advance. |
|
| by-passing the return type check.... (5 replies) |
| microsoft.public.dotnet.languages.vc |
| Hello.... Is there any way in vc to thwart the return value type check of the function by the compiler?? for example i have a function which returns a pointer to an object of "some type", which is yet to be implemented as a class. so can i throw an exception for the time being( as in c#) some type function() { //yet to be implemented //so throw an exception new throw NotSupportedException(); ///is... |
|
| Managed Array of Strings (3 replies) |
| microsoft.public.dotnet.languages.vc |
| All The MC compiler keeps choking on the following line: System::String* saSuits[] new System::String[SUIT COUNT]; Informing me that 'System::String' : invalid type for gc array element Yet, strangely enough, a directed construction through the Array class yields no such errors: Array *saSuits Array::CreateInstance( typeof(System::String), SUIT COUNT); // [1] and can be initialized using the SetVa... |
|
| Text Editor in VC++? (2 replies) |
| microsoft.public.dotnet.languages.vc |
| There is well known work principle of C like programing languge. Each function must be declared before its usage. I know that all MFC, API and other functions are declared somewhere in the headers and LIB's (I don't matter where). I don't understand something so I em going to describe my problem. 1) I Open new blank CPP file. (not compiled yet) 2) I enter the code below. int main() { // MessageBox... |
|