{"id":2863,"date":"2014-02-28T02:28:14","date_gmt":"2014-02-28T02:28:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/28\/windows-desktop-development-forumswindows-desktop-search-developmentview-the-original-page-collection-of-common-programming-errors\/"},"modified":"2014-02-28T02:28:14","modified_gmt":"2014-02-28T02:28:14","slug":"windows-desktop-development-forumswindows-desktop-search-developmentview-the-original-page-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/02\/28\/windows-desktop-development-forumswindows-desktop-search-developmentview-the-original-page-collection-of-common-programming-errors\/","title":{"rendered":"windows-desktop-development-forums,windows-desktop-search-developmentView the original page-Collection of common programming errors"},"content":{"rendered":"<h3>UnKnown Error<\/h3>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nvisual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop 2014-2-28 10:19:46<br \/>\nI am running VC Studio 2008 Version 9.0.30729.1 SP.\u00a0 Windows XP 64 Professional.When I build a C++ DLL project, the registration fails with\u00a0this message:C++\u00a0 Debug Error!R6034An application had made an attempt to load the C runtime library without using a manifest.\u00a0But\u00a0I am using an embedded\u00a0manifest.\u00a0\u00a0 The .manifest files seem to be okay; below is a copy.My machine has a directory named C:\\WINDOWS\\WinSxS\\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375.\u00a0 It contains three dlls:<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nvisual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop 2014-2-28 9:24:53<br \/>\nok i have this data array as follows:array &lt;unsigned short&gt;^ dataArray = gcnew array&lt;unsigned char&gt; (LEN);I have a few other variables that I would like to be pointing to certain section of the above array.in C we would normally do it as follows:unsigned char dataArray[LEN];unsigned char* section1Start = &amp;dataArray[X];unsigned char* section2Start = &amp;dataArray[Y]; etc etc\u00a0how do I do these sectionXStart variables pointing to a managed array?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nvisual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop 2014-2-28 9:19:42<br \/>\nHello everyone,I am using C\/C++ on Windows. I am wondering how to get the function call stack from my application.For example,if function foo call function goo, then function goo call function zoo, in function goo, I want to output the function call stack (foo &#8211;&gt; goo &#8211;&gt; zoo), and in goo, output the function call stack (foo &#8211;&gt; goo).Are there any samples of how to implement that? Does Windows runtime support this feature?thanks in advance,George<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nvisual-studio-languages-forums windows-desktop-development-forums visual-c 2014-2-28 9:06:45<br \/>\nWhen I tried to open a file whose name contains non-english words by using ifstream in vc6, everything was OK. But in vc2005, any file path contains non-English words will never be openned successfully. How to\u00a0do it the right way? My code is as below:\u00a0ifstream f;\u00a0f.open(&#8220;C:\\\\Documents and Settings\\\\Could\\\\??\\\\hehe.txt&#8221;,ios::in);\u00a0\/\/f.open(&#8220;F:\\\\My Cpp\\\\Projects\\\\__stl_read\\\\__stl_read\\\\hehe.txt&#8221;,ios::in);assert(!f.fail());__________________________________I know that supporting<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nvisual-studio-languages-forums windows-desktop-development-forums visual-c 2014-2-28 9:00:30<br \/>\nHi, allI have a question about umdh utility.\u00a0004136E0 : MemLeak!CMemLeakDlg::OnBnClickedButton1+00000080this +00000080 should be an offset from OnBnClickedButton1, right?if we can use this 00000080\u00a0 to get which line in OnBnClickedButton1 it is called?Thanks,Levivoid CMemLeakDlg::OnBnClickedButton1(){\u00a0\/\/ TODO: Add your control notification handler code here\u00a0for( int i = 0; i &lt; 1000; ++i )\u00a0{\u00a0\u00a0int *pInt1 = new int[300];\u00a0\u00a0int *pInt2 = new int[300];\u00a0}\u00a0OnBnClickedButton2();}void CMemLeakDlg::OnBnC<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nvisual-studio-languages-forums windows-desktop-development-forums visual-c 2014-2-28 8:56:33<br \/>\nWhen I create a file in the temp path with C using the following code:TCHAR path[MAX_PATH];\u00a0 \u00a0 \u00a0 \u00a0 GetTempPath(MAX_PATH, path);\u00a0 \u00a0 \u00a0 \u00a0 std::ofstream tempFile (StrCat(path, &#8220;FileName&#8221;));\u00a0 \u00a0 \u00a0 \u00a0 if (tempFile.is_open())\u00a0 \u00a0 \u00a0 \u00a0 {\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 tempFile &lt;&lt; productCode &lt;&lt; std::endl;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 tempFile.close();\u00a0 \u00a0 \u00a0 \u00a0 }My fil<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nvisual-studio-languages-forums windows-desktop-development-forums visual-c 2014-2-28 8:12:03<br \/>\nHello, I am working with a Native C++ Win32\/API project, and I&#8217;ve ran into an unfixible problem. Well, it&#8217;s unfixible for me.When I do something like:Code Snippetint Five = 5;SetWindowText(m_hExampleEditBx, &#8220;Five =\u00a0 &#8221; + five);That&#8217;s just an example, but I do get a errors. Exspecially when I do something likeCode Snippetint i = 5;int j = 5;SetWindowText(m_hExampleEditBx, i + &#8221; &#8221; + j + &#8221; = 10&#8243;);. I get a big error.Is there any possible way I can make this all work? th<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nvisual-studio-languages-forums windows-desktop-development-forums visual-c 2014-2-28 8:10:00<br \/>\nHello,I have a class that is exported from a DLL and has a static member:\u00a0 class __declspec( dllexport ) MyClass {public:\u00a0 MyClass();\u00a0 static int CONSTANT;};The implementation of the class is in a separate cpp file:#include &#8220;MyClass.h&#8221;int MyClass::CONSTANT = 0;MyClass::MyClass() { }I try to use the class and the exported static member from a function in another project:#include &#8220;MyClass.h&#8221;int main(){\u00a0\u00a0\u00a0 MyClass a;\u00a0\u00a0\u00a0 int i = MyClass::CONSTANT;}But when I try to build my solut<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nvisual-studio-languages-forums windows-desktop-development-forums visual-c 2014-2-28 8:05:53<br \/>\nI got a Velleman K8055 USB, which came with files that were meant to let me control it using VC++.\u00a0 I just can&#8217;t get the files to compile properly &#8211; I&#8217;ve never called a DLL before so I&#8217;m really stuggling &#8211; getting SDK to work with C++ in order to build DLLs was interesting enough!Files provided \u00a0.h, .lib, .cpp, .DLL + some others that I don&#8217;t think are relevant.Ive following through the msdn walkthrough MathFuncsDll.dll etc which works fine, but when I try to use the methodolgy on these other fi<\/li>\n<\/ul>\n<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-desktop-development-forums windows-desktop-search-development 2014-1-9 22:47:19<br \/>\nHi,we are running a test with WDS 3.01 and my user are loving it. But we have 1 problem, every morning when they boot there computers it take a long time before they get to the the login dialog, if i disable the GP that controls the WDS instalations it working just fine. in my apliaction log\u00a0I get the followring errors. 3036, 3023, 3024 and 1003.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-desktop-development-forums windows-desktop-search-development 2014-1-9 11:12:48<br \/>\nI&#8217;m using the Windows Search 4 (June 3rd release, 2008) on Windows XP Pro 32-bit.I had been using the v.4 Preview, but had to disable it due to a multitude of problems (it restarted indexing from 0 every day, indexer kept crashing, explorer kept crashing).Now I&#8217;m up to the final release, but have the following problem:When I search PDF files and get results in the &#8220;Windows Search Results&#8221; window, I can&#8217;t preview any of the files.Clicking on any of the search results for pdf files autom<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-desktop-development-forums windows-desktop-search-development 2014-1-8 20:30:32<br \/>\n\u00a0Hello,We\u00a0are a Microsoft\u00a0Partner\u00a0and have\u00a0a long-standing\u00a0application that heavily relies on file searches.\u00a0\u00a0We are currently\u00a0attempting to update this app\u00a0for Windows Vista and Office 2007.\u00a0 In previous versions of our app, we used the Office FileSearch object whenever we needed to search for specific files based on text within the files.\u00a0 Upon beginning development of the updated version, we discovered that the FileSearch object has been &#8220;hidden&#8221; in Office 2007 and can no longer be<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-desktop-development-forums windows-desktop-search-development 2014-1-8 18:57:19<br \/>\nHi,I am using WDS 3.0 RTW, when i want to search something, i will click the &#8216;search&#8217; button in deskbar. Normally a explorer with title &#8216;Windows Desktop Search Results&#8217; will popup for searching, but sometimes a explorer with title &#8216;C:\\&#8217; appeared instead (where c:\\ is my WinXP installation drive). I don&#8217;t know when will\u00a0popup a correct \/ wrong\u00a0window for searching, but for my memories it seldom happen. Please provide help if you can. Thanks~Andriy G.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-desktop-development-forums windows-desktop-search-development 2014-1-8 11:00:09<br \/>\nI love a lot of microsoft products and technology. I think C# is a fantastic language and a great set of libraries. But I recently started running Windows Search 4.0 because I was getting frustrated with Google Desktop.I was very dissappointed. I&#8217;m finding WDS 4.0\u00a0 almost unusable in comparison. HEre&#8217;s my list of gripes&#8230;1) Searching takes at least 15 times as long (honestly, 25-30 seconds and the goodle search takes 1-2 seconds). 2) There are the simple things like, when I get a response back<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-desktop-development-forums windows-desktop-search-development 2014-1-8 6:29:23<br \/>\nUnderstanding WDS and the FutureThere have been many questions about WDS versions and what is recommended for use as well as development.\u00a0 I will outline what the differences are in the document as well as what is coming in the future.WDS 2.66:WDS 2.66 is the most recent release in the 2.6x lineage of WDS.\u00a0 WDS 2.6x runs in a per user context.\u00a0 This means that all users have their own unique index stored in a location only they can access.\u00a0 While this is sufficient for many scenarios there are a<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-desktop-development-forums windows-desktop-search-development 2014-1-8 2:40:14<br \/>\nI recently and successfully installed a fresh version of xp pro along w\/all upgrades to sp2.\u00a0 Windows Update says there are no more patches to be installed.\u00a0 Everything was running fine.\u00a0 I then loaded the following suites:\u00a0 Office 2007 Pro, Adobe Creative Suite CS3.\u00a0 Everything seemed to be running fine.\u00a0 Then I\u00a0clicked on\u00a0the &#8220;click here to install instant search&#8221; link in outlook 2007.\u00a0\u00a0From that point on the\u00a0computer\u00a0started locking up on boot-up.\u00a0 It would\u00a0get me to the desktop,\u00a0bu<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-desktop-development-forums windows-desktop-search-development 2014-1-7 10:58:49<br \/>\nI have created a C# program (Application A) which docks to the bottom of the screen, in place of the taskbar, in a custom shell. \u00a0I used the following codeplex guide to make the window dockable:http:\/\/www.codeproject.com\/KB\/shell\/csdoesshell3.aspx\u00a0The problem is that I have an application (Application B), one which I did not write and I have no access to its code, which crashes if you try to maximize it while explorer.exe is not running. \u00a0I assume that the program is looking for t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nwindows-desktop-development-forums windows-desktop-search-development 2014-1-6 9:04:21<br \/>\nI can see the results of certain items in Desktop search from Outlook folders and Inbox; however, when I use search using &#8220;Search all mail items&#8221; the search does not return any results at all.\u00a0If I search just in Inbox, valid results appear though..\u00a0I have been using Outlook 2007 since its Beta version and it used to work before\u00a0\u00a0\u00a0<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>UnKnown Error msdn msdn visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop 2014-2-28 10:19:46 I am running VC Studio 2008 Version 9.0.30729.1 SP.\u00a0 Windows XP 64 Professional.When I build a C++ DLL project, the registration fails with\u00a0this message:C++\u00a0 Debug Error!R6034An application had made an attempt to load the C runtime library without using a manifest.\u00a0But\u00a0I am using an embedded\u00a0manifest.\u00a0\u00a0 The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2863","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2863"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2863\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}