radstudio logo

Unresolved external wWinMain from COW32W.OBJ

Sometimes when your forced to upgrade your very old projects to the latest RadStudio environment you'll strike the linker error "Unresolved external 'wWinMain' in the COW32W.OBJ file.

You can strike this when you dump your old project files and then include back into the new project the old original files. You just need to change the old WinMain function definition from :-

WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)

To :-

WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)

Filed under: Embarcadero  Tags: C, Cpp, Xe5

0 Responses to “Unresolved external wWinMain from COW32W.OBJ”

Sorry, comments have been closed for this post.
(default) 12 queries took 170 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1DESCRIBE `posts`17177
2DESCRIBE `comments`111124
3DESCRIBE `tags`227
4DESCRIBE `categories`223
5DESCRIBE `posts_tags`2241
6DESCRIBE `categories_posts`2227
7SELECT `Post`.`id`, `Post`.`url`, `Post`.`title`, `Post`.`icon`, `Post`.`metadesc`, `Post`.`metakeys`, `Post`.`categories`, `Post`.`tease`, `Post`.`body`, `Post`.`private_body`, `Post`.`created`, `Post`.`modified`, `Post`.`status`, `Post`.`allow_comments`, `Post`.`tags`, `Post`.`hitcount`, `Post`.`hitcount_rss` FROM `posts` AS `Post` WHERE `Post`.`url` = 'unresolved-external-wwinmain-from-cow32w-obj' LIMIT 1111
8SELECT `Comment`.`id`, `Comment`.`post_id`, `Comment`.`body`, `Comment`.`author`, `Comment`.`url`, `Comment`.`email`, `Comment`.`ip`, `Comment`.`status`, `Comment`.`junk_score`, `Comment`.`created`, `Comment`.`modified` FROM `comments` AS `Comment` WHERE `Comment`.`status` = 2 AND `Comment`.`post_id` = (93) 0013
9SELECT `Tag`.`id`, `Tag`.`tag`, `PostsTag`.`post_id`, `PostsTag`.`tag_id` FROM `tags` AS `Tag` JOIN `posts_tags` AS `PostsTag` ON (`PostsTag`.`post_id` = 93 AND `PostsTag`.`tag_id` = `Tag`.`id`) 331
10SELECT `Category`.`id`, `Category`.`category`, `CategoriesPost`.`post_id`, `CategoriesPost`.`category_id` FROM `categories` AS `Category` JOIN `categories_posts` AS `CategoriesPost` ON (`CategoriesPost`.`post_id` = 93 AND `CategoriesPost`.`category_id` = `Category`.`id`) 1121
11UPDATE `posts` AS `Post` SET `Post`.`hitcount_rss` = Post.hitcount_rss + 1 WHERE `Post`.`id` = 93125
12UPDATE `posts` AS `Post` SET `Post`.`hitcount` = Post.hitcount + 1 WHERE `Post`.`id` = 9310