Advice from C++ boffins required

Author
sharke
Max Output Level: 0 dBFS
  • Total Posts : 13933
  • Joined: 2012/08/03 00:13:00
  • Location: NYC
  • Status: offline
2014/03/08 19:13:36 (permalink)

Advice from C++ boffins required

A few years ago I wrote a program in C++ to generate invoices from my employees' Outlook calendars. I'm by no means a programmer and only have very rudimentary C++ chops, but it works perfectly and I've used it every week since then. I compiled it with Visual C++ 2010. It of course runs on my system because I have Visual C++ 2010 installed. I'm in the process of transferring all of my business stuff over to my new laptop so I can use my desktop exclusively for music, and I don't particularly want to install Visual C++ 2010 on there. Can I just install the Visual C++ 2010 Redistributable on my laptop to make my executable run? Sorry if this is an obvious question, I was never that clear about the whole nuts and bolts of C++ compiling. 
 
Also, I notice that Microsoft's list of requirements for the 2010 redistributable does not include Windows 8, but that the 2013 redistributable does. Will there be a problem installing 2010 on my Windows 8 machine, or is the 2013 version backwards compatible? Thanks for any help 

James
Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
#1

20 Replies Related Threads

    craigb
    Max Output Level: 0 dBFS
    • Total Posts : 41704
    • Joined: 2009/01/28 23:13:04
    • Location: The Pacific Northwestshire
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/08 19:27:13 (permalink)
    Hmm...  I can't think of any reason why binaries created in a Windows environment with 2010 won't work in Windows 8 as long as you install the Redistributable for 2010 (which has the packages required).  Now deployment from 2010 and using the 2013 Redistributable might be a problem since there's usually big differences internally between major versions.
     
    Is it a big hassle to simply try it?

     
    Time for all of you to head over to Beyond My DAW!
    #2
    Karyn
    Ma-Ma
    • Total Posts : 9200
    • Joined: 2009/01/30 08:03:10
    • Location: Lincoln, England.
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/08 19:34:12 (permalink)
    The 2010 runtime should install into win8 with no problems.

    Mekashi Futo
    Get 10% off all Waves plugins.
    Current DAW.  i7-950, Gigabyte EX58-UD5, 12Gb RAM, 1Tb SSD, 2x2Tb HDD, nVidia GTX 260, Antec 1000W psu, Win7 64bit, Studio 192, Digimax FS, KRK RP8G2, Sonar Platinum

    #3
    craigb
    Max Output Level: 0 dBFS
    • Total Posts : 41704
    • Joined: 2009/01/28 23:13:04
    • Location: The Pacific Northwestshire
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/08 19:53:03 (permalink)
    Karyn
    The 2010 runtime should install into win8 with no problems.



    Too bad you can't always say the same for Windows 8 itself! 

     
    Time for all of you to head over to Beyond My DAW!
    #4
    sharke
    Max Output Level: 0 dBFS
    • Total Posts : 13933
    • Joined: 2012/08/03 00:13:00
    • Location: NYC
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/08 22:40:49 (permalink)
    craigb
    Hmm...  I can't think of any reason why binaries created in a Windows environment with 2010 won't work in Windows 8 as long as you install the Redistributable for 2010 (which has the packages required).  Now deployment from 2010 and using the 2013 Redistributable might be a problem since there's usually big differences internally between major versions.
     
    Is it a big hassle to simply try it?




     
    Not really, I would just prefer some expert advice before I start installing and/or uninstalling different redistributables. I have that some-would-say irrational new laptop caution 

    James
    Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
    #5
    sharke
    Max Output Level: 0 dBFS
    • Total Posts : 13933
    • Joined: 2012/08/03 00:13:00
    • Location: NYC
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/08 22:41:34 (permalink)
    Karyn
    The 2010 runtime should install into win8 with no problems.



    Thanks I'll give it a go. Bugs me though when Microsoft doesn't update its spec information to include new OS's. 

    James
    Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
    #6
    craigb
    Max Output Level: 0 dBFS
    • Total Posts : 41704
    • Joined: 2009/01/28 23:13:04
    • Location: The Pacific Northwestshire
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/08 23:04:17 (permalink)
    It's hard enough to get Microsquish to update their products let alone their documentation - lol.

     
    Time for all of you to head over to Beyond My DAW!
    #7
    sharke
    Max Output Level: 0 dBFS
    • Total Posts : 13933
    • Joined: 2012/08/03 00:13:00
    • Location: NYC
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 00:21:30 (permalink)
    craigb
    It's hard enough to get Microsquish to update their products let alone their documentation - lol.




    It's not just Microsoft. Companies release drastically new versions of their software and don't even bother updating the manual. Native Instruments still haven't updated the Reaktor manual despite the fact that many of the options and UI elements have completely changed. Bad documentation is one of my pet peeves...

    James
    Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
    #8
    sharke
    Max Output Level: 0 dBFS
    • Total Posts : 13933
    • Joined: 2012/08/03 00:13:00
    • Location: NYC
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 00:56:43 (permalink)
    Well I tried installing the 2010 redistributable but it wouldn't let me because it said there was a newer version on my system. So I tried running my executable anyway and it said that I am missing MSVCR100D.dll, the 'D' suffix of which I believe indicates it's a debug version of MSVCR100.dll. Does this mean that I didn't compile it in release mode or something? 

    James
    Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
    #9
    craigb
    Max Output Level: 0 dBFS
    • Total Posts : 41704
    • Joined: 2009/01/28 23:13:04
    • Location: The Pacific Northwestshire
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 01:02:11 (permalink)
    Yep, MSVCR100D.dll is the debug version.  I'm guessing you could either compile a release version or just copy the missing library to the same directory as the non-debug version?

     
    Time for all of you to head over to Beyond My DAW!
    #10
    bitflipper
    01100010 01101001 01110100 01100110 01101100 01101
    • Total Posts : 26036
    • Joined: 2006/09/17 11:23:23
    • Location: Everett, WA USA
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 01:04:29 (permalink)
    Yes, the "D" indicates "debug". Try just copying that file over from your old computer. It doesn't need to be registered.


    All else is in doubt, so this is the truth I cling to. 

    My Stuff
    #11
    bapu
    Max Output Level: 0 dBFS
    • Total Posts : 86000
    • Joined: 2006/11/25 21:23:28
    • Location: Thousand Oaks, CA
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 01:17:38 (permalink)
    I'm a C++ buffoon.
     
    Does that make me a bad person?
    #12
    sharke
    Max Output Level: 0 dBFS
    • Total Posts : 13933
    • Joined: 2012/08/03 00:13:00
    • Location: NYC
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 01:34:01 (permalink)
    I'll try copying the .dll in question. I just tried recompiling it on my old computer as a release version and it's not working. Why, is beyond me, lol! The program takes a directory path as an argument. If there is no such directory, it exits with an error. For some reason, when I compile it as a release version, it's exiting with that error (even though I'm giving it a perfectly valid argument). But if I compile it as a debug version again, it works fine. Yet both are compiled from exactly the same code. Bleh!

    James
    Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
    #13
    sharke
    Max Output Level: 0 dBFS
    • Total Posts : 13933
    • Joined: 2012/08/03 00:13:00
    • Location: NYC
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 01:37:14 (permalink)
    bapu
    I'm a C++ buffoon.
     
    Does that make me a bad person?




    Don't worry, you're in good company 

    James
    Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
    #14
    bapu
    Max Output Level: 0 dBFS
    • Total Posts : 86000
    • Joined: 2006/11/25 21:23:28
    • Location: Thousand Oaks, CA
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 01:40:50 (permalink)
    Are your invoicing needs so strange that an MS Access program can't handle it?
     
    I'm not trying to be snarky sharke but putzing around with C++ to interface with Outlook to create invoices seems just like the thing that Access can do with even less programming skills.
     
    Seems like you're trying to use a nuclear war head to drive in a common dry wall nail when a hammer will do.
    #15
    bapu
    Max Output Level: 0 dBFS
    • Total Posts : 86000
    • Joined: 2006/11/25 21:23:28
    • Location: Thousand Oaks, CA
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 01:41:51 (permalink)
    And mind you I do know the adage "if it works...."
    #16
    sharke
    Max Output Level: 0 dBFS
    • Total Posts : 13933
    • Joined: 2012/08/03 00:13:00
    • Location: NYC
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 01:48:21 (permalink)
    bapu
    Are your invoicing needs so strange that an MS Access program can't handle it?
     
    I'm not trying to be snarky sharke but putzing around with C++ to interface with Outlook to create invoices seems just like the thing that Access can do with even less programming skills.
     
    Seems like you're trying to use a nuclear war head to drive in a common dry wall nail when a hammer will do.




    It's not as nearly as sophisticated as it sounds, it just parses a bunch of tab delimited files which contain exported Google calendar data (which has been synced from Outlook), turns it into a linked list of linked lists and then produces a pretty colored table (in the command window mind you) which summarizes what everyone owes. I then use this table to create the invoices in Quickbooks. It just basically saves me a bunch of time which would otherwise be spent manually counting what each client owes (because each client's jobs may be spread over multiple employee's calendars). It's the kind of thing which could be done in 30 lines in Python, but I ended up writing it in C++ as a fun little exercise. I don't really have the time or inclination to brush up on any other languages at the minute, especially when this little bugger works so well. 

    James
    Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
    #17
    sharke
    Max Output Level: 0 dBFS
    • Total Posts : 13933
    • Joined: 2012/08/03 00:13:00
    • Location: NYC
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 12:28:45 (permalink)
    Well for any interested geeks, it turns out the reason why my release build wasn't working was because the char set for the release build was set to Unicode, whereas it should have been set to 'none.' The stupid thing is I probably happened upon exactly the same issue when I was trying to compile it years ago. Stupid non-photographic memory. 

    James
    Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
    #18
    bitflipper
    01100010 01101001 01110100 01100110 01101100 01101
    • Total Posts : 26036
    • Joined: 2006/09/17 11:23:23
    • Location: Everett, WA USA
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 13:46:28 (permalink)
    Well now you know why the Chinese weren't interested in ripping you off.


    All else is in doubt, so this is the truth I cling to. 

    My Stuff
    #19
    sharke
    Max Output Level: 0 dBFS
    • Total Posts : 13933
    • Joined: 2012/08/03 00:13:00
    • Location: NYC
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 13:52:54 (permalink)
    LOL!

    James
    Windows 10, Sonar SPlat (64-bit), Intel i7-4930K, 32GB RAM, RME Babyface, AKAI MPK Mini, Roland A-800 Pro, Focusrite VRM Box, Komplete 10 Ultimate, 2012 American Telecaster!
    #20
    craigb
    Max Output Level: 0 dBFS
    • Total Posts : 41704
    • Joined: 2009/01/28 23:13:04
    • Location: The Pacific Northwestshire
    • Status: offline
    Re: Advice from C++ boffins required 2014/03/09 17:26:00 (permalink)


     
    Time for all of you to head over to Beyond My DAW!
    #21
    Jump to:
    © 2025 APG vNext Commercial Version 5.1