Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trivial C runtime. Linker error

Featured Replies

Posted

I am giving a shot on BigBoote's tutorial "Writing your own packer".

 

Right at the beginning of the project I ran into linking problems.

 

As a result of not using the default libraries(on purpose) , the linker complains about the unresolved external symbol __ DllMainCRTStartup@12

 

In order to fix the linking error the author suggested on replacing the DllMain function with DllMainCRTStartup.He claims that this will fix the linker's error and at the same time be the EP.I've tried replacing the Boiler-Plate DllMain function with the DllMainCRTStartup  but the problem is still there.I have done my research and I can't seem to find anyone that had similar problems.

 

Any ideas?

 


BOOL WINAPI _DllMainCRTStartup ( HANDLE, DWORD, LPVOID )
{
//Program will go here
return TRUE;
}

 

 

Edited by Loizos

What dev environment do you use?

If you use Visual Studio, try setting the entry point to DllMain in your linker settings of the project

See more here:

https://msdn.microsoft.com/en-us/library/f9t8842e.aspx

  • Author
6 hours ago, A200K said:

What dev environment do you use?

If you use Visual Studio, try setting the entry point to DllMain in your linker settings of the project

See more here:

https://msdn.microsoft.com/en-us/library/f9t8842e.aspx

Problem solved!The linker doesn't complain anymore.Setting it as an EP makes sense , I don't know why I haven't thought of it. Thank you.

Edited by Loizos

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.