CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: John E

Page 1 of 80 1 2 3 4

Search: Search took 0.26 seconds; generated 34 minute(s) ago.

  1. Replies
    5
    Views
    1,181

    Re: Is this valid for printf (in MSVC)

    Seems like this site's taken a backwards step again (believe it or not, it's only just notified me of 2kaud's replies from a fortnight ago !! )
  2. Replies
    5
    Views
    1,181

    Re: Is this valid for printf (in MSVC)

    Haha - quite right! :)
  3. Replies
    5
    Views
    1,181

    Re: Is this valid for printf (in MSVC)

    Thanks 2kaud - has it always been like that or is this something new - e.g. C17 or whatever ?
  4. Replies
    5
    Views
    1,181

    Is this valid for printf (in MSVC)

    I'm trying to run a program that runs fine when built with gcc - and it builds okay with MSVC but crashes at run time.

    I've traced the crash to a call to vsnprintf() which is getting passed a...
  5. Replies
    2
    Views
    2,145

    Re: 'access()' and "%20" strings

    Hi 2kaud - just before shutting down last night I realised that the code I'm building already contains a helper function but the programmer had forgotten to use it for those access() calls. So I've...
  6. Replies
    2
    Views
    2,145

    'access()' and "%20" strings

    I'm building someone's program here which uses %20 wherever a space occurs in a filename:- e.g. my%20file

    But the file paths then get sent to the 'C' function access() which seems to interpret %20...
  7. [RESOLVED] Mental block about debugging parameters

    After building an app, if I want to run it in the debugger I've a recollection that it's possible to pass certain parameters as if they'd been passed on the command line - but it's a long time since...
  8. Replies
    3
    Views
    1,885

    Re: A static global variable in a DLL

    I don't know - it must've been a limitation in some older version of MSVC. Or maybe it was originally a class member and needed to have the same value for all instances of the class :confused:
    ...
  9. Replies
    3
    Views
    1,885

    A static global variable in a DLL

    Am I doing something stupid here?? The following code is in a DLL:-


    // In a header file while building the DLL (i.e. assume that
    // LIBTEMPORAL_API handles import or export, as appropriate)
    ...
  10. Replies
    6
    Views
    3,424

    Re: Windows (and VS) on ARM hardware !!

    Oops yes... I was getting mixed up between Windows 10 and Windows 7 :blush:
  11. Replies
    6
    Views
    3,424

    Re: Windows (and VS) on ARM hardware !!

    Interesting stuff - and it's good to see CodeGuru sending email notifications again!

    IIUC Apple included an Intel emulator when it moved to ARM (i.e. so that uptake users would be able to carry on...
  12. Replies
    6
    Views
    3,424

    Windows (and VS) on ARM hardware !!

    I've an ancient Apple Mac Mini here running Windows 10. I kinda like it because it's totally silent !

    But various online sites are suggesting that Windows 11 will now run on ARM. And apparently...
  13. Re: Is there a better way to check if an app is already running ?

    Overnight I've received a huge bunch of notifications here - admittedly dating back months - but does that mean they're finally working again?
  14. Replies
    2
    Views
    1,274

    Re: Is L"" intended for string literals ?

    Well found salem_c and many thanks !
  15. Replies
    2
    Views
    1,274

    Is L"" intended for string literals ?

    I'm trying to debug a 3rd party library here which contains the following line:-


    swprintf( audioEssence->usable_file_path, (strlen(filePath) * sizeof(wchar_t)), L"%s", filePath );

    where...
  16. Re: Creating a link lib when you've only the DLL available

    I've only about 20GB remaining on my hard drive :cry:

    But in the meantime this has gotten a bit more complicated... the original dumpbin output looked something like this:-


    1 0...
  17. Re: Creating a link lib when you've only the DLL available

    Sorry, it does produce that text (I was just looking in the wrong place! )



    I guess I'll need to eventually but one of the things I installed here was WSL (which allows MSVC to make programs...
  18. Re: Creating a link lib when you've only the DLL available

    Many thanks @salem__c - changing 2kaud's first line to this seems to be working:-



    for (std::string line; std::getline(std::cin, line) && 0 != line.find(" ordinal hint"); );

    I'm...
  19. Re: Creating a link lib when you've only the DLL available

    2kaud - I just tried your suggestion but the first line gives me this error:-


    error C2039: 'starts_with': is not a member of...
  20. Re: Creating a link lib when you've only the DLL available

    Hi 2kaud. As it happened I woke up very early this morning so I decided to just edit the file manually (which took forever!) but it did work. Your code should be handy for the future though. Thanks.
  21. Creating a link lib when you've only the DLL available

    In the good old days it was possible to create a link lib for a DLL, something like this:-


    1) dumpbin /EXPORTS my.dll > my.def
    2) Edit the generated file so that it only contained the function...
  22. Re: Is there a better way to check if an app is already running ?

    I'm surprised the site owners aren't clamouring to get this fixed. It's been a problem now for a year or more and must've had a devastating affect on site usage... :cry:
  23. Re: Is there a better way to check if an app is already running ?

    Yes, this CG Bug is already some months old. And it will be probably fixed in the future... :cool::rolleyes:[/QUOTE]

    Not fixed yet unfortunately... I just got a notification for 2kaud's post from...
  24. Re: Updating (or changing the name of) a .props file

    I found it... it's under View->Other Windows
  25. Updating (or changing the name of) a .props file

    I've a VS2019 project here which has a .props file. I'd like to remove it and add a .props file having a different name. But for the life of me I can't remember where to do this in VS. Can someone...
Results 1 to 25 of 1998
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured