CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    May 2001
    Location
    Madrid-Spain
    Posts
    1,123

    Lightbulb Maybe a stupid question about .NET and 6.0

    Hi!

    I'm developing a DLL with Visual C++ 6.0.
    I would like that DLL could be used later for developing programs in Visual C++ .NET.

    I think there shouldn't be any problem... or am I wrong?

    Thank you in advance.
    I am Miss Maiden... Miss Iron Maiden :-D

  2. #2
    Xeon's Avatar
    Xeon is offline Elite Member Power Poster
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    4,195

    Talking

    Whoa! Even Irona is jumping onto the .Net bandwagon and trying to keep up with the times!

    No no....basically, you can't assume anything. I got a friend who migrated code from Visual C++ 6 to .net and he got lottsa compile errors. It all depends, really. Thus, girl....you can't make any assumptions.
    "Hell is calling for you!" - Rufus, from Valkyrie Profile 2 : Silmeria

    "I'm getting tired of you devils.....finishing strike......Final Blast!" - Arngrim, from Valkyrie Profile 2 : Silmeria

  3. #3
    Join Date
    Dec 2001
    Location
    United Kingdom
    Posts
    82
    From what i can gather you can end up getting lots and lots of annoying warnings but usually not many serious errors.

    For example M$ have decided that all collection classes (ie CArray, CPtrArray etc) now return INT_PTR data types instead of int. Just means you have to typecast everything into integers to remove the warnings.

    Maybe this is due to the error warning level, im not sure, ive not actually had time to locate where the level can be changed in .NET

    zebbedi

  4. #4
    Join Date
    May 2001
    Location
    Madrid-Spain
    Posts
    1,123
    Ok, thank you very much. I will see what happens when I get Visual C++ .NET

    Thank you again.
    I am Miss Maiden... Miss Iron Maiden :-D

  5. #5
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125
    Irona, If your v6.0 code really follows the rules and does not exploit some of the "loopholes" that V6.0 allows the converyion to UNMANAGED C++ 7.0 should be fairly painless.

    If you code in a style of "Hey I know I can get away with this, I've done it before and it worked", then V7.0 can be a nightmare.

    Hope this helps
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  6. #6
    Join Date
    May 2001
    Location
    Madrid-Spain
    Posts
    1,123
    Thanks for your answer TheCPUWizard.

    My DLL basically uses CORBA functions (using the IDLs), so I hope don't have any problem
    I am Miss Maiden... Miss Iron Maiden :-D

  7. #7
    Xeon's Avatar
    Xeon is offline Elite Member Power Poster
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    4,195

    Talking

    Seriously, though.....Irona....you better get some hair dye(to color your hair brown) and some mental pills and medicine before you compile your project in Visual C++ .net.

    Some sleeping pills would be nice too, cos' you can have nightmares at night of the Visual C++ .net compiler and linker giving you the strangest errors and bugs ever.
    (for example, you run your program, click a push-button and the entire Windows OS fail to start-up the next time you run boot the computer up)

    Need I say more?!
    "Hell is calling for you!" - Rufus, from Valkyrie Profile 2 : Silmeria

    "I'm getting tired of you devils.....finishing strike......Final Blast!" - Arngrim, from Valkyrie Profile 2 : Silmeria

  8. #8
    Join Date
    May 2001
    Location
    Madrid-Spain
    Posts
    1,123
    Originally posted by Xeon
    Seriously, though.....Irona....you better get some hair dye(to color your hair brown) and some mental pills and medicine before you compile your project in Visual C++ .net.
    I don't want to compile my project, I only want to use my DLL

    PS: Need I say more? (tm)
    I am Miss Maiden... Miss Iron Maiden :-D

  9. #9
    Xeon's Avatar
    Xeon is offline Elite Member Power Poster
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    4,195

    Talking

    From Irona:
    I don't want to compile my project, I only want to use my DLL
    This is even worse!!!!!!
    DLL??!!! This is what programmers call "DLL He||"!!!!!

    Errr.....Irona...prepare to get a hammer to smash your PC and VS.net.

    PS: Need I say more? (tm)
    [/quote]

    Drats! How dare you use my line without my permission!!!! Gggrrrr....ok. Never mind. Hypnotise yourself and gimme everything you have.(except your boyfriend )
    "Hell is calling for you!" - Rufus, from Valkyrie Profile 2 : Silmeria

    "I'm getting tired of you devils.....finishing strike......Final Blast!" - Arngrim, from Valkyrie Profile 2 : Silmeria

  10. #10
    Join Date
    Dec 2001
    Location
    Ontario, Canada
    Posts
    2,236
    Dll **** is when different programs overwrite common windows .dll with thier own version. This causes problems on Windows 9x and NT, because sometimes the different .dlls are not compatible and the programs that use will crash. Windows 2000 and XP keep separate version of each different .dll for the programs that use them, so this problem can not occur.

    If you ever used Windows NT, you would remember having to re-apply the service packs every time you installed a driver or new software because the software would over-write the service pack .dll with an older/different version. Oh how I hated NT

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured