[Solved] What is the difference between Visual C++ 2010 and the Express version? [closed]

Wikipedia tells us: Visual C++ Express IDE does not have out-of-box support for compiling 64-bit applications. An x64 cross-compiler (Cl.exe) is supplied with the full version Windows SDK (available free of charge, as a separate download). Integration of 64-bit compilers to the Visual C++ 2008 Express is possible, but remains cumbersome. Visual C++ Express 2010 … Read more

[Solved] How to make global variables? [closed]

Create singleton class so that instace can be created once and used across application public class Global { private static readonly Global instance = new Global(); public static Global Instance { get { return instance; } } Global() { } public string myproperty { get;set; } } Usage: Global.Instance.myproperty solved How to make global variables? … Read more

[Solved] Exporting C++ dll to c# [closed]

[DllImport(@”../data/stasm_dll.dll”)] internal static extern void AsmSearchDll ( [Out] out Int32 pnlandmarks, [Out] out Int32[] landmarks, [In, MarshalAs(UnmanagedType.LPStr)] String image_name, [In, MarshalAs(UnmanagedType.LPStr)] String image_data, [In] Int32 width, [In] Int32 height, [In] Int32 is_color, [In, MarshalAs(UnmanagedType.LPStr)] String conf_file0, [In, MarshalAs(UnmanagedType.LPStr)] String conf_file1 ); IplImage img = cvlib.cvLoadImage(image_name, cvlib.CV_LOAD_IMAGE_COLOR); String imageData = Marshal.PtrToStringAnsi(img.imageData); AsmSearchDll(out nlandmarks, out landmarks, image_name, … Read more

[Solved] how to remove Ì from data in C [closed]

It’s easy enough if you are using std::string to hold your value. #include <string> #include <algorithm> std::string input = …; input.erase(std::remove(input.begin(), input.end(), ‘Ì’), input.end()); It’s more complex if you insist on using C strings or arrays. I see from the comments above that you are using C strings. I suggest you switch to using C++ … Read more

[Solved] memcpy doesn’t copy anything or not?

Your array is not “empty”, despite your protestations. It just holds a very, very small value: Your machine uses the IEEE754 standard for representing floating points. In that standard, the word with all zeros represents the value 0.0. The next bigger word (i.e. the one obtained by adding 1 to the underlying bits) represents the … Read more

[Solved] Execute two buttons with single click

You should add an event that will call the code once the document has completed loading. private void Form1_Load(object sender, EventArgs e) { webBrowser1.DocumentCompleted += webBrowser1_DocumentCompleted; } void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { button2_Click(sender, e); } 2 solved Execute two buttons with single click

[Solved] how to programme an eye tracking based computer mouse in C++

You can use a port of BGI library for Windows (WinBGIm). Here’s a link to a general idea of how to do it (sample project in VS2010). Project: http://muhammadallee.pbworks.com/w/file/53399106/WinBGIm-Demo.zip (You would need to go to Project Properties->Linker->Input and correct the path of the lib file there. Alternatively, use this project: http://www.cs.colorado.edu/~main/bgi/visual/BGI2010.zip Documentation:http://www.cs.colorado.edu/~main/bgi/doc/ It will use … Read more

[Solved] Is there a Visual c++ compiler online and how convert between c++ and vs simple code

What does assert(false); does? It opens an assert window. It’s a mechanism to let the programmer know when a control path that wasn’t supposed to be reached, is, or a condition that wasn’t supposed to fail, does. Basically like: int divide10ByX(int x) { if ( x == 0 ) { assert(!”x can’t be 0″); return … Read more

[Solved] Creating a batch files for visaul studio command

we can create a batch(.bat) file for executing the multiple commands in visual studio command prompt explained below. call “C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat” the above command will call the visual studio command prompt and then we have to wrote our multiple commands then it will be executed and save this file in .bat … Read more

[Solved] Execute several methods [closed]

Run async another method, which execute several methods synchronously methode1(){ webBrowser1.Navigate(“http://test.com”); } methode2(){ webBrowser1.Navigate(“http://test2.com”); } public void BatchRun() { methode1(); // run sync methode2(); // run sync after Method1 } // … Action toRun = BatchRun; toRun.BeginInvoke(null, null); // Run async 1 solved Execute several methods [closed]

[Solved] computing hashValue of a file

The problem is you declare resultstream as CHAR resultstream[33]; but then you use in your code resultstream[33] = ‘\0’; The resultstream array is 0 indexed so valid values are 0-32, you are accessing memory not allocated for that array (hence the “Access violation”) 0 solved computing hashValue of a file

[Solved] How can i minimize the source code theft in visual studio 2010/TFS

Store all of your developer infrastructure (developer workstations, TFS infrastructure, etc) in an isolated building. This building should have no internet access whatsoever. Post security guards outside the building. Armed is preferable, but not strictly necessary. Each person entering the building should be stopped by the security guards and forced to surrender all personal effects … Read more

[Solved] Where can I find the template files for project item templates I’ve added via Extension Manager in VS2010?

MSDN: During installation, Extension Manager uncompresses the .vsix file and puts its contents in %LocalAppData%\Microsoft\VisualStudio\10.0\Extensions\Company\Product\Version. Company, Product, and Version are specified in the extension.vsixmanifest file, and correspond to the namespace, project name, and version number that are set in the project properties. But strange, I also cannot find. I tried to install DbContextCSharp.vsix and find … Read more