w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
crafting direct jump in visual studio
To do a direct jump in visual studio you can first store the absolute target address in a variable and the use it in the asm: unsigned int target = 0x11223344; __asm { jmp target } This will compile as something like this: 69044B7C - FF25 E4330669 JMP DWORD PTR DS:[test.690633E4] This also allows you to have the target address to be specified at compile time and variable. As for a DIRECT jump... I don't think there is one. The 0xea one you mentioned is a far jump that the OS will not allow you to use. If you really need your address to be hardcoded though, there would be the following workaround for a jump: __asm { push 0x11223344 ret }

Categories : C

Can I create 'jump points' in visual studio 2005?
You can use Ctrl+] to jump to the matching brace or parenthesis. So you can place your cursor on the brace of the if statement and press the shortcut to go to the end of the block and thus directly in front of the else. Another option would be to set bookmarks with Ctrl+B, T. Those move when the line moves as well and you can jump between them with Ctrl+B, N and Ctrl+B, P.

Categories : Misc

How to move windows forms from Visual Studio 2010 to Visual Studio 2012
You should be able to just copy the Form files (TheForm.cs and TheForm.designer.cs) to the new project, then add them to the project. Note that you will also need to move any files that form depends upon (if any) before it will work properly.

Categories : Forms

Visual Studio not using Visual Studio Command Prompt for post-build events
The easiest way is probably just call out to the thing the normal VSXXXX command prompt uses: Ex: CALL ""%ProgramFiles(x86)%Microsoft Visual Studio 10.0VCvcvarsall.bat"" x86 (edit: updated as per Hans's comment)

Categories : C#

will visual studio 2012 projects open in visual studio 2010
Depends on what features you have in your 2012 projects. Some of the 2012 features will not open in 2010 and will therefore need upgrading. To quote Microsoft: "If you use both Visual Studio 2012 and Visual Studio 2010 SP1, you can create and modify projects and files in either version as long as you don't add features that require Visual Studio 2012." More details on the features that are not supported in 2010 can be found here.

Categories : Dotnet

Using static library from Visual Studio 2008 with Visual Studio 2010
If getting a VC2010 version of the library is out of the question, then you will need to build a DLL using VS2008 that offers the functionality in the VS2008 static library. You will probably not be able to use C++ linkage to this DLL and certainly will not be able to pass std::string directly between the DLL and your main application. This is because the memory layout/interface is different and you will end up with ODR violations and crashes etc (that's if you can even compile/link it that way without tons of errors). So, you'll need to craft a C style API that the DLL exposes for use by your main VS2010 application. Strings will need to be passed as c-style const char* or const wchar_t* strings, or some other struct/opaque pointer. If you can build the DLL in such a way that it is

Categories : C++

Visual Studio Intellisense methods with underscore don't appear
If you go into Tools->Options->Text Editor->JavaScript->IntelliSense->References there should be a drop down for the reference group (depending on what type of project you may need to change this) Once you have the right group you'll noticed there are some default included intellisense reference files. Try removing the underscorefilter.js

Categories : Javascript

Find empty methods in visual studio
In the visual studio find-tool, set it to use Regular Expressions. Use this expression to find empty methods. void .*(*)( |( ))*{( |( ))*} To find empty Page_Load methods: void (Page_Load).*(*)( |( ))*{( |( ))*} All these approaches would work for "void" methods. For other types, you can change the expression or further generalize the expression to match any kind of return type.

Categories : C#

List untested methods with Visual Studio or ReSharper
There is another tool called DotCover from the same guys who develop ReSharper (JetBrains). Also there are products from other developers, such as NCover or TestDriven.NET mentioned in comments.

Categories : Dotnet

64 bit exe crashing outside visual studio but working inside visual studio
You can try comparing the environments between visual studio and the default environment. Dependency walker should identify any missing DLLs.

Categories : C++

Visual studio issues after installing visual studio 2013
In order to build windows 8 apps in visual studio 2013, you must be using windows 8.1. (defined here). This is possibly the issue. You also wouldn't see the windows sdk include path because the wdk would be uninstalled. I would recommend one of two things get visual studio 2012 again, and download the windows 8 sdk get windows 8.1, then install visual studio 2013, and use the windows 8.1 sdk I know, its quite silly.

Categories : Visual Studio

C# Visual Studio 2012, how to show class members and methods?
You couldn't of tried them all... I think the one you want is: "View" > "Class View" (Ctrl+W, C) There is also "Solution Explorer", which is what I prefer to use for navigation (Ctrl+W, S)

Categories : C#

Eclipse "Copy Qualified Name" function in Visual Studio?
Not sure if this will be convenient enough for you, but you can choose View menu item and open the Class view window (Ctrl+W,C or Ctrl+Shift+C short cut - probably depends on the settings). There you can select a class or a method and pressing Ctrl+C (or choosing Copy from context menu) gives you the fully qualified name in the clipboard.

Categories : Eclipse

OpenGL methods not recognized from glew64.lib using Visual Studio 2012 on Windows 8
GLEW convers everything that's beyond OpenGL-1.1, but nothing OpenGL-1.1 provides. The symbols reported are part of OpenGL-1.1 and you must add opengl32.lib to the list of linked libraries, in addition to GLEW: (I wonder why they have called your lib by glew32.lib and not glew64.lib it's pretty strange... It's not strage, it's consistent. Even on 64 bit Windows the OpenGL interface DLL is called opengl32.dll

Categories : Visual Studio 2010

Read write privileges between Microsoft SQL Server Management Studio and Visual Studio
I ended up solving it on my own. The problem had to do with privileges. The database was on my local machine with limited rights. SSMS was using a different account to access the file than VS.I had to go to the MDF file and LDF and add rights to some users.

Categories : SQL

SQL Server Management Studio equivalent for CTR+L keyboard Shortcut from Visual Studio
Just hit ctrl+c with no text selected - this copies the current line; likewise ctrl+x with no text selected cuts the current line.

Categories : Visual Studio

Visual Studio Find and Replace - Exclude Namespaces/Classes/Methods/Variables
When you do a search, in the Find Options panel, you can specify the file types you wish to search in. You can then do a plain search only in HTML files, and then another one on the .cs files, using regular expressions in the latter to search for ABC between quotes. Like this: ".*ABC.*" I'm a little rusty with RegEx, actually, so it may be a variation of that.

Categories : Visual Studio 2010

Open a Visual Studio Solution with a Visual Studio Add-in
You should use the ExecuteCommand to execute the standard File.OpenProject command. Similar to using the File>Open>Solution. Something like this will do in C#: string path = @"C:UsersxyzDocumentsVisual Studio 2010ProjectsMyAddin1MyAddin1.sln"; path = """ + path + """; _applicationObject.ExecuteCommand("File.OpenProject", path); Which translates to VB.NET: Dim path As String path = """C:UsersxyzDocumentsVisual Studio 2010ProjectsMyAddin1MyAddin1.sln""" DTE.ExecuteCommand("File.OpenProject", path) If you would like to know whether the command has finished, you should create an eventhandler for the command.

Categories : Vb.Net

"Add unimplemented methods" feature in the Android Studio
Of course there is. It is called Implement methods or Override Methods. The default shortcut is CTRL-I and CTRL-O. See descrption of Implementing Methods and Overriding Methods.

Categories : Android

Android migrate Eclipse to Studio
This helped me: In Eclipse, Preferences -> Java Built Path ->"Order and Export" tab. Make sure items are selected If you have external Jars, manually copy and paste the jar in the libs folder of the project. (I did this in my Finder) confirm the project launches via Eclipse If it runs, export the project again by "Generate Gradle build files" (confirm overwriting existing files, if any) Open Android Studio and re-import the project. Again, confirming overwriting of any existing files. Next to the run bottom at the top of the screen click on the drop down next to your project name. Click "Edit Configurations..." and select "show chooser dialog" if not already selected.

Categories : Android

Talend Open Studio and Eclipse - Link source from eclipse to talend open studio and export job as test
I'm a beginner with Talend Open Studio (TOS) and I'm using TOS for Data Integration (TOS-DI). TOS-DI is based upon Eclipse Framework but it is a standalone "product" (in Eclipse sense) so, it has its proper rules for third party code integration. For example, you can use your Java code as a Talend "routine" or in one of Talend tJavaXX components. But this is copy/paste, not classpath integration. Another way could be to integrate in YOUR Eclipse environment, the Talend code. This is open source and you can get the code there : http://www.talendforge.org/trac/tos/browser/trunk But if you need the complete TOS execution environment, this will not easily be useful for you... Last chance (but I've not tested) is to try to change the classpath of TOS-DI, using the "Debugger" perspective, i

Categories : Java

Wrong build being deployed on Android device using Visual Studio 2012 Xamarin.Android
I have no idea why it does this, I had this issue before. I also noticed that the device log was somewhat behind (ie, at 3.30pm, the last record on the device log was 11.00am). Uninstalling the app from the device and re-deploying it seems to correct it. Note: I had this issue in VS, didn't check with XS. I would look at the difference in your deployment settings in VS and XS (I think it may have something to do with the Fast Deployment option).

Categories : Visual Studio 2012

R.java is not generating neither with eclipse nor with Android Studio
I'm not sure about Eclipse, but the most recent version of Android Studio (0.1.6) has a known bug like this that only has a workaround at this point. The workaround is to turn off external build in preferences > compiler.

Categories : Java

Android Studio new project Eclipse style
You shouldn't use Android Studio if you want to stay with Ant (or even use the maven android plugin). For now, Google maintains Eclipse and Android Studio. If you want to benefit from the Android Studio improvements but stay with Ant, you should have a look at IntelliJ product : IDEA Community Edition.

Categories : Android

How to import Android Studio project in Eclipse?
As the others say, a full import is not possible, but just try a manual 'import'. The key files for an Android project are the Java sourcecode (src directory), the resource XML files and the Manifest. Just create a new Android project in Eclipse and simply copy these files over. You may have to create a new package structure, so construct the necessary packages and copy each sourcefile over and refactor the package name if necessary. If you use any additional libraries, you may have to manually import them as well.

Categories : Android

How do I migrate my Android Eclipse project to using Gradle and Android Studio?
You should create a folder in you project's root and name it libs. Then copy your jar file to that folder and add dependencies { compile fileTree(dir: 'libs', include: '*.jar') } to your build.gradle file. If above won't work. You may need to try this post

Categories : Java

no gradle file in eclipse project Android studio
All you need is a simple build.gradle file for your ActionBarSherlock project. Here's one I've created: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.4.2' } } apply plugin: 'android-library' dependencies { compile 'com.android.support:support-v4:13.0.0' } android { buildToolsVersion "17.0" compileSdkVersion 17 sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } } }

Categories : Eclipse

Importing Eclipse project with 2 libraries to Android Studio
Create an ANDROID_HOME environmental variable pointing to the Android sdk directory which is included in Android Studio or create a local.properties file containing the path to the Android sdk for each of your projects. The local.properties file should be located in the root / workspace directory of your project; it needs only to contain one line: sdk.dir=C:/android-studio/sdk

Categories : Java

Visual Studio - Run the project outside of Visual Studio
you would need to either build statically or provide the required dll files. the page at http://www.tapkaa.com/2013/05/what-dll-files-are-required-to-run-an-application-developed-with-visual-c/ tells how you can find the missing dll files.

Categories : C++

Xamarin.Android Intellisense not working in Visual Studio 2010
Kannan Balasubramanian has posted an answer that worked for me (Binary Bits) Here's Kannan's solution: Most of the people who work with Xamarin’s Mono for Android in Visual Studio 2012 face a bug where Intellisense doesn’t work for AXML in source view. One of the fix which worked for me is mentioned below. Launch Visual Studio 2012 Open a solution with .AXML file in it Now XML main menu should be visible on top Open “Schemas…” menu Sort by “File Name” column and see if “android-layout-xml” and schemas.android.com.apk.res.android” are there. If found, skip to step 13 If not found, go to “Program Files” if 32-bit system or “Program Files (x86)” if 64-bit system. Then go to “MSBuildNovell” or “MSBuildXamarinAndroid” You should be able to see 2 files

Categories : Visual Studio 2010

Import an Android Project from Eclipse to Android Studio and I have this error message "failed to find Build Tools revision 8.0.0"
Your build.gradle is trying to use Android SDK tools 8 which isn't installed on your machine. If you look at your build.gradle file you probably have this line buildToolsVersion "8". You want your build.gradle file to point to the Android SDK tools that you currently have installed (preferably the latest). Just open the Android SDK manager and see which tools you have installed and change the buildToolsVersion "8" to the right version.

Categories : Android

Eclipse/Android Studio Device not showing up in Chooser Dialog
There is another method that you can use .....when you run your project as android project, it generates an .apk file. Just move that .apk file to your device. Then on device run the application in debug mode.

Categories : Android

Cannot resolve Symbol R (Imported project from Eclipse to Android Studio)
Try to use the new version (0.4.3) of the gradle build plugin, that was released yesterday. More information about this version on g+ here.

Categories : Android

Importing Eclipse project into Android Studio - getBuildScript error
Fixed: I think I might have screwed things up by having a separate gradle installation in addition to whatever is installed by the Android Studio bundle. I uninstalled gradle AND Studio, then just installed the default Studio build things worked better. I still had to update the gradle value in the gradle-wrapper.properties file to "1.7" instead of "1.6". But now all of my projects import correctly. BTW, this was on Windows 7.

Categories : Android

Importing an eclipse project in Android studio. Error with Gradle
You have used Gradle 1.8, as your error mentions, you should use Gradle 1.6. Download it from here http://services.gradle.org/distributions-snapshots

Categories : Android

Getting an error while trying to execute application which has been imported from Eclipse into Android Studio?
Have you looked at this question? Basically, from commandline, navigate to the root directory of your project and run ./gradlew clean packageDebug

Categories : Android

What is the equivalent of Eclipse "Custom debug Keystore" in Android studio?
You define a keystore in your build.gradle file. See the Signing Configurations section here: http://tools.android.com/tech-docs/new-build-system/user-guide In your case, you want to redefine the keystore for the debug variant: android { signingConfigs { debug { storeFile file("your.keystore") } } } However, you should really be using two different keystores for debug and release configurations.

Categories : Android

Unhandled Exception in TcpClient with Xamarin.Android Visual Studio 2010
Did you add the permission to access networking resources in your AndroidManifest.xml file? <uses-permission android:name="android.permission.INTERNET" /> This allows your application network access. Hope this helps.

Categories : Android

Completely remove Android Studio, Eclipse and all the libs/packages installed with them
Removing Android Studio: Remove the Android Studio folder, usually in /home/[username]/android-studio Remove .AndroidStudioPreview from home/[username] Remove Eclipse from Software center.

Categories : Android

Is there a way to convert an Eclipse, 1 library + 2 application projects into an Android Studio, 2 build variants
You should use Eclipse Export tool to generate gradle files for you. then you can easily export it in Android Studio

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.