Skip to content

Managed C++/CLI

Discussions on Managed Extensions for Visual C++ .NET

This category can be followed from the open social web via the handle managed-c-cli@forum.codeproject.com

4.4k Topics 14.9k Posts
  • 0 Votes
    2 Posts
    2 Views
    J
    I'll answer my own question for future visitors. Yes, adding the VERSIONINFO resource was necessary. And, it was easier than I thought - just right-click on Resource Files folder in Solution Explorer, Add > Resource... and select VERSIONINFO. John
  • 0 Votes
    2 Posts
    2 Views
    M
    since IDropTarget is a type, and it is referenced in ocidl.h, 'ambiguous' implies two definitions for the same, one must not disclude that the two definitions ARE the same and this would point to the common error of an include file, including itself. An include file should never include itself! But include files are notorious for including themselves vis-à-vis other include files. While it is of poor craftsmanship, it IS promoted in K&R C manual itself when they proscribe something akin to: #IFNDEF THISFILENOTALREADYREAD #define THISFILENOTALREADYREAD .... your h file: 'thisfile' ... #ENDIF If this is not the case, kindly submit the result of this search complete solution 'IDropTarget' Also, there is a switch you can throw that will indicate the include files as they are included. That would be helpful. Daniel Kilsdonk
  • windows sdk

    testing debugging sales beta-testing question
    2
    0 Votes
    2 Posts
    2 Views
    L
    Odd that you did not read http://www.codeproject.com/Messages/1329679/The-Cplusplus-CLI-is-for-managed-and-mixed-mode-Cp.aspx[^] before posting. Use the best guess
  • 0 Votes
    6 Posts
    2 Views
    L
    Did you actually read the OP's question? Use the best guess
  • Display only 2 digs in string in label.

    help question
    16
    0 Votes
    16 Posts
    4 Views
    L
    There is no need to do that when you can use format strings to produce the required result in the first place. Use the best guess
  • I get Input string was not in a correct format. error

    help
    4
    0 Votes
    4 Posts
    2 Views
    U
    Use this instead of "Convert::ToString()" function int a = 287; String ^b = ""; b += a;
  • Ad Hoc routing protocol

    help question
    8
    0 Votes
    8 Posts
    2 Views
    L
    Not always. ;) Use the best guess
  • C++ Windows Form Application Printing

    graphics help c++ collaboration question
    10
    0 Votes
    10 Posts
    6 Views
    L
    Okaaaaaaaaaaaay what exactly does that have to do with anything? Knowing C++ is not a prerequisite to following the forum posting guidelines or for having some manners.
  • C++ and xaml connection to access database code

    database c++ wpf design help
    2
    0 Votes
    2 Posts
    2 Views
    L
    See some of these links[^]. Use the best guess
  • conversion from tchar* to string^

    3
    0 Votes
    3 Posts
    3 Views
    L
    You have already asked this in QA. Please do not cross post.
  • Creating a global array of labels at runtime

    csharp c++ delphi database visual-studio
    6
    0 Votes
    6 Posts
    2 Views
    L
    Great! Glad to help.
  • 0 Votes
    13 Posts
    22 Views
    J
    It isn't clear if there is a real business problem here but mixed mode programming can often be tricky. So it is easier to just not do it. Instead 1. Create a executable of the targeted functionality. 2. Provide an management API for that: sockets, files or std io. 3. Use the client application to manage a "process" to run the above executable. 4. The client application uses the management api to produce the desired functionality. The advantage to this is that both pieces, with care, can be tested independently and debugged independently as well. And the target functionality cannot take done the client application should it fail in a catastrophic way.
  • sopen() function in filehandling - "C"

    help
    3
    0 Votes
    3 Posts
    2 Views
    R
    Hi, This is possible, when the file mentioned is not present in the corresponding path or the file name is wrong you get the file handle as -1. And its crashing because, you are trying to close a invalid file handle in close() api.
  • Need Urgent Help!!

    c++ com sysadmin help tutorial
    2
    0 Votes
    2 Posts
    2 Views
    M
    Member 9331600 wrote: http://www.codeproject.com/Articles/14462/Build-your-own-cryptographically-safe-server-clien You have already asked the question there. I kindly ask you to not create cross-posts. If the author is still active on CP he will see your question there and answer it. If not you can delete the post in the comments there and ask your question in the Q&A section. cheers Marco Bertschi Software Developer & Founder SMGT Web-Portal CP Profile | My Articles | Twitter | Facebook | SMGT Web-Portal
  • Didn't Understand to logic of calculation of this program.?

    question
    3
    0 Votes
    3 Posts
    2 Views
    M
    Actually, the printed value depends on how the character values (value of ch) is interpreted as a character. For instance, when using Windows console the following mapping (typically) is used: http://en.wikipedia.org/wiki/Code_page_850[^] EDIT: That table only contains the top half (symbol half) of the story. For the lower part, refer to any ASCII documentation, for instance: http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters[^]
  • 0 Votes
    4 Posts
    2 Views
    L
    You cannot execute these processes independently in this way. vcvarsall.bat needs to be called in the same environment that the compiler will be called. You need to create a new batch file that contains all the commands that you wish to run, and execute that batch file. Use the best guess
  • candidate function not accessible

    question c++
    4
    0 Votes
    4 Posts
    4 Views
    L
    I'm afraid that tells us nothing; try looking at the actual class definition or documentation. Use the best guess
  • sqrt() function strange behavouir

    help
    2
    0 Votes
    2 Posts
    2 Views
    L
    I just tried without including math.h and it works fine. Try seeing what the actual definition of sqrt is when you have not included the header. Use the best guess
  • batch files

    help
    7
    0 Votes
    7 Posts
    5 Views
    D
    never mind its fine thanks
  • Structures with using bit fields

    c++
    3
    0 Votes
    3 Posts
    2 Views
    A
    Thanks a lot Rechard.. for the clarification