Windows 10: DLL is not found in c++ MFC/Win32 but is found in c++ Console application

Discus and support DLL is not found in c++ MFC/Win32 but is found in c++ Console application in Windows 10 Drivers and Hardware to solve the problem; I have a small 50 lines Console application calling on functions defined inside an MSVC DLL which works like a breeze. Now, I would like to call on... Discussion in 'Windows 10 Drivers and Hardware' started by tuttiFrutti, Apr 16, 2021.

  1. DLL is not found in c++ MFC/Win32 but is found in c++ Console application


    I have a small 50 lines Console application calling on functions defined inside an MSVC DLL which works like a breeze.

    Now, I would like to call on the same functions from an MFC or WinAPI app.

    I use the same, same, same exact calling code - no difference.

    Yet, this time, I get LNK2019 Unresolved reference errors :


    LNK2019 unresolved external symbol Device_Connect referenced in function "public: bool __cdecl MYDEVICE::Connectvoid" ?Connect@MYDEVICE@@QEAA_NXZ Washington C:\Users\roger\source\repos\Washington\Washington.obj 1


    I checked the function names with DependencyWalker and they show as pure "C" with no decorations whatsoever.

    Any help is appreciated.

    :)
     
    tuttiFrutti, Apr 16, 2021
    #1
  2. Tintai Win User

    msvcp100.dll and msvcr100.dll in C:\

    Hello back TPU!

    Yesterday I saw two files(msvcp100.dll and msvcr100.dll) in my C:\ disk folder. What does this mean? I know this two files should be in C:\Windows or C:\Windows\System32 or somewhere in C:\Windows but not in main disk folder. I deleted this files but files appeared again today. Is this a virus or maybe an application? How can I check this?

    Tintai
     
    Tintai, Apr 16, 2021
    #2
  3. msvcp100.dll and msvcr100.dll in C:\

    they are microsoft visual studio files, leave em alone.
     
    eidairaman1, Apr 16, 2021
    #3
  4. GSquadron Win User

    DLL is not found in c++ MFC/Win32 but is found in c++ Console application

    C++ small tutorial

    Just found your problem.
    I tried it on visual studio 2010 it didn't work
    It will work if you add a
    file -> new project -> visual C++ -> win32 -> win32 console application -> empty project
    Copy paste it and it will work. It worked on my pc
    If you have trouble just post your problem or watch the steps again
    *Toast :toast:
     
    GSquadron, Apr 16, 2021
    #4
Thema:

DLL is not found in c++ MFC/Win32 but is found in c++ Console application

Loading...
  1. DLL is not found in c++ MFC/Win32 but is found in c++ Console application - Similar Threads - DLL found c++

  2. C DRIVE ' APPLICATION NOT FOUND'

    in Windows 10 Gaming
    C DRIVE ' APPLICATION NOT FOUND': Help me, i can't open my C drive . It says " Application Not Found" . i can't put a screenshot bcs of this sorry. Please help me https://answers.microsoft.com/en-us/windows/forum/all/c-drive-application-not-found/6822a4b8-978f-41fe-a543-a01eedfa4cde
  3. C DRIVE ' APPLICATION NOT FOUND'

    in Windows 10 Software and Apps
    C DRIVE ' APPLICATION NOT FOUND': Help me, i can't open my C drive . It says " Application Not Found" . i can't put a screenshot bcs of this sorry. Please help me https://answers.microsoft.com/en-us/windows/forum/all/c-drive-application-not-found/6822a4b8-978f-41fe-a543-a01eedfa4cde
  4. MSVCP140.DLL not found VCRUNTIME140.DLL not found

    in Windows 10 BSOD Crashes and Debugging
    MSVCP140.DLL not found VCRUNTIME140.DLL not found: I am trying to download Origin for my daughter to play sims. we bought a second hand computer for her basically to just play sims. We are getting to errors MSVCP140.DLL not found VCRUNTIME140.DLL not found. We have tried the steps on the other discussion threads,...
  5. VRCRUNTIME140.dll was not found and MSVCP140.dll was not found.

    in Windows 10 Ask Insider
    VRCRUNTIME140.dll was not found and MSVCP140.dll was not found.: I downloaded both the dll’s and put them in system32 and yet it still says there not found. Am I doing something wrong or is this a glitch? submitted by /u/LoserCat- [link] [comments]...
  6. "defaultuser100000" Folder Found In "C:\Users"

    in Windows 10 Network and Sharing
    "defaultuser100000" Folder Found In "C:\Users": Hi Everybody, Today I just found a folder called "defaultuser100000" in C drive "C:\Users". I searched on Google and found some limited information. Some of them suggests that it has been created due to latest Windows 10 updates. Can anyone give me any...
  7. Preventing DLL hijacking in C# application

    in AntiVirus, Firewalls and System Security
    Preventing DLL hijacking in C# application: The RpcRtRemote.dll can be used to perform DLL Hijacking attack on our Windows app. Simply by planting the DLL within the same folder as our app, the executable file will execute the malicious DLL code. My security vendor advised me to bundle the actual DLL file with the...
  8. system error - c:\\windows\system\cfgmgr32.dll not found

    in Windows 10 BSOD Crashes and Debugging
    system error - c:\\windows\system\cfgmgr32.dll not found: suddenly - non of my apps are loading ran a search and found : C:\Windows\WinSxS\amd64_microsoft-windows-coresystemusermodepnp_31bf3856ad364e35_10.0.17134.1_none_6b5439bab151d860 please advice on how to fix this problem...
  9. MSVCP100.dll not found and MSVCP110.dll not found

    in Windows 10 Installation and Upgrade
    MSVCP100.dll not found and MSVCP110.dll not found: Hi there, so when i fixed my windows 10 cause of a problem i fall into a "MSVCP100.dll not found" when i try to fix it it worked! but sadly i fell into another problem now its "MSVCP110.dll not found" i keep trying to fix it but it just didn't work. tried doing a virus...
  10. Drive C: not found on reboot

    in Windows 10 Support
    Drive C: not found on reboot: Hi My PC seems to be developing a problem whereby I'm working on it and something happens that makes me feel I need to reboot. This could be anything but NOT games - I don't play games at all (unless you call doing jigsaws playing a game). Since I am retired I just use my...