Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: remoting/host/setup/win/load_string_from_resource.cc

Issue 11090063: [Chromoting] Add a simple Windows app that registers and starts a host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix non-standard resource header file. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/setup/win/load_string_from_resource.h ('k') | remoting/host/setup/win/start_host_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/setup/win/load_string_from_resource.cc
diff --git a/remoting/host/setup/win/load_string_from_resource.cc b/remoting/host/setup/win/load_string_from_resource.cc
new file mode 100644
index 0000000000000000000000000000000000000000..140638f7f6fa9a5bd33c3359b62ff7cd3604926a
--- /dev/null
+++ b/remoting/host/setup/win/load_string_from_resource.cc
@@ -0,0 +1,17 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "remoting/host/setup/win/load_string_from_resource.h"
+
+namespace remoting {
+
+CAtlString LoadStringFromResource(int id) {
+ CAtlString s;
+ if (!s.LoadString(id)) {
+ s.Format(L"Missing resource %d", id);
+ }
+ return s;
+}
+
+} // namespace remoting
« no previous file with comments | « remoting/host/setup/win/load_string_from_resource.h ('k') | remoting/host/setup/win/start_host_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698